Mem0

By Mem0

Memory layer for agents — extracts and recalls facts across sessions, not raw chat logs.

v2.0.132026-07-22PythonApache-2.0
61.5k Open source Free tier Paid

Doc version 1.0 · Updated

Related tools

Overview

Mem0 is a memory layer that gives agents long-term, per-user recall.
Instead of storing raw conversation chunks, it runs an extraction step that distils messages into compact facts, then retrieves the relevant ones when you search — a different shape of problem than plain vector retrieval.

flowchart LR
  msg[messages] --> mem0[Mem0]
  mem0 --> store[(vector store)]
  q[query] --> mem0
  mem0 --> facts[relevant memories]

The Code samples tab shows storing and searching memories, then folding them into a prompt — pick from the selector to compare.

When to use it

Choose Mem0 when an agent should remember user preferences and facts across sessions, rather than re-reading the whole history every turn.