mem0
Skill by TerminalSkills
Mem0 adds long-term memory to LLM apps and agents. It extracts facts from conversations, stores them in a vector database and retrieves them in later sessions.
Install mem0
Built from the published package, never by AI.
git clone --depth 1 https://github.com/TerminalSkills/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/mem0 ~/.claude/skills/mem0Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/TerminalSkills/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/mem0 ~/.gemini/antigravity-cli/skills/mem0Antigravity 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
Mem0 is an agent skill that gives AI apps persistent, per-user memory. It covers the open-source Python library, version 2.x. You pass raw conversation messages, an LLM extracts the facts, and the facts are stored as short text memories in a vector store. Your app searches them before the next model call, and memories can be read, updated and deleted per user.
Mem0 can run as a Python library, as a self-hosted server, or as the hosted platform, which needs a MEM0_API_KEY. The defaults use OpenAI models and a local Qdrant store. It suits developers who want a chatbot or agent to remember user preferences across sessions. The source notes that it holds short facts, not whole files, so it is not a replacement for a document search index.
Written from the project's SKILL.md and checked against it.
What it can do
- Add memoriesStores conversation messages per user, extracting facts with an LLM, or stores text as given with infer=False.
- Search memoriesRetrieves stored memories relevant to a query, filtered by user_id, agent_id, run_id or metadata.
- Read all memoriesReturns every stored memory for a user through get_all with a user filter.
- Update memoriesChanges the text or metadata of a stored memory using its memory ID.
- Delete memoriesRemoves a single memory by ID or erases all memories for one user with delete_all.
- Hosted platform clientUses MemoryClient to add and search memories on the hosted Mem0 platform.
- Async methodsAsyncMemory offers the same methods as Memory, all awaitable.
What you need
- Python 3.10 or newer
- pip package mem0ai 2.x
- An LLM and embedding provider, OpenAI by default
- OpenAI API key for the default provider
- MEM0_API_KEY for the hosted platform option
Try asking
- Make my support chatbot remember each customer between sessions
- Add per-user memory to my AI app so it recalls preferences
- Search and delete stored memories for user user_42
Good to know
- Graph memory was removed from the open-source library and exists only on the hosted platform.
- Every add with infer=True makes an LLM call, which adds cost and latency.
- The default Qdrant path /tmp/qdrant may be wiped by some systems on reboot.
- Extracted memories can be wrong and should be reviewed in sensitive domains.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/mem0/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mem0
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: common questions
Does Mem0 keep memories separate between users?
Yes. Memories are scoped with user_id, and one user's memories never appear in another user's search.
Can I use an LLM other than OpenAI with Mem0?
The source says the library is configured with your own LLM and vector store, and OpenAI is only the default provider.
How do I erase a user's stored memories?
Call delete_all with the user_id. The source also notes that extracted text is sent to your LLM provider.
How do I install mem0?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mem0 free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mem0 safe to use?
It scores 49 of 100. Grades: maintenance A, 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?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
