docs/open-source/overview.mdx
Mem0 Open Source is the same memory engine as the Platform, running on your own infrastructure. You own the stack, the data, and every component, and you choose where each one runs.
Run it two ways:
pip install mem0ai (or npm install mem0ai), call Memory(), and you have memory in a few lines.Mem0 runs out of the box with the defaults below. Override any of them through configuration.
As a library (you import Mem0 and call Memory()):
| Component | Default |
|---|---|
| LLM | OpenAI gpt-5-mini (set OPENAI_API_KEY) |
| Embeddings | OpenAI text-embedding-3-small |
| Vector store | Local Qdrant at /tmp/qdrant |
| History store | SQLite at ~/.mem0/history.db |
| Reranker | Disabled until configured |
Override any component with Memory.from_config.
As a self-hosted server (the server/ Docker Compose stack):
| Component | Default |
|---|---|
| LLM | OpenAI gpt-5-mini (override with MEM0_DEFAULT_LLM_MODEL) |
| Embeddings | OpenAI text-embedding-3-small (override with MEM0_DEFAULT_EMBEDDER_MODEL) |
| Vector store | Postgres + pgvector |
| Bundled providers | openai, anthropic, gemini (switch on the Configuration page) |
See Self-Hosted Setup for the full provider list and how to extend it.
<Snippet file="star-on-github.mdx" />