mem0-cli
Skill by maomao-2001
Mem0 CLI is a command-line interface for managing Mem0 memories from a terminal. It is for developers, AI agents and CI/CD pipelines that need to add, search, list, update or delete memories.
Install mem0-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/maomao-2001/Whispera /tmp/Whispera && mkdir -p ~/.claude/skills && cp -r /tmp/Whispera/mem0/skills/mem0-cli ~/.claude/skills/mem0-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/maomao-2001/Whispera /tmp/Whispera && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Whispera/mem0/skills/mem0-cli ~/.gemini/antigravity-cli/skills/mem0-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill teaches an AI assistant how to use the Mem0 CLI, which installs a mem0 binary through npm (@mem0/cli) or pip (mem0-cli). The two packages share the same commands, options and output formats. Commands cover adding, searching, listing, getting, updating and deleting memories, along with init, config, import and event checks.
Output can be switched to structured JSON with --json or --agent. Each response is wrapped in an envelope with status, command, data and error fields, and progress output goes to stderr so stdout stays parseable. The skill also covers agent setup, piping, scripting and CI/CD workflows. It points to separate skills for the Python and TypeScript SDK and the Vercel AI SDK provider. It requires a MEM0_API_KEY environment variable.
Written from the project's SKILL.md and checked against it.
What it can do
- mem0 addAdds a memory for a user from text passed as an argument or piped in.
- mem0 searchSearches stored memories by query, scoped to a user ID.
- mem0 listLists all memories for a given user.
- mem0 getRetrieves a specific memory by its ID.
- mem0 updateChanges the text of an existing memory by its ID.
- mem0 deleteDeletes one memory, or all memories for a user with --all.
- mem0 initSets up Mem0 with an interactive wizard, or an agent mode that mints an evaluation key.
- JSON agent modeReturns structured output with --json or --agent for use by LLMs and scripts.
What you need
- Node.js 18+ or Python 3.10+
- MEM0_API_KEY environment variable
- Mem0 API key
Try asking
- Save that I prefer dark mode for user alice using mem0 add
- Search alice's memories for preferences with mem0 search, output as JSON
- List every memory stored for user alice in a table
Good to know
- Memories are processed asynchronously, so new content may take 2-3 seconds to appear in search.
- The --all and --entity delete modes are mutually exclusive.
- Deleting with --entity removes the entity and all of its memories.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: mem0/skills/mem0-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mem0-cli
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
mem0-cli: common questions
Do I need Python or Node.js to use the Mem0 CLI?
You need either Node.js 18+ (npm install -g @mem0/cli) or Python 3.10+ (pip install mem0-cli). The source says both give identical commands and behavior.
Why might a newly added memory not show up in search yet?
The source says memories process asynchronously after mem0 add. It suggests waiting 2-3 seconds or checking status with mem0 event list.
What is the difference between delete --all and delete --entity?
The --all mode deletes all memories for a user. The --entity mode deletes the entity itself along with all its memories.
How do I install mem0-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mem0-cli free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mem0-cli safe to use?
It scores 66 of 100. Grades: maintenance C, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mem0-cli?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
