Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 93
  • 70k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/mem0

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mem0 in Claude Code

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

A

No 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 →

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.

Add to stack

Loading.