mem0
Skill by DSAIL-Memory
Mem0 is an SDK skill that adds persistent long-term memory to AI apps through the Mem0 Platform. It suits developers building chatbots, agents, or other AI apps that need to remember user preferences.
Install mem0
Built from the published package, never by AI.
git clone --depth 1 https://github.com/DSAIL-Memory/EvoMemBench /tmp/EvoMemBench && mkdir -p ~/.claude/skills && cp -r /tmp/EvoMemBench/EvoMemBench-Memory-Systems/mem0/skills/mem0 ~/.claude/skills/mem0Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/DSAIL-Memory/EvoMemBench /tmp/EvoMemBench && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/EvoMemBench/EvoMemBench-Memory-Systems/mem0/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
This skill teaches an AI assistant how to use the Mem0 Platform SDK, available for Python (mem0ai) and TypeScript (mem0ai). Mem0 is described as a managed memory layer that stores, retrieves, and manages user memories through an API, with no infrastructure to deploy. The skill covers adding memories from conversation messages, searching them, listing all memories for a user, updating a memory, and deleting memories.
The skill follows a retrieve, generate, store pattern. Before a reply, the app searches memories for a user and passes them as context to the model. After the reply, the interaction is stored for later use. The skill also covers framework integrations such as LangChain, CrewAI, OpenAI Agents SDK, LlamaIndex, and LangGraph, plus the open-source self-hosted Memory class. It is aimed at developers who need personalization or long-term context in AI applications.
Written from the project's SKILL.md and checked against it.
What it can do
- Add memoriesStores conversation messages as memories for a given user_id using client.add().
- Search memoriesRetrieves relevant memories for a query, filtered by user_id.
- Get all memoriesLists all stored memories for a user with client.get_all().
- Update a memoryChanges the text of an existing memory by its UUID.
- Delete memoriesDeletes a single memory by UUID or all memories for a user.
- Framework integrationsCovers LangChain, CrewAI, OpenAI Agents SDK, Pipecat, LlamaIndex, AutoGen, and LangGraph.
- Self-hosted Memory classDescribes the open-source self-hosted Memory class as an alternative to the managed Platform.
- Live docs searchShips a script that searches docs.mem0.ai without needing an API key.
What you need
- MEM0_API_KEY from the Mem0 dashboard
- Python 3.10+ or Node.js 18+
- pip install mem0ai or npm install mem0ai
- Internet access to api.mem0.ai
Try asking
- Use Mem0 to remember this user's dietary preferences across chats.
- Write a Python chatbot that searches Mem0 memories before replying.
- Add Mem0 long-term memory to my LangGraph agent for each user_id.
Good to know
- Memories are processed asynchronously, so the skill advises waiting 2-3 seconds after add() before searching.
- An AND filter combining user_id and agent_id can return empty results because entities are stored separately.
- Do not mix infer=True and infer=False for the same data to avoid duplicate memories.
- Mem0 v2 users need different defaults and parameters, as described in the v2 compatibility section.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: EvoMemBench-Memory-Systems/mem0/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 need an API key?
The Platform SDK needs a MEM0_API_KEY environment variable. The live docs search script does not need an API key.
Which import should I use in Python?
The skill says to use from mem0 import MemoryClient, or AsyncMemoryClient for async code, and not from mem0 import Memory.
Can I use Mem0 with the Vercel AI SDK?
The source says that Vercel AI SDK usage is covered by a separate mem0-vercel-ai-sdk skill, not this one.
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 public, but no licence file was found, so check the repository before commercial use.
Is mem0 safe to use?
It scores 51 of 100. Grades: maintenance B, licence F, quality C. 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.
