# Mem0

CreateWithAI Hub page: https://createwithaihub.com/frameworks/mem0
Latest version of this file: https://createwithaihub.com/frameworks/mem0.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: Mem0
- Pricing: Free · License: Apache-2.0
- Runs on: API (cloud), Docker / self-hosted

Open-source memory layer that gives AI assistants and agents user, session and agent memory, with a hosted platform.

Mem0 is a memory layer for AI assistants and agents that stores user preferences and history and retrieves them in later conversations. It keeps memory at user, session and agent level, extracts facts with one LLM call per add, and retrieves with combined semantic, BM25 keyword and entity matching plus time-aware ranking. It is available as a Python or npm library, a self-hosted server with dashboard and API keys, or the managed Mem0 Platform. It integrates with frameworks such as LangGraph and CrewAI.

Useful for: Giving a support chatbot memory of each customer's past tickets and preferences so it does not ask the same questions again.

## Key features

- User, session and agent memory
- Single-pass add-only extraction with entity linking
- Multi-signal retrieval: semantic, BM25 keyword and entity matching
- Python and npm libraries, a self-hosted server and a managed platform
- mem0 CLI and skills for coding agents
- Integrations with LangGraph and CrewAI

## Connection

- Language: Python, TypeScript / JS
- Focus: Agents & tool use, RAG & data

## Install steps from the official documentation

Python:

```
pip install mem0ai
```

npm:

```
npm install mem0ai
```

Self-hosted server:

```
cd server && docker compose up -d
```

## Limitations

- Published benchmark scores are for the managed platform, which includes optimizations not in the open-source SDK
- Some advanced features are only included in the cloud platform
- Version 3 changed the algorithm; a migration guide covers upgrades from v2

## Official links

- Website: https://mem0.ai
- Source repository: https://github.com/mem0ai/mem0
- Documentation: https://docs.mem0.ai
- Source: https://github.com/mem0ai/mem0 (README: description, memory levels, new algorithm and benchmark caveat, library/self-hosted/cloud options, install commands, integrations; LICENSE: Apache-2.0)
- Source: https://mem0.ai/pricing (Free plan (limited adds/retrievals per month) and Custom paid plans)
