
Mem0 Cli
Command-line interface for Mem0 memory operations: add, search, list, update, and delete memories from the terminal.
- skills.sh installs
- 830
- GitHub stars
- 69.3K
- last updated
- Aug 21, 2026
What it does
- Covers memory add, search, list, get, update, and delete, plus init, config, import, and entity and event commands
- Ships as a
mem0binary on npm (@mem0/cli) or PyPI (mem0-cli), with matching commands and a JSON envelope in both - Includes an Agent Mode bootstrap via
mem0 init --agent --jsonthat mints an evaluation key without an email signup - Designed for developers, AI agents, and CI/CD pipelines that run Mem0 commands in a shell rather than SDK code
Install
$ npx -y skills add mem0ai/mem0 --skill mem0-cli -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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.
Details
- Repository
- github.com/mem0ai/mem0
- Categories
- Memory & Context, CLI & Terminal
- First seen
- Jun 3, 2026
More from mem0ai/mem0
All 2Similar to Mem0 Cli
More Memory & Context
Mem0MCP servermem0ai662 starsLong-term memory access via Mem0's hosted API: add, search, update, and delete memories.
supermemory-cliSkillsupermemoryai/skills484 installsCommand-line interface for Supermemory that manages memories, documents, profiles, namespaces, connectors, and API keys from the terminal.
MemoriaMCP serveragripp871 starPersistent plain-text memory store with hybrid search and agentic self-maintenance tools.
memory-managementSkillruvnet/ruflo1.2K installsPersistent AgentDB memory with HNSW semantic search for storing, retrieving, and sharing learned patterns.
agent-memory-mcpSkilldavila7/claude-code-templates575 installsPersistent, searchable MCP memory bank that stores and retrieves architecture, pattern, and decision records for AI agents.