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 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.

  • Score 49
  • 224 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/TerminalSkills/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/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

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

A

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

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.

Add to stack

Loading.