lily-memory
Persistent memory plugin for OpenClaw agents. Hybrid SQLite FTS5 keyword + Ollama vector semantic search with auto-capture, auto-recall, stuck-detection, and memory consolidation.
Why use this skill?
Enhance your OpenClaw agent with Lily Memory. A hybrid SQLite and vector-search plugin for long-term recall, auto-capture, and smarter, context-aware AI interactions.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kevinodell/lily-memoryWhat This Skill Does
Lily-memory serves as the primary long-term persistence layer for OpenClaw agents. Unlike transient chat sessions that disappear upon restart, this skill provides a hybrid database architecture utilizing SQLite FTS5 for rapid keyword-based lookups and Ollama-powered vector embeddings for nuanced, semantic understanding. It handles the lifecycle of agent knowledge automatically: capturing salient facts during dialogue, consolidating data to prevent bloat, and actively detecting when an agent is stuck in repetitive logic loops, allowing for a corrective nudge. By integrating directly into the OpenClaw plugin slot system, it enables agents to maintain continuity, remember user preferences, and reference past decisions across indefinite timescales.
Installation
- Use the clawhub CLI to fetch the package:
clawhub install openclaw/skills/skills/kevinodell/lily-memory. - Update your
openclaw.jsonconfiguration file to include thelily-memoryplugin within theplugins.entriesobject. Ensure thedbPathis set to a writable directory. - Verify that your Ollama server is running on the default port (11434) if you intend to utilize vector semantic search. If Ollama is unavailable, the plugin will gracefully fallback to basic keyword-only functionality.
- Restart your gateway using
openclaw gateway restartto initialize the database schemas.
Use Cases
- Project Management: Agents remember project status, deadlines, and team-specific terminology across long-running development sprints.
- Personal Assistance: Remember specific preferences, user-defined entities, and previous constraints established in earlier sessions.
- Knowledge Retrieval: Use the agent as a searchable repository for unstructured technical notes, internal documentation, and task-related decision logs.
Example Prompts
- "Look up the status of the migration project from our discussion yesterday."
- "Memory: The API endpoint for the production server is https://api.production.internal."
- "Search my recent notes for any mention of the security policy update."
Tips & Limitations
- Vector Performance: While powerful, vector search depends on the speed of your Ollama embedding model. Ensure your hardware can handle model inferencing for a smooth experience.
- Storage: Since it uses SQLite, it is lightweight, but monitor your
dbPathif you perform heavy, high-frequency logging to avoid massive file sizes. - Validation: Stick to the entity allowlist in your configuration to maintain data integrity; auto-capture is regex-based and works best with explicit formatting.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kevinodell-lily-memory": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, external-api