Install
openclaw skills install openclaw-mem0Adds intelligent long-term memory to agents for auto-capturing, recalling, and managing user facts and preferences across sessions.
openclaw skills install openclaw-mem0Mem0 integration for OpenClaw. Adds intelligent long-term memory to your agents, allowing them to remember user preferences, facts, and past conversations automatically.
{
"plugins": {
"entries": {
"openclaw-mem0": {
"enabled": true,
"config": {
"mode": "platform",
"apiKey": "your-mem0-api-key",
"userId": "default-user"
}
}
}
}
}
Connect to your own Mem0 instance (requires mem0ai package installed):
{
"plugins": {
"entries": {
"openclaw-mem0": {
"enabled": true,
"config": {
"mode": "open-source",
"oss": {
"vectorStore": {
"provider": "chroma",
"config": {
"collectionName": "memories",
"path": "./chroma_db"
}
}
}
}
}
}
}
}
This plugin works automatically (Zero-Shot) but also provides manual tools.
The agent can proactively call these tools:
| Tool | Description | Parameters |
|---|---|---|
memory_store | Explicitly save a fact | text (string), longTerm (bool) |
memory_search | Search memories | query (string), scope ("session"|"long-term") |
memory_get | Get memory by ID | memoryId (string) |
memory_list | List all memories | userId (string) |
memory_forget | Delete a memory | memoryId (string) or query (string) |
User: "I'm moving to Tokyo next month." Agent automatically captures this fact.
(Two weeks later) User: "What's a good restaurant for my farewell dinner?" Agent automatically recalls "User is moving to Tokyo" and suggests a restaurant in their current city.
openclaw-mem0/
package.json # NPM package config (@xray2016/openclaw-mem0)
index.ts # Plugin implementation & tools
lib/ # Internal Mem0 client implementation
SKILL.md # This file
README.md # Detailed documentation
Maintained by @xRay2016. Modified from the original Mem0 OpenClaw integration.