Skip to content
RepoQuarry

Mem0 (open source) mem0ai/mem0

Open-source memory layer for AI assistants and agents, as a Python/Node library or a self-hosted server with dashboard.

Mem0 (open source) at a glance

Checked 16 Oct 2026

Mem0 is the Apache-2.0 open-source core behind the paid Mem0 Platform: a library (pip install mem0ai, npm mem0ai) or Docker-based self-hosted server that extracts memories from conversations and retrieves them per user, session or agent. It needs an LLM and an embedding model, OpenAI by default; Ollama is documented for local models. The README says benchmark scores reflect the managed platform's proprietary optimisations not in the open-source SDK, and the self-hosted server only has "teasers" of advanced features.

Cite this pageRepoQuarry. “Mem0 (open source).” Checked 16 Oct 2026. https://repoquarry.dev/projects/mem0

How much of Mem0 Platform does it replace?

1 of 3 jobs. Same core memory layer, self-hosted; some platform optimisations and advanced features are not in the open-source version.

Partial: Long-term memory for chat assistants Partial replacement
No: Memory for coding agents Not covered
No: Knowledge graph memory Not covered

For memory for coding agents, knowledge graph memory, see other Mem0 Platform alternatives. You may also need to build an interface, an API server and hosting yourself.

Facts, with sources

Every answer links to where we found it. We read the documentation; we did not install it.

Report a correction
QuestionAnswerSourceChecked
Runs on my machine? Confirmed: Yes, as a Python/Node library or a self-hosted Docker server Just testing? Use the library. Building for a team? Self-hosted. Want zero ops? Cloud. github.com · mem0#self-hosted-server ↗ 1d ago
Code licence Confirmed: Apache-2.0 github.com · LICENSE ↗ 1d ago
Model weights licence Confirmed: No bundled weights; licence depends on the LLM and embedding model you connect github.com · mem0#basic-usage ↗ 1d ago
Commercial use Confirmed: Yes, Apache-2.0 code github.com · LICENSE ↗ 1d ago
Paid services needed? Partial: Needs an LLM and embeddings (OpenAI by default); local models via Ollama are documented You can use LLMs from Ollama to run Mem0 locally. docs.mem0.ai · ollama ↗ 1d ago
Hardware Unknown: Not documented; depends on the LLM and embedding model you run github.com · mem0#readme ↗ 1d ago
Operating systems Unknown: Reviewed README and official self-host setup guide document Python/Node libraries and a Docker server; no explicit Windows/macOS/Linux host compatibility matrix was found github.com · setup.mdx ↗ today
Setup effort Confirmed: Easy, pip install mem0ai (server via docker compose) pip install mem0ai github.com · mem0#library-pip--npm ↗ 1d ago

Get the weekly top 5 and what’s new, every Monday

We’ll email you once a week. Unsubscribe any time. We never share your email.

Cookie preferences

Choose what we may store in your browser. You can change this any time from Cookie settings in the footer.

Essential

Security, and remembering this choice. rq-consent · 12 months

Always on