Favicon of Mem0

Mem0

A self-hosted AI memory server and library under Apache 2.0 retain context across sessions. Default language and embedding requests go to OpenAI.

Screenshot of Mem0 website

Mem0 provides a self-hosted memory server and libraries for developers whose AI applications need to remember user preferences and earlier interactions. The code is open source under Apache 2.0. Its default language and embedding models are OpenAI's gpt-5-mini and text-embedding-3-small, so self-hosting still sends model requests to OpenAI and requires internet access.

Developers can associate memory with users, sessions or agents, then retrieve relevant information for later conversations. This suits personal assistants and customer support bots that need to recall previous tickets or user history. The application can add memories from conversations and search them when preparing a response.

The self-hosted server runs through Docker and includes a dashboard, authentication and API keys. Python and Node.js libraries give developers another way to add memory to applications, while LangGraph and CrewAI integrations connect it to agent workflows. The library's optional NLP support adds BM25 keyword matching and entity extraction for enhanced hybrid search.

Mem0 also offers a managed cloud service. That service includes proprietary optimizations absent from the open source SDK, so its published benchmark results don't describe identical self-hosted performance. The framework supports other language and embedding models as alternatives to its OpenAI defaults.

A separate Chrome extension stores memories across ChatGPT, Claude and Perplexity.

Similar to Mem0