Mem0 for OpenClaw
Prompt for Agent
Set up the Mem0 memory plugin and import existing memories.
Install & Configure
Run:
openclaw plugins install @mem0/openclaw-mem0Ask the user: “What’s your email address? I’ll send you a verification code to connect your Mem0 account.”
Wait for their email, then run:
openclaw mem0 init --email EMAIL_PROVIDED_BY_USER
- Ask the user: “Check your email for a 6-digit code and paste it here.”
Wait for the code, then run:
openclaw mem0 init --email THEIR_EMAIL --code CODE_PROVIDED_BY_USER
- Run:
openclaw mem0 status— confirm it shows “Connected to Mem0”
Import Existing Memories
- Read these files from
~/.openclaw/workspace/if they exist:
- SOUL.md, IDENTITY.md, USER.md, MEMORY.md
Skip: AGENTS.md, BOOTSTRAP.md, HEARTBEAT.md, TOOLS.md
Read all files from
~/.openclaw/workspace/memory/(format: YYYY-MM-DD.md), most recent 30 days only.Build one combined JSON array — files under 2000 words as a single item, longer files split by heading (#). Write to
/tmp/mem0_import.jsonand run:
openclaw mem0 import /tmp/mem0_import.json
- Run:
openclaw mem0 search “preferences”to confirm memories are searchable.
Report
Report: which files were found, total items imported, and search results.