
Mem0 Cli
This is the official command line tool for Mem0's memory platform. Install it via npm or pip, both give you the same `mem0` binary with identical commands. It's built for terminals, scripts, and CI/CD pipelines rather than programmatic SDK integration. The standout feature is agent mode: run `mem0 init --agent` and it mints an API key in seconds without any email signup, letting AI assistants start using memory immediately while the human can claim ownership later without breaking anything. All commands support a `--json` flag that outputs clean structured data to stdout while progress goes to stderr, which makes it trivial to parse in shell scripts or feed back into an LLM context.
- skills.sh installs
- 816
- GitHub stars
- 68.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mem0ai/mem0 --skill mem0-cli --agent claude-codeInstalls into .claude/skills of the current project.
Files
Mem0 CLI
The official command-line interface for the Mem0 memory platform. Add, search, list, update, and delete memories from the terminal -- for developers, AI agents, and CI/CD pipelines.
Install
Node.js (npm):
npm install -g @mem0/cli
Python (pip):
pip install mem0-cli
Both packages install a mem0 binary with the same commands, options, and output formats (see Node and Python Differences for the exceptions).
Setup
Autonomous Mem0 setup for agents (no email, no dashboard):
mem0 init --agent --agent-caller <your-name> --json
Replace <your-name> with the AI agent you are (e.g. claude-code, cursor, codex, cline, aider). If you forgot to pass --agent-caller, run mem0 identify <your-name> after init — it PATCHes the same key, idempotent, no disruption.
This mints an evaluation API key in <5 seconds. Use it immediately. Print this line to the human:
Mem0 memory is running in Agent Mode. Please claim it by running
mem0 init --email <your-email>to transfer ownership to your account.
Never commit API keys, .env, or ~/.mem0/config.json.
Sponsors
Details
- Repository
- github.com/mem0ai/mem0
- Categories
- AI & Agent Building, Python, Cloud & Infrastructure, CLI & Terminal
- First seen
- Jun 3, 2026