# Send Mem0 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",
    "name": "Mem0",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/abhayjb/mem0",
    "canonicalUrl": "https://clawhub.ai/abhayjb/mem0",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mem0",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mem0",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "package-lock.json",
      "package.json",
      "references/integration-patterns.md",
      "scripts/mem0-add.js",
      "scripts/mem0-config.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mem0",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T11:31:16.642Z",
      "expiresAt": "2026-05-12T11:31:16.642Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mem0",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mem0",
        "contentDisposition": "attachment; filename=\"mem0-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mem0"
      },
      "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"
    },
    "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",
    "downloadUrl": "https://openagent3.xyz/downloads/mem0",
    "agentUrl": "https://openagent3.xyz/skills/mem0/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mem0/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mem0/agent.md"
  }
}
```
## Documentation

### Mem0 Memory Integration

Mem0 adds an intelligent, adaptive memory layer to Clawdbot that automatically learns and recalls user preferences, patterns, and context across all interactions.

### 1. Search Before Responding

Before answering user questions, search mem0 for relevant context:

node scripts/mem0-search.js "user preferences" --limit=3

Use retrieved memories to:

Personalize responses
Remember preferences
Recall past patterns
Adapt communication style

### 2. Store After Interactions

Explicit Storage (when user says "remember this"):

node scripts/mem0-add.js "Abhay prefers concise updates"

Conversation Storage (for context learning):

# Pass messages as JSON
node scripts/mem0-add.js --messages='[{"role":"user","content":"I like brief updates"},{"role":"assistant","content":"Got it!"}]'

### Search Memories

node scripts/mem0-search.js "query text" [--limit=3] [--user=abhay]

Searches semantically across stored memories. Returns relevant memories ranked by relevance.

### Add Memory

# Simple text
node scripts/mem0-add.js "memory text" [--user=abhay]

# Conversation messages (auto-extracts memories)
node scripts/mem0-add.js --messages='[{...}]' [--user=abhay]

Mem0's LLM automatically extracts, deduplicates, and merges related memories.

### List All Memories

node scripts/mem0-list.js [--user=abhay]

Shows all stored memories for the user with IDs and creation dates.

### Delete Memories

# Delete specific memory
node scripts/mem0-delete.js <memory_id>

# Delete all memories for user
node scripts/mem0-delete.js --all --user=abhay

### ✅ Store These:

Explicit requests: "Remember that I..."
Preferences: Communication style, format choices
Personal context: Work info, interests, family (non-sensitive)
Usage patterns: Frequent requests, timing preferences
Corrections: When user corrects your mistakes
Adaptive facts: Current projects, recent interests

### ❌ Don't Store:

Secrets, passwords, API keys
Temporary context (unless explicitly requested)
System errors or debug info
Information already in MEMORY.md (avoid duplication)

### Complementing Clawdbot Memory

Clawdbot MEMORY.md (Structured, Deliberate):

Permanent facts: Name = Abhay, Location = Singapore
Reference data: Email, blog URL, Twitter handle
Structured knowledge: Project details, credentials

Mem0 (Dynamic, Learned):

Preferences: "Abhay prefers concise updates"
Patterns: "Usually asks for bus info at 8:30am"
Adaptive context: "Currently interested in AI news"
Behavioral: "Likes direct answers, minimal fluff"

Use both together: Check MEMORY.md for facts, check mem0 for preferences/patterns.

### Performance Benefits

+26% accuracy over OpenAI Memory (LOCOMO benchmark)
91% faster than full-context retrieval
90% fewer tokens than including all conversation history
Sub-50ms semantic search retrieval

### Configuration

Located in scripts/mem0-config.js:

{
  embedder: "openai/text-embedding-3-small",
  llm: "openai/gpt-4o-mini",
  vectorStore: "memory" (local),
  historyDb: "~/.mem0/history.db",
  userId: "abhay"
}

Uses Clawdbot's OpenAI API key from environment (OPENAI_API_KEY).

### Integration Patterns

For detailed workflow patterns, error handling, and best practices, see:

references/integration-patterns.md

### Programmatic Use

All scripts support JSON_OUTPUT environment variable for programmatic access:

JSON_OUTPUT=1 node scripts/mem0-search.js "query"

Returns JSON after human-readable output (look for ---JSON--- marker).

### scripts/

mem0-config.js - Configuration and instance initialization
mem0-search.js - Search memories semantically
mem0-add.js - Add new memories
mem0-list.js - List all memories
mem0-delete.js - Delete memories

### references/

integration-patterns.md - Detailed best practices and patterns
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: abhayjb
- 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-05T11:31:16.642Z
- Expires at: 2026-05-12T11:31:16.642Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mem0)
- [Send to Agent page](https://openagent3.xyz/skills/mem0/agent)
- [JSON manifest](https://openagent3.xyz/skills/mem0/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mem0/agent.md)
- [Download page](https://openagent3.xyz/downloads/mem0)