# Mem0

> Canonical: https://skillalmanac.com/glossary/mem0 | Last verified: 2026-11-24 | Index status: not offered to search engines

Mem0 is a memory layer for AI agents and apps, published by the company Mem0 as a hosted platform and open-source software. It stores facts from conversations outside the model for use in later sessions.

Also called: mem0 ai, mem0ai.

## In plain language

A language model does not remember your last conversation. Mem0 is a service and a code library that sits beside the model and keeps notes about you, such as preferences, so the next session can start with them. Think of a receptionist who keeps a card file on each regular visitor. According to Mem0's documentation, memories can be scoped to a user, an agent, an app or a run. The limit is that stored notes can be wrong or out of date, and they leave your own system when you use a hosted service. Treat what is stored as personal data, and check what you send to it. Mem0 is one option among several ways to add memory, and its docs list integrations with coding agents such as Claude Code and Cursor.

## Technical definition

As of 2026-11-24, Mem0's documentation describes two options: Mem0 Platform, a managed service that handles the vector store and rerankers, and Mem0 Open Source, which you self-host as a library or Docker stack. The documentation says memories can be scoped by user, agent, app and run, that messages are distilled into facts, and that entities are linked across memories. The GitHub README states the code is Apache 2.0 licensed and maintained under the mem0ai organization. The authors' paper (arXiv 2504.19413, submitted April 2025) describes a pipeline that extracts, consolidates and retrieves information from conversations, with a graph-based variant. Performance claims in that paper are the authors' own and are not repeated here.

## How it shows up when you use agents

Mem0 is a memory layer for AI agents. It comes up when you want an assistant to recall facts across sessions without pasting them into every prompt. Its docs describe a hosted Platform and an open-source option you run yourself, and list integrations with coding agents such as Claude Code and Cursor, frameworks such as LangChain, CrewAI and LlamaIndex, and example cookbooks.

How it fits a session: after a conversation, the layer distills messages into stored facts. In a later session, relevant facts are fetched and placed into the [context window](/glossary/context-window) with your prompt. This is the same pattern as [agent memory](/glossary/agent-memory), supplied by an outside service instead of files.

What breaks when it is misunderstood:

- **Assuming the model learned.** The model's weights do not change. Stored text is added to the prompt.
- **Stale or wrong memories.** A fact saved once can keep resurfacing after it stops being true.
- **Data leaving your machine.** Using a hosted service sends conversation content to it. The self-hosted option keeps data on your own infrastructure, according to the docs.

Next action: before adding a memory layer, run `/memory` in Claude Code to see what the built-in memory already holds, and decide what you are willing to store. Do not send secrets. The consumer chat feature is a separate thing, covered under [memory feature](/glossary/memory-feature).

Mem0 is a product of Embedchain, Inc. (doing business as Mem0), which owns the name; Skill Almanac is independent and not affiliated with Embedchain, Inc.

## Common confusions

- **Mem0 versus a vector database.** A [vector database](/glossary/vector-database) stores and searches embeddings. Mem0's docs say its Platform manages a vector store, and add extraction and scoping on top.
- **Mem0 versus CLAUDE.md.** CLAUDE.md is a file you write and Claude Code loads. Mem0 is an external service or library that stores facts from conversations.
- **Mem0 versus the memory feature in chat apps.** The [memory feature](/glossary/memory-feature) of a consumer app is built into that app. Mem0 is software you add to your own agent or app.
- **Myth.** Memory makes a model smarter. It supplies earlier facts to the prompt; it does not change the model.

## Worked examples in this catalogue

### [session-handoff-notes](https://skillalmanac.com/skills/skill-almanac/session-handoff-notes)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A handoff note that the next coding-agent session can act on, checked for evidence, paths and vague items.

Why it exercises the concept: It is memory written by hand to carry unfinished work between sessions. A memory layer automates part of that idea.

### [agent-instruction-files](https://skillalmanac.com/skills/skill-almanac/agent-instruction-files)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Instruction files where every line is project-specific, verified against the repo, and worth loading at the start of a session.

Why it exercises the concept: Instruction files are the file-based way to give an agent persistent context. A memory layer such as Mem0 is a different route to the same goal.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
/memory
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Claude Code lets you browse and open its memory files from within a session and toggle auto memory.

Why it exercises the concept: It shows the built-in, file-based memory that an external layer would add to or replace, so you can see what the agent already carries.

## Related terms

- [Agent memory](https://skillalmanac.com/glossary/agent-memory.md)
- [Memory (chat assistant feature)](https://skillalmanac.com/glossary/memory-feature.md)
- [Context window](https://skillalmanac.com/glossary/context-window.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Retrieval-augmented generation (RAG)](https://skillalmanac.com/glossary/retrieval-augmented-generation.md)
- [Knowledge graph](https://skillalmanac.com/glossary/knowledge-graph.md)

## Sources

- [Mem0 documentation: introduction](https://docs.mem0.ai/introduction), Mem0 (accessed 2026-11-24)
- [mem0ai/mem0](https://github.com/mem0ai/mem0), GitHub (mem0ai) (accessed 2026-11-24)
- [Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory](https://arxiv.org/abs/2504.19413), arXiv (Chhikara et al.) (accessed 2026-11-24)
- [What Is AI Agent Memory?](https://www.ibm.com/think/topics/ai-agent-memory), IBM (accessed 2026-11-24)
- [Mem0 Platform overview](https://docs.mem0.ai/platform/overview), Mem0 (accessed 2026-11-24)
- [Mem0 privacy policy](https://mem0.ai/privacy-policy), Mem0 (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
