# Send Mem0 Config to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mem0-config",
    "name": "Mem0 Config",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/nyrosveil/mem0-config",
    "canonicalUrl": "https://clawhub.ai/nyrosveil/mem0-config",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mem0-config",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mem0-config",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/troubleshooting.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mem0-config",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T08:25:04.433Z",
      "expiresAt": "2026-05-09T08:25:04.433Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mem0-config",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mem0-config",
        "contentDisposition": "attachment; filename=\"mem0-config-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mem0-config"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mem0-config"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mem0-config",
    "downloadUrl": "https://openagent3.xyz/downloads/mem0-config",
    "agentUrl": "https://openagent3.xyz/skills/mem0-config/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mem0-config/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mem0-config/agent.md"
  }
}
```
## Documentation

### openclaw-mem0

Long-term memory plugin for OpenClaw agents, powered by Mem0. Extracts and injects memories automatically around each agent turn.

### 1. Install the plugin

openclaw plugins install @mem0/openclaw-mem0

This installs the plugin into ~/.openclaw/extensions/openclaw-mem0/ and adds it to openclaw.json.

### 2. Choose a mode and install dependencies

Platform mode — no local dependencies. Get an API key from app.mem0.ai and skip to Configuration.

Open-source mode — requires two local services:

# Ollama (embedder + LLM)
brew install ollama
ollama serve                        # or: brew services start ollama
ollama pull bge-m3:latest           # embedder (1024-dim)
ollama pull llama3.2                # LLM for memory extraction

# Qdrant (vector store)
docker run -d -p 6333:6333 qdrant/qdrant
# or: brew install qdrant && qdrant

Verify both are running:

curl -s http://localhost:11434/          # → "Ollama is running"
curl -s http://localhost:6333/health     # → {"status":"ok"}

### 3. Add to openclaw.json

Add under plugins.entries (see Configuration below).

### 4. Restart the gateway

openclaw gateway stop && openclaw gateway

Confirm the plugin loaded:

grep "openclaw-mem0: initialized" ~/.openclaw/logs/gateway.log | tail -1

Expected output: openclaw-mem0: initialized (mode: open-source, user: ..., autoRecall: true, autoCapture: true)

### Modes

ModeConfigRequiresplatformapiKey from app.mem0.aiInternet, Mem0 API keyopen-sourceoss block (self-hosted)Ollama + Qdrant (or other providers)

### Minimal Config

Platform:

"openclaw-mem0": {
  "enabled": true,
  "config": { "mode": "platform", "apiKey": "${MEM0_API_KEY}", "userId": "your-id" }
}

Open-source:

"openclaw-mem0": {
  "enabled": true,
  "config": {
    "mode": "open-source",
    "userId": "your-id",
    "oss": {
      "embedder":    { "provider": "ollama", "config": { "model": "bge-m3:latest", "baseURL": "http://localhost:11434" } },
      "vectorStore": { "provider": "qdrant", "config": { "host": "localhost", "port": 6333, "collection": "memories", "dimension": 1024 } },
      "llm":         { "provider": "ollama", "config": { "model": "llama3.2", "baseURL": "http://localhost:11434" } },
      "historyDbPath": "/absolute/path/to/.openclaw/memory/history.db"
    }
  }
}

Always set historyDbPath to an absolute path. When openclaw runs as a LaunchAgent, process.cwd() is /, so the default relative "memory.db" resolves to /memory.db (unwritable on macOS), causing a SQLITE_CANTOPEN crash loop. See troubleshooting.md.

### Key Config Options

KeyDefaultNotesautoRecalltrueInject memories before each agent turnautoCapturetrueStore memories after each agent turntopK5Max memories injected per turnsearchThreshold0.5Min similarity score (0–1)userId"default"Scope memories per user

### CLI

openclaw mem0 stats                          # Total memories, mode, user
openclaw mem0 search "user's name"           # Semantic search
openclaw mem0 search "topic" --scope long-term   # long-term | session | all

### Agent Tools

The plugin registers 5 tools for agents to call:

ToolDescriptionmemory_searchSemantic search (scope: session/long-term/all)memory_listList all memories for a usermemory_storeExplicitly save a fact (longTerm: true by default)memory_getFetch memory by IDmemory_forgetDelete by ID or query

### Verifying It Works

# Check gateway log for injection events
grep "openclaw-mem0: inject" ~/.openclaw/logs/gateway.log | tail -5

# Confirm history DB created at configured path
ls -la /path/to/history.db

# No SQLITE errors since last gateway start
grep "SQLITE_CANTOPEN" ~/.openclaw/logs/gateway.err.log | tail -3

### Troubleshooting

See references/troubleshooting.md for:

SQLITE_CANTOPEN crash loop (most common issue)
Qdrant / Ollama not reachable
Memories not being stored or recalled
Telegram allowFrom config warning
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: nyrosveil
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T08:25:04.433Z
- Expires at: 2026-05-09T08:25:04.433Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mem0-config)
- [Send to Agent page](https://openagent3.xyz/skills/mem0-config/agent)
- [JSON manifest](https://openagent3.xyz/skills/mem0-config/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mem0-config/agent.md)
- [Download page](https://openagent3.xyz/downloads/mem0-config)