Mem0
Use case: Memory
Memory layer that extracts and retrieves user/agent facts across sessions.
Mem0 is a memory layer for AI assistants and agents. It stores facts about users, sessions and agents, then retrieves the relevant ones so later conversations can use them. In the open-source library you create a Memory object, call memory.add with a conversation to save memories, and call memory.search with a query and a user ID to get them back. Mem0 needs a language model to work, and its default is OpenAI's gpt-5-mini with the text-embedding-3-small embedding model, though other models are supported. It also ships a CLI and agent skills for coding assistants.
Pick Mem0 when an agent should remember preferences and history across sessions, for example a support bot that recalls earlier tickets. You can choose between three ways to run it: the pip or npm library for prototyping, a self-hosted server started with Docker, or the hosted cloud platform. The README notes that the platform includes optimizations that the open-source SDK does not have, so results can differ between them. The docs include setup guides for 22 tools, among them LangChain and CrewAI, and the README links a LangGraph integration.
The code is released under Apache 2.0, and the library installs with pip install mem0ai or npm install mem0ai. The hosted platform has published plans. Hobby is free, with 10,000 add requests and 1,000 retrieval requests per month and one project. Starter is $19 a month with 50,000 add and 5,000 retrieval requests. Pro is $249 a month with 500,000 add and 50,000 retrieval requests, unlimited projects and graph memory. Enterprise is custom. Those figures were read in October 2026 and can change. Self-hosting adds the cost of the model and infrastructure you run.
Like Mem0? Find tools like it on X.
Follow @AgentstackDaily, plus the free Top 25 Agent Tools checklist.
At a glance
- Category
- Memory
- Best for
- Best memory and evaluation tools for AI agents · Memory use cases
- Official site
- github.com
- Link checked
- November 4, 2026
- Data
- JSON
How Mem0 fits an agent workflow
In an agent stack, Mem0 belongs to the Memory category, which covers the context layer, where an agent stores and retrieves information across steps and sessions. You will also find it in our curated list: Best memory and evaluation tools for AI agents. Other Memory entries worth a look alongside it include Cognee, MCP Memory server and Anthropic memory tool.
Mem0 alternatives
- Letta (MemGPT) — Stateful agents with self-editing tiered memory, from the MemGPT research.
- Zep / Graphiti — Temporal knowledge graph for agent memory that tracks how facts change over time.
- LangMem — LangChain library for long-term memory extraction and prompt optimization in agents.
- Cognee — Builds knowledge graphs plus vectors from your data as agent memory.
- MCP Memory server — Reference knowledge-graph memory server any MCP client can use.
- Anthropic memory tool — Claude API tool for storing and retrieving information in a file directory across conversa
All Memory tools → · Best memory and evaluation tools for AI agents
Related tools
- Anthropic: Effective context engineering
Guide to curating context: compaction, structured notes and sub-agent architectures.
- Chroma
Open-source embedding database commonly used for agent retrieval memory.
- Entire
Git forge built for agents: the open-source (MIT) Entire CLI captures Claude Code, Codex, Gemini and other agent session
- claude-mem
Open-source (Apache-2.0) persistent memory for coding agents: captures tool-use observations, compresses them into summa
- Letta (MemGPT)
Stateful agents with self-editing tiered memory, from the MemGPT research.
FAQ
What does Mem0 do?
Mem0 gives AI agents long-term memory that persists across sessions, tools and runs. It extracts facts from conversations and retrieves the relevant ones when needed.
Is Mem0 open source?
The open-source library is Apache 2.0 licensed. You pay for the model it uses. A hosted platform is also available.
How do I install Mem0?
Run pip install mem0ai for Python or npm install mem0ai for JavaScript. You can also self-host with Docker or sign up for the cloud platform at app.mem0.ai.
Which language model does Mem0 use?
By default it uses OpenAI's gpt-5-mini and the text-embedding-3-small embedding model. It supports many other models and embedders, which you configure.
Get new agent tools and tips as they're added
Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.