mem0-cli
$ mem0 init
███╗ ███╗███████╗███╗ ███╗ ██████╗ ██████╗██╗ ██╗
████╗ ████║██╔════╝████╗ ████║██╔═████╗ ██╔════╝██║ ██║
██╔████╔██║█████╗ ██╔████╔██║██║██╔██║ ██║ ██║ ██║
██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║████╔╝██║ ██║ ██║ ██║
██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚██████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚══════╝╚═╝
✓ API key saved
✓ Default user: alice
$ mem0 add "Prefers dark mode and vim keybindings" --user-id alice
✓ Memory added (id: 7b3c1a2e)
$ mem0 search "What does Alice prefer?" --user-id alice
0.92 Prefers dark mode and vim keybindings
pip install mem0-cli
/
npm install -g mem0cli
BUILT FOR AGENT & HUMANS
Full command tree
Every command, flag, and description for agents in one call.
╭─ Options ───────────────────────────────────────────────────╮
│ --version Show version and exit. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────╯
╭─ Memory ────────────────────────────────────────────────────╮
│ add Add a memory from text, messages, file, or stdin. │
│ search Search memories by semantic query. │
│ get Get a specific memory by ID. │
│ list List memories with optional filters. │
│ update Update a memory's text or metadata. │
│ delete Delete a memory, all memories matching a scope, or an entity.│
╰─────────────────────────────────────────────────────────────╯
╭─ Management ────────────────────────────────────────────────╮
│ init Interactive setup wizard for mem0 CLI. │
│ status Check connectivity and authentication. │
│ import Import memories from a JSON file. │
│ help Show help. Use --json for machine-readable output (for LLM agents).│
│ entity Manage entities. │
│ config Manage mem0 configuration. │
╰─────────────────────────────────────────────────────────────╯
Multiple input modes
Text, JSON, files, or stdin. Agents pipe data straight into mem0 add.
Text, JSON, files, or stdin. Agents pipe data straight into mem0 add.
Scoped to any entity
Scope memory to any user, session, or agent. No namespace collisions.
╭─ Options ───────────────────────────────────────────────────╮
│ --version Show version and exit. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────╯
╭─ Memory ────────────────────────────────────────────────────╮
│ add Add a memory from text, messages, file, or stdin. │
│ search Search memories by semantic query. │
│ get Get a specific memory by ID. │
│ list List memories with optional filters. │
│ update Update a memory's text or metadata. │
│ delete Delete a memory, all memories matching a scope, or an entity.│
╰─────────────────────────────────────────────────────────────╯
╭─ Management ────────────────────────────────────────────────╮
│ init Interactive setup wizard for mem0 CLI. │
│ status Check connectivity and authentication. │
│ import Import memories from a JSON file. │
│ help Show help. Use --json for machine-readable output (for LLM agents).│
│ entity Manage entities. │
│ config Manage mem0 configuration. │
╰─────────────────────────────────────────────────────────────╯
QUICK REFERENCE
Command
What it does
mem0 init
Configure API key and defaults
mem0 add
Store a memory (text, JSON, file, stdin)
mem0 search
Semantic search with natural language
mem0 list
View memories with filters and pagination
mem0 get
Retrieve a single memory by ID
mem0 update
Change text or metadata
mem0 delete
Remove memories with dry-run support
mem0 import
Bulk import from JSON
mem0 entities
Manage users, agents, apps
mem0 status
Verify API connection
INSTALL
Works with Mem0 Platform. Available in Python and TypeScript. Same commands. Same behavior. Same output.
pip install mem0-cli
/
npm install -g mem0cli
Read the docs →