Lily Memory Plugin
by @kevinodell
Persistent memory plugin for OpenClaw agents. Hybrid SQLite FTS5 keyword + Ollama vector semantic search with auto-capture, auto-recall, stuck-detection, and...
1. Install the plugin to your extensions directory
2. Add to your openclaw.json:
{
"plugins": {
"slots": { "memory": "lily-memory" },
"entries": {
"lily-memory": {
"enabled": true,
"config": {
"dbPath": "~/.openclaw/memory/decisions.db",
"entities": ["config", "system"]
}
}
}
}
}
3. Restart the gateway: openclaw gateway restart
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| dbPath | string | ~/.openclaw/memory/decisions.db | SQLite database path |
| autoRecall | boolean | true | Inject memories before each turn |
| autoCapture | boolean | true | Extract facts from responses |
| maxRecallResults | number | 10 | Max memories per turn |
| maxCapturePerTurn | number | 5 | Max facts per response |
| stuckDetection | boolean | true | Topic repetition detection |
| vectorSearch | boolean | true | Ollama semantic search |
| ollamaUrl | string | http://localhost:11434 | Ollama endpoint |
| embeddingModel | string | nomic-embed-text | Embedding model |
| consolidation | boolean | true | Dedup on startup |
| vectorSimilarityThreshold | number | 0.5 | Min cosine similarity |
| entities | array | [] | Additional entity names |
clawhub install lily-memory