
How It Works
Once installed, the plugin runs automatically with no extra configuration:- Auto-Recall: Before every AI turn, the plugin searches your memories by semantic similarity and injects relevant context. Casual chat and short messages are skipped to keep things focused.
- Auto-Capture: After conversations, messages are buffered and sent to Membase for extraction and long-term storage. Entities and relationships are automatically extracted into a knowledge graph.
- Knowledge Graph: Unlike simple vector memory, Membase stores entities, relationships, and facts in a graph database. Search results include related nodes and edges for richer context.
Setup
Log in to Membase
AI Tools
The AI uses these tools autonomously during conversations:| Tool | Description |
|---|---|
membase_search | Search memories by semantic similarity. Returns episode bundles with related facts. |
membase_store | Save important information to long-term memory. Proactively stores preferences, goals, and context. |
membase_forget | Delete a memory. Shows matches first, then deletes after user confirmation (two-step). |
membase_profile | Retrieve user profile and related memories for session context. |
CLI Commands
Auto-Recall
Runs before every AI response (before_agent_start hook).
Queries Membase for relevant memories and injects them as context. Messages under 30 characters and casual chat (greetings, acknowledgments) are skipped. The injected context respects a maxRecallChars budget to avoid oversized prompts.
Auto-Capture
Runs after every AI response (agent_end hook).
Buffers conversation messages per channel and flushes them to Membase for knowledge extraction. Buffers flush after 5 minutes of silence or 20 messages, whichever comes first. At least 4 messages (2 exchanges) are required before flushing. The last 4 messages are kept as overlap for continuity across batches.
Configuration
All configuration is managed through OpenClaw’s plugin settings or~/.openclaw/openclaw.json:
| Key | Type | Default | Description |
|---|---|---|---|
apiUrl | string | https://api.membase.so | Membase API URL. Override for self-hosted. |
autoRecall | boolean | true | Inject relevant memories before every AI turn. |
autoCapture | boolean | true | Automatically store conversations to memory. |
maxRecallChars | number | 4000 | Max characters of memory context injected per turn (500-16000). |
debug | boolean | false | Enable verbose debug logs. |
Example configuration
Managing Plugins
Useopenclaw plugins to manage installed plugins, check status, and update versions.

How Membase Differs
| Simple vector memory | Membase | |
|---|---|---|
| Storage | Flat embeddings | Hybrid: vector embeddings + Neo4j knowledge graph |
| Search | Vector similarity only | Vector + graph traversal (entities, relationships, facts) |
| Extraction | Store raw text | AI-powered entity/relationship extraction |
| Auth | API key | OAuth 2.0 with PKCE (no secrets to manage) |
| Ingest | Synchronous | Async pipeline with background graph sync |
GitHub Repository
OpenClaw is fully open-source. Explore the code, contribute plugins, or build your own:OpenClaw on GitHub
Browse the source code, submit issues, and contribute to the plugin ecosystem.

