- As a library in your app.
pip install mem0ai(ornpm install mem0ai), callMemory(), and you have memory in a few lines. - As a self-hosted server. A Docker stack with a dashboard, per-user API keys, and a request audit log.
Get started
Python Quickstart
Install the SDK and verify the add/search loop in a few lines.
Node.js Quickstart
Install the TypeScript SDK and run the starter script.
Self-hosted server
Run
make bootstrap to launch the server, dashboard, and your first API key.Go further
Configure components
Set your LLM, embedder, vector store, and reranker.
Self-hosting features
Async memory, metadata filters, reranker search, multimodal, and more.
Build with cookbooks
End-to-end examples: companions, agents, and integrations.
Default components
Mem0 runs out of the box with the defaults below. Override any of them through configuration. As a library (youimport Mem0 and call Memory()):
Override any component with
Memory.from_config.
As a self-hosted server (the server/ Docker Compose stack):
See Self-Hosted Setup for the full provider list and how to extend it.
Using Mem0? Star us on GitHub to help more developers discover memory for AI apps.