CreateWithAIHub

Framework Mem0

Mem0

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

Agent memory layerFreeOpen source
Visit website ↗
Save

What it is

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.

What it's 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

How to use it

Python
pip install mem0ai
npm
npm install mem0ai
Self-hosted server
cd server && docker compose up -d

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

  • 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

Alternatives

Hosted context and memory layer for agents, built on a temporal knowledge graph, with SDKs, an MCP server and a free plan.

Free plan + paid

Open-source memory and context API for AI apps and agents, with a hosted MCP server, plugins and a fully local mode.

Free plan + paidOpen source

Open-source harness and TypeScript SDK for stateful agents with long-term memory, formerly MemGPT.

FreeOpen source

Open-source Python library for building AI agents that browse and act on websites, with an optional hosted cloud.

FreeOpen source

MCP servers for this

MCP reference server that gives an AI client controlled read/write access to chosen local directories.

FreeOpen source

MCP reference server that gives a client persistent memory as a local knowledge graph of entities, relations and observations.

FreeOpen source

MCP reference server with one tool that has a model work through a problem as numbered thoughts it can revise and branch.

FreeOpen source

Skills for this

Curated GitHub list of skills, plugins, agents, status lines, hooks and tooling for Claude Code.

Free

Skills-based software development workflow for coding agents: brainstorm, plan, test-first, subagent execution.

FreeOpen source

Related resources

Speech-to-text API for pre-recorded and streaming audio (AssemblyAI-STT-3.7), with speech understanding, guardrails and an LLM Gateway.

Free plan + paid

Self-hostable platform of AI 'Experts' coordinated by an assistant called Otto, with a visual block-based workflow builder.

Free plan + paid

Anthropic's family of proprietary large language models (Opus, Sonnet, Haiku tiers) for reasoning, coding and agents.

Paid

Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.

Paid

Type to search. Use ↑ ↓ and Enter.