# Mem0 (open source)

> 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.

- Repository: https://github.com/mem0ai/mem0
- Official docs: https://docs.mem0.ai/open-source/overview
- Checked: 2026-10-16

## What it replaces
- Mem0 Platform: Long-term memory for chat assistants (partial). Same core memory layer, self-hosted; some platform optimisations and advanced features are not in the open-source version.

## Facts, with sources

| Question | Status | Answer | Source | Checked |
|---|---|---|---|---|
| Runs on my machine? | Confirmed | Yes, as a Python/Node library or a self-hosted Docker server | https://github.com/mem0ai/mem0#self-hosted-server | 2026-10-15 |
| Code licence | Confirmed | Apache-2.0 | https://github.com/mem0ai/mem0/blob/main/LICENSE | 2026-10-15 |
| Model weights licence | Confirmed | No bundled weights; licence depends on the LLM and embedding model you connect | https://github.com/mem0ai/mem0#basic-usage | 2026-10-15 |
| Commercial use | Confirmed | Yes, Apache-2.0 code | https://github.com/mem0ai/mem0/blob/main/LICENSE | 2026-10-15 |
| Paid services needed? | Partial | Needs an LLM and embeddings (OpenAI by default); local models via Ollama are documented | https://docs.mem0.ai/components/llms/models/ollama | 2026-10-15 |
| Hardware | Unknown | Not documented; depends on the LLM and embedding model you run | https://github.com/mem0ai/mem0#readme | 2026-10-15 |
| 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 | https://github.com/mem0ai/mem0/blob/main/docs/open-source/setup.mdx | 2026-10-16 |
| Setup effort | Confirmed | Easy, pip install mem0ai (server via docker compose) | https://github.com/mem0ai/mem0#library-pip--npm | 2026-10-15 |

GitHub: 67271 stars, 7923 forks, last push 2026-10-16, archived: no.
---
Source: RepoQuarry (https://repoquarry.dev/projects/mem0). Data licence: CC BY 4.0. Quotes are from project documentation and belong to their authors.
