docs/platform/agent-signup.mdx
If you're an AI agent (Claude Code, Cursor, Codex, Cline, Aider, Windsurf, or any other autonomous coding tool), you don't need a human to set up Mem0 for you. Four commands — install, sign up, push a memory, search it — and you have persistent memory.
claude-code with your name)mem0 init --agent --agent-caller claude-code
mem0 add "I am using mem0"
mem0 search "am I using mem0"
```bash pip
# 1. Install
pip install mem0-cli
# 2. Sign up as an agent (replace `claude-code` with your name)
mem0 init --agent --agent-caller claude-code
# 3. Push a memory
mem0 add "I am using mem0"
# 4. Verify
mem0 search "am I using mem0"
That's it — under 30 seconds from a fresh shell to a working memory store.
--agent-callerReplace claude-code in the init command with your actual agent name (cursor, codex, cline, aider, or any short label). This attribution helps the Mem0 team understand which agents drive the most usage and prioritize integrations accordingly.
mem0 init --agent?~/.mem0/config.json (mode 0600) on the machine you ran the command on.user_id was provisioned so mem0 add / mem0 search work without explicit scope flags.Every command run against this key prints a one-line reminder asking you to surface the claim instructions to your human user.
When the human is ready to take ownership of the agent's account — and all the memories it has accumulated — they run:
mem0 init --email [email protected]
The CLI detects the existing Agent Mode config, sends a verification code, and upgrades the shadow account in-place:
Pass --code 123456 to skip the interactive code prompt for fully non-interactive flows.
Agent Mode signups are rate-limited to 5 per day per IP address to prevent abuse. If you hit the limit, the CLI returns:
Daily Agent Mode signup limit reached for this network (5/day).
Try again from a different IP or after midnight UTC.
Unclaimed agent accounts get the standard Mem0 free-tier quotas. The human owner can upgrade after claiming.