Mem0 alternatives that run fully local
Five Mem0 alternatives that keep agent memory on your machine: Cognee, Supermemory's local mode, MemPalace, Basic Memory and Memorinth, with what each needs.
On this page
The Mem0 alternatives that run fully on your own machine are Cognee, Supermemory’s local mode, MemPalace, Basic Memory and Memorinth. All five can save and search memory without a cloud account or a model API key. Mem0 is still the right choice when you are building an app that must remember its users. The alternatives below fit a different job: memory for the coding agents you run yourself.
This is what each project’s own documentation says, as of November 2026.
| Licence | Where memory lives | Works with no model key | Reaches coding agents by | |
|---|---|---|---|---|
| Mem0, open source | Apache-2.0 | A local Qdrant store and a SQLite history | No: OpenAI by default | A plugin that needs a Mem0 Platform key |
| Cognee | Apache-2.0 | SQLite, LanceDB and a file-based graph | Yes, for saving and recall | Its own MCP server |
| Supermemory, local mode | MIT | One folder, ~/.supermemory |
Embeddings yes; bring a model or Ollama | A local API |
| MemPalace | MIT | ChromaDB, plus SQLite for its graph | Yes | An MCP server |
| Basic Memory | AGPL-3.0 | Markdown files and a SQLite index | Yes | An MCP server |
| Memorinth | Source not public yet | Markdown files and a SQLite index | Yes | An MCP server, set up for four agents |
Why look for a Mem0 alternative at all
Mem0 is built for apps that remember their users, and most people who look elsewhere have a different job in mind. You send Mem0 conversations and it extracts memories from them with a language model. Its README says so plainly: Mem0 “requires an LLM to function”, with OpenAI models as the default for both extraction and embeddings.
That design suits a product with many users. It is an odd shape for one developer’s own agents, for three reasons.
- Every save is a model call. The open-source defaults are an OpenAI model, OpenAI embeddings, a local Qdrant store and a SQLite history. You can point it at Ollama instead, but that is setup you do yourself.
- The coding agent integration is hosted. Mem0’s Claude Code integration lists a Mem0 Platform account and API key as a prerequisite.
- You can’t open the memory. It lives in a vector store, so you query it. You don’t read it.
On price, Mem0’s pricing page lists a Free plan and a Custom plan. Graph memory is on the Custom plan. Read the limits there, because they change after the first 30 days.
Is OpenMemory a self-hosted Mem0 alternative?
OpenMemory is Mem0’s own local option, not an alternative to it, and it still needs a model key. Mem0 introduced OpenMemory MCP as a “private, local-first memory server” for MCP clients such as Cursor and Claude Desktop. The setup in that post builds Docker images and puts an OPENAI_API_KEY in a .env file. So the storage is local, but saving a memory calls OpenAI unless you change the configuration.
One thing to check before you rely on it: when we looked, the openmemory folder was no longer in the top level of Mem0’s repository, and the OpenMemory quickstart in the docs led to the docs home page. Confirm where it lives now before you build on it.
Cognee: a knowledge graph with no server
Cognee is the closest thing to Mem0 that runs with no key. It turns documents and conversations into a knowledge graph. A plain install uses three bundled, file-based stores: SQLite, LanceDB for vectors and Ladybug for the graph. Its README says it “runs locally for free” with no API key, using local models for extraction and embeddings. Add an LLM when you want written answers and not only retrieved passages.
Cognee has an MCP server with remember, recall and forget tools, and its docs name Claude Code, Cursor, Cline and Codex.
Pick Cognee when you want entities and relationships extracted for you, from files as well as chats, and you are comfortable in Python.
Supermemory’s local mode: one binary
Supermemory is a hosted memory service that now ships a local mode. Its README describes one binary, started with npx supermemory local, that keeps everything in ~/.supermemory. Embeddings use a local model by default, with no key. For the language model you bring your own provider, or use Ollama to stay offline.
The README notes two limits. Fetching a URL goes through a hosted reader, so that part is not offline. And every request needs a local key, even on localhost.
Pick Supermemory’s local mode when you want the same API on your laptop that you could later move to their cloud.
MemPalace: keep every word
MemPalace takes the opposite view to Mem0 on extraction. Its README says it stores your conversation history as verbatim text and “does not summarize, extract, or paraphrase”. The default store is ChromaDB, with a local SQLite knowledge graph, and the core path needs no API key. It is MIT licensed and runs as an MCP server.
Pick MemPalace when you would sooner search everything that was said than trust a model’s summary of it.
Basic Memory: Markdown, open source
Basic Memory keeps memory as Markdown files you and your assistant both read and write. Its README describes “just files plus a local SQLite index”, with hybrid full-text and vector search on local embeddings. It is AGPL-3.0. A cloud plan that syncs across devices is optional, from $19 a month per workspace by its pricing page.
Pick Basic Memory when you want readable files, open source code and sync you can pay for. If that’s you, it is a better choice than Memorinth today. We compare the two closely in basic-memory vs Memorinth.
Memorinth: files, with decisions and facts
Memorinth is ours, so weigh this section accordingly. It keeps memory as Markdown notes in a folder you choose, called The cortex. The search index is a SQLite cache built from those files. Search by meaning runs on a local embedding model, downloaded once, so nothing needs a key and it works offline. Privacy and updates lists exactly what runs where.
Two things are different from the tools above.
- The agent writes the memory. There is no extraction step and no model call to save a note. The agent that was in the session decides what is worth keeping.
- Decisions and facts have a lifecycle. Decisions are superseded, never edited. Facts carry a source and come up for a recheck after 180 days.
memorinth init connects Claude Code, Codex, Cursor and Gemini CLI to one cortex in a single step.
Where Memorinth is weaker: its source isn’t public yet, it has no sync between computers, and it extracts nothing for you. If you want a graph built from a pile of documents, use Cognee. If you want memory inside a product, use Mem0.
Which one to choose
| If you want… | Look at |
|---|---|
| Memory for the users of an app you ship | Mem0 |
| A knowledge graph built for you, locally | Cognee |
| A local copy of a hosted memory API | Supermemory’s local mode |
| Every conversation kept word for word | MemPalace |
| Open-source Markdown memory, with paid sync | Basic Memory |
| Markdown memory shared by your coding agents, with decisions and facts | Memorinth |
For the server frameworks, see Mem0 vs Zep vs Letta. To try Memorinth, start with Install the CLI, then run:
$ memorinth init