Persistent memory system that automatically captures context across sessions using SQLite + FTS5.
memory_search, memory_get, memory_store, memory_deleteInstall the npm package: bash
npm install -g openclaw-persistent-memory
Start the worker service: bash
openclaw-persistent-memory start
Install the OpenClaw extension: bash
# Copy extension to OpenClaw extensions directory
cp -r node_modules/openclaw-persistent-memory/extension ~/.openclaw/extensions/openclaw-mem
cd ~/.openclaw/extensions/openclaw-mem && npm install
Configure OpenClaw (in ~/.openclaw/openclaw.json):
json
{
"plugins": {
"slots": {
"memory": "openclaw-mem"
},
"allow": ["openclaw-mem"],
"entries": {
"openclaw-mem": {
"enabled": true,
"config": {
"workerUrl": "http://127.0.0.1:37778",
"autoCapture": true,
"autoRecall": true
}
}
}
}
}
Restart OpenClaw gateway
ToolDescriptionmemory_searchSearch memories with natural languagememory_getGet a specific memory by IDmemory_storeSave important informationmemory_deleteDelete a memory by ID
Worker runs on http://127.0.0.1:37778:
EndpointMethodDescription/api/healthGETHealth check/api/statsGETDatabase statistics/api/searchPOSTFull-text search/api/observationsGETList recent observations/api/observations/:idGETGet observation/api/observations/:idDELETEDelete observation/api/observations/:idPATCHUpdate observation
bash
curl http://127.0.0.1:37778/api/health
# If fails, restart:
openclaw-persistent-memory start
tail ~/.openclaw/logs/*.log | grep openclaw-memplugins.slots.memory is set to "openclaw-mem"