# Mem0: a memory layer that lets AI assistants and agents remember users over time

> Mem0 is an Apache 2.0 memory layer for AI assistants and agents that stores and retrieves what they learn about users, available as a Python and npm library, a self-hosted server, or a hosted cloud platform.

- Project: mem0 by mem0ai
- List: Built for AI
- Kind: library
- Works with: Claude Code, Codex, Cursor, Langgraph, CrewAI
- Noticed: 69,467 GitHub stars (when we found it)
- Added: 2026-11-25T20:08:33+00:00
- Web page: https://ai-news.ikangai.com/built/mem0/

Mem0 ("mem-zero") is a memory layer for AI assistants and agents. According to the README, it lets them remember user preferences and adapt over time. Developers can use it three ways: as a library installed with pip install mem0ai or npm install mem0ai, as a self-hosted server started with docker compose, or as the hosted Mem0 Platform. The core loop is memory.add on a conversation and memory.search filtered by user_id. The README's example wraps an OpenAI chat call in that loop.

Mem0 needs an LLM to run. The default is gpt-5-mini from OpenAI, and the default embedding model is text-embedding-3-small. The README recommends a stronger embedding model for hybrid search. An optional NLP extra needs a spaCy model. Self-hosted auth is on by default. The project also ships agent skills for Claude Code, Codex, Cursor and others, plus a command-line tool.

The README reports gains from a new algorithm dated April 2026: LoCoMo rose from 71.4 to 92.5, and LongMemEval rose from 67.8 to 94.4. It says those scores reflect the managed platform, which includes proprietary optimizations, and that open-source users should expect only directionally similar gains. The README says the evaluation framework is open source so the numbers can be reproduced.

## In the author's words

> Mem0 ("mem-zero") enhances AI assistants and agents with an intelligent memory layer, enabling personalized AI interactions.

## When to reach for it

A developer building a chatbot that should recall users across sessions could use it rather than writing a custom store, but should test the open-source version rather than trust the hosted benchmark numbers.

## See it

- [mem0](https://github.com/mem0ai/mem0)
- [Website](https://mem0.ai)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
