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.

6 alternatives available

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

01

Memory compression engine

condenses raw conversation history into compact, retrievable memory objects

02

Add/retrieve API

a minimal-integration workflow for storing and recalling agent memory

03

Multi-signal retrieval

combines multiple signals to surface the most relevant memories for a given query

04

Enterprise governance

SOC 2 and HIPAA-compliant deployment options with full audit logging

05

Portable deployment

runs on Kubernetes, private cloud, or air-gapped infrastructure

06

Cross-session persistence

memories persist across conversations and even across different agents

07

Open-source core

the underlying memory engine is available to self-host

Common Use Cases

01

Long-running support agents

a customer support agent recalls a user's history across multiple separate conversations

02

Personalized AI assistants

an assistant remembers user preferences without re-asking every session

03

Token cost reduction

a team replaces full chat-history replay with compact memory retrieval to cut LLM costs

04

Regulated-industry deployments

a healthcare or fintech team needs auditable, compliant memory storage for agent interactions

Open Source Alternatives

JavaScript
52%
Apache 2.0

claude-mem

AI Agents · AI Development

92,611

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.

View details
86
Repo Health
82
Technical
77
Dependency
Built with
JavaScript52%
TypeScript46%
Updated yesterday
Python
95%
MIT

MemPalace

AI Agents · AI Development

58,740

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

View details
84
Repo Health
84
Technical
71
Dependency
Built with
Python95%
Updated 2 days ago
TypeScript
82%
Apache 2.0

agentmemory

AI Agents

27,759

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.

View details
82
Repo Health
69
Technical
81
Dependency
Built with
TypeScript82%
Updated 6 days ago
TypeScript
99%
Other

byterover-cli

AI Agents · AI Code Assistants

4,949

A portable memory layer for AI coding agents — curate structured project knowledge into a version-controlled context tree that syncs across tools, machines, and teammates.

View details
58
Repo Health
83
Technical
70
Dependency
Built with
TypeScript99%
Updated 2 months ago
TypeScript
70%
MIT

Hippo

AI Agents

734

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.

View details
75
Repo Health
71
Technical
80
Dependency
Built with
TypeScript70%
JavaScript14%
Updated 5 days ago
Rust
79%
MIT

mnemo

AI Agents · AI Development

237

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.

View details
29
Repo Health
78
Technical
75
Dependency
Built with
Rust79%
Python16%
Updated 2 months ago

Join founders buildingwith open source

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

Subscribe on Substack
Join 750+ subscribers

Search