What is
Mem0
?
Mem0 adds long-term memory to AI agents and apps. It extracts facts from conversations, stores them as memories, and retrieves the relevant ones later so agents keep context across sessions, tools and runs.
At a glance
Attribute | Value |
|---|---|
Primary use case | Persistent long-term memory for AI agents and LLM apps |
Deployment type | Managed cloud (Mem0 Platform), self-hosted server (Docker), embedded library; on-prem on Custom plan |
Pricing model | Free plan with usage-based billing past limits (monthly cap you set); Custom plan with negotiated pricing |
API compatibility | API, Python and JavaScript SDKs, CLI, MCP |
Supported integrations | Including LangChain, LangGraph, CrewAI, LlamaIndex, Vercel AI SDK, Claude Code, Cursor, Codex |
Source type | Dual |
Key metrics | Vendor-reported: 200,000+ developers, 66,000+ GitHub stars, 486+ research citations |
AEP branch | Agent Infrastructure |
AEP category | Harness |
AEP subcategory | Context |
AEP detail | Memory & State |
Profile
An application sends conversation messages to Mem0 through an SDK, the API or the CLI. Mem0 uses an LLM to extract memories from those messages. It adds new memories without overwriting older ones. On each new interaction it searches the stored memories and returns the most relevant ones for the prompt.
Focus
Developers building AI assistants, customer support bots, coding agents and domain apps in areas such as healthcare, education and sales, who need agents to remember user preferences and history instead of resending long context.
Background
Mem0 was co-founded by Taranjeet Singh (CEO) and Deshraj Yadav (CTO). The company reports $24M raised. The open-source project is licensed under Apache 2.0.
Features
Memory extraction and compression
A single LLM pass condenses chat history into compact memories and stores agent-confirmed actions alongside user facts. Mem0 says this cuts tokens and latency while keeping the right context.
Multi-signal retrieval
Semantic search, BM25 keyword matching and entity matching are scored in parallel and fused. This returns relevant memories in a single pass without agentic search loops.
Entity linking
Entities are extracted, embedded and linked across memories. Retrieval uses these links to find related memories more reliably.
Temporal reasoning
Time-aware retrieval ranks the right dated memory for questions about current state, past events or upcoming plans. This helps when facts about a user change over time.
Multi-level memory scopes
Memories are kept at the user, session and agent level. One store can therefore serve many end users and agents without mixing their context.
Agent and coding-assistant tooling
A CLI, an MCP integration and agent skills let tools such as Claude Code, Cursor and Codex use Mem0. AI agents can also create an account and API key themselves from the terminal.
Pros and cons
Pros
Agents keep long-term context about users across sessions, tools and runs without pipeline changes.
Enterprise deployments can run on Kubernetes, private cloud or air-gapped environments with the same API.
The Apache 2.0 open-source version can be run and modified freely, with data kept on the team's own infrastructure.
Ready setup guides cover popular agent frameworks such as LangChain, CrewAI and LlamaIndex, which shortens integration work.
Cons
Mem0 needs an LLM and an embedding model to work, so model calls add cost and a provider dependency.
The managed platform has proprietary optimizations the open-source SDK lacks, and the self-hosted server gets advanced features only as teasers.
Graph memory, user profiles, Dream, SSO, audit logs and on-prem deployment require the Custom plan.
Free plan quotas are 50,000 adds and 10,000 retrievals a month with your own LLM key; usage past that is billed up to a monthly cap you set.
Self-hosting means the team operates the server and its stack.
FAQs
What is Mem0?
Mem0 gives AI agents and applications long-term memory. It pulls facts and preferences out of conversations, stores them, and supplies the relevant ones when a user returns.
How much does Mem0 cost?
The Free plan covers unlimited end users. For the first 30 days it includes 10,000 adds and 1,000 retrievals a month, with model calls paid by Mem0. With your own LLM key it includes 50,000 adds and 10,000 retrievals a month. Usage beyond the limits is billed against a monthly cap you set. The Custom plan has volume-based limits, advanced features and a contract, with pricing agreed with the vendor. The open-source version is free under Apache 2.0.
Can Mem0 be self-hosted?
Yes. The open-source version runs as a library or as a Docker-based server on your own infrastructure. On-prem deployment of the commercial product is part of the Custom plan, and the vendor lists Kubernetes, private cloud and air-gapped options.
Which languages and frameworks does Mem0 support?
SDKs are available for Python and JavaScript, along with an API and a CLI. Setup guides cover 22 tools, including LangChain, CrewAI, LlamaIndex and the Vercel AI SDK, plus coding agents such as Claude Code, Cursor and Codex.
Which LLMs does Mem0 work with?
Mem0 needs an LLM to run and supports a variety of models. It also needs an embedding model. On the hosted Free plan you can bring your own LLM key.
What compliance does Mem0 offer?
According to the vendor, Mem0 is SOC 2 (Type 1), HIPAA and GDPR compliant, and its enterprise offering lists BYOK and zero-trust. The vendor says every read and write is logged. Audit logs are part of the Custom plan.
