mem0
Skill by mem0ai
Mem0 Platform SDK skill for adding persistent memory to AI applications. It is aimed at developers building chatbots, agents, or AI apps that need long-term user memory.
Install mem0
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mem0ai/mem0 /tmp/mem0 && mkdir -p ~/.claude/skills && cp -r /tmp/mem0/skills/mem0 ~/.claude/skills/mem0Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mem0ai/mem0 /tmp/mem0 && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/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, a managed memory layer that stores, retrieves, and manages user memories through an API. It covers the Python SDK (mem0ai) and TypeScript SDK (mem0ai), plus framework integrations such as LangChain, CrewAI, OpenAI Agents SDK, Pipecat, LlamaIndex, AutoGen, and LangGraph. It also covers the open-source self-hosted Memory class.
The core pattern is retrieve, generate, store: search memories for a user, pass them as context to the model, then add the new interaction back. The skill covers add, search, get all, update, and delete operations. It is aimed at developers who want long-term memory or personalization in chatbots, agents, or AI apps. CLI usage and the Vercel AI SDK are handled by separate mem0 skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Add memoriesStores a list of chat messages as memories for a given user_id.
- Search memoriesRetrieves memories that match a query, filtered by user_id.
- Get all memoriesReturns every stored memory for a user.
- Update a memoryChanges the text of an existing memory by its UUID.
- Delete memoriesDeletes one memory by UUID or all memories for a user.
- Framework integrationsGuidance for LangChain, CrewAI, OpenAI Agents SDK, Pipecat, LlamaIndex, AutoGen, and LangGraph.
- Self-hosted Memory classCovers the open-source Memory class for self-hosted use.
- Live docs searchBundled script that searches docs.mem0.ai without an API key.
What you need
- MEM0_API_KEY environment variable for the Platform
- Python 3.10+ or Node.js 18+
- pip install mem0ai or npm install mem0ai
- Internet access to api.mem0.ai
Try asking
- Add long-term memory to my chatbot so it remembers user preferences
- Search a user's stored memories for their dietary preferences
- Show me how to update or delete a stored Mem0 memory by its UUID
Good to know
- Targets the v3 API: Python mem0ai 2.x and TypeScript mem0ai 3.x.
- add() is asynchronous, so new memories are not searchable right away.
- The self-hosted Memory class does not use MEM0_API_KEY.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/mem0/SKILL.md, skills/mem0/scripts/mem0_doc_search.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
LICENSE10 KB -
README.md3 KB -
SKILL.md9 KB -
client/differences.md5 KB -
client/node.md20 KB
Show all 14 files
-
client/python.md17 KB -
references/api-reference.md7 KB -
references/architecture.md12 KB -
references/features.md13 KB -
references/integration-patterns.md13 KB -
references/quickstart.md3 KB -
references/sdk-guide.md11 KB -
references/use-cases.md23 KB -
scripts/mem0_doc_search.py8 KB
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
Do I need a Mem0 account to use this skill?
The Platform SDK needs a MEM0_API_KEY, which you get from the Mem0 dashboard. The self-hosted Memory class does not use this key.
Why does search return nothing right after I add memories?
add() is asynchronous and returns a PENDING status. Memories become searchable once the event reaches SUCCEEDED.
Which Mem0 skill should I use for the Vercel AI SDK?
The source says Vercel AI SDK, @mem0/vercel-ai-provider, and createMem0 queries should use the mem0-vercel-ai-sdk skill instead.
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 93 of 100. Grades: maintenance A, licence A, quality A. 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.
