llms.txt Content
# Mem0
> Mem0 is the memory layer for AI agents — persistent, self-improving context that survives across sessions. Two products share one mental model: Mem0 Platform (managed) and Mem0 Open Source (self-hosted). Every link below is tagged \`[Platform]\`, \`[OSS]\`, or \`[Both]\` so you can load only what the current user needs.
## For agents reading this file
### Don't have a Mem0 API key?
Install the CLI, then mint a key — no email, no dashboard, no OTP required:
\`\`\`bash
# Python
pip install mem0-cli
# or Node
npm install -g @mem0/cli
\`\`\`
Then run: \`mem0 init --agent --agent-caller <your-name> --json\` — replace \`<your-name>\` with the AI agent you are (e.g. \`claude-code\`, \`cursor\`, \`codex\`). If you forgot \`--agent-caller\`, run \`mem0 identify <your-name>\` after init to attribute the signup.
This mints an evaluation key in under 5 seconds. When the human is ready, claim with \`mem0 init --email <your-email>\` to transfer ownership (memories preserved, same API key, no disruption).
### Routing and references
- Use \`MemoryClient\` (Python) / \`mem0ai\` (npm) when the user has a Mem0 Platform API key. Managed product — no infra required, providers handled server-side.
- Use \`Memory\` (Python) / \`mem0ai/oss\` (npm) when the user self-hosts. Requires custom vector store and LLM. Docs under open-source/ and components/.
- Scope tag reference: \`[Platform]\` = managed only, \`[OSS]\` = self-hosted only, \`[Both]\` = same on both.
- Full technical docs and API reference: https://docs.mem0.ai/llms.txt
- OpenAPI spec: https://docs.mem0.ai/openapi.json
- Live MCP server: https://mcp.mem0.ai
- Source repo: https://github.com/mem0ai/mem0
## Install
- Python SDK: \`pip install mem0ai\`
- Node SDK: \`npm install mem0ai\`
- Python CLI: \`pip install mem0-cli\`
- Node CLI: \`npm install -g @mem0/cli\`
## Product
- [Homepage](https://mem0.ai/) [Both]: Use when the user wants a top-level overview of what Mem0 is and the memory problem it sol