Skip to content
SaaS product

Open source Mem0 alternatives

Mem0 adds persistent memory to AI agents through a hosted API. Open source memory layers give your agents the same cross-session recall, fully self-hosted.

5 alternatives available Most starred first

About Mem0

Mem0 is a memory layer for AI applications and agents: instead of re-sending full conversation history on every call, it extracts, compresses, and stores the relevant facts from an interaction, then retrieves only what’s relevant for the next one. Its add/retrieve workflow is designed as a near drop-in addition to an existing LLM pipeline, using a hierarchical distillation process that condenses raw chat history into compact, queryable memories.

Mem0 offers both a hosted cloud API and an open-source core, with the hosted platform adding enterprise governance — SOC 2 and HIPAA compliance, audit logging, and deployment options including private cloud and air-gapped environments. Teams that want the memory-layer pattern without the hosted platform’s governance layer and pricing often build directly on the open-source project or on comparable self-hosted memory tools.

What Mem0 offers

  1. Memory compression enginecondenses raw conversation history into compact, retrievable memory objects
  2. Add/retrieve APIa minimal-integration workflow for storing and recalling agent memory
  3. Multi-signal retrievalcombines multiple signals to surface the most relevant memories for a given query
  4. Enterprise governanceSOC 2 and HIPAA-compliant deployment options with full audit logging
  5. Portable deploymentruns on Kubernetes, private cloud, or air-gapped infrastructure
  6. Cross-session persistencememories persist across conversations and even across different agents
  7. Open-source corethe underlying memory engine is available to self-host

Common use cases

  1. Long-running support agentsa customer support agent recalls a user's history across multiple separate conversations
  2. Personalized AI assistantsan assistant remembers user preferences without re-asking every session
  3. Token cost reductiona team replaces full chat-history replay with compact memory retrieval to cut LLM costs
  4. Regulated-industry deploymentsa healthcare or fintech team needs auditable, compliant memory storage for agent interactions

Open source alternatives

Every app in the directory that replaces Mem0. Turn a card over to compare their scores.

TypeScript 66%Apache 2.0

claude-mem

118,698

AI Agents · AI Development · AI Memory

Give your AI coding agents persistent memory — claude-mem captures everything that happens during sessions, compresses it with AI, and surfaces the right context in every future session automatically.

App
Built with
  • TypeScript 66%
  • JavaScript 29%
Updated 2 days agoView details
Python 94%MIT

MemPalace

60,644

AI Agents · AI Development · AI Memory

Local-first AI memory with verbatim storage, pluggable backends, and 96.6% retrieval recall on LongMemEval — no API key required.

App
Built with
  • Python 94%
Updated 3 days agoView details
TypeScript 82%Apache 2.0

agentmemory

30,504

AI Agents · AI Memory · Mcp

Persistent memory for AI coding agents — built on the iii engine, it works across Claude Code, GitHub Copilot CLI, Cursor, Gemini CLI, Codex CLI, and any MCP client, so agents stop needing everything re-explained every session.

App
Built with
  • TypeScript 82%
Updated 5 days agoView details
TypeScript 80%MIT

Hippo

794

AI Agents · AI Memory

A biologically-inspired memory layer for AI coding agents — memories decay by default and strengthen through use, modeled on the hippocampus, with zero runtime dependencies and a SQLite backbone.

App
Built with
  • TypeScript 80%
  • JavaScript 12%
Updated 3 days agoView details
Rust 79%MIT

mnemo

238

AI Agents · AI Development · AI Memory

A local-first AI memory sidecar that extracts entities, builds a persistent knowledge graph, and injects ranked context into any LLM pipeline — no cloud required.

App
Built with
  • Rust 79%
  • Python 16%
Updated 5 months agoView details

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers