Mem0 for

Add, search, and manage memories directly from the terminal. Python or Node. Same CLI, same behavior.
Setup Mem0 from mem0.ai/openclaw
npm copy
CLI
Set up the Mem0 memory plugin and import existing memories.
Install & Configure
Run: openclaw plugins install @Mem0/openclaw-mem0
Ask 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_USERAsk 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_USERRun: openclaw gateway restart
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.json and run:
openclaw mem0 import /tmp/mem0_import.jsonRun: openclaw mem0 search “preferences” to confirm memories are searchable.
Report: which files were found, total items imported, and search results.