Real data. Live GitHub stars. Updated March 2026. Find the right memory layer for your AI agent — from free open-source to enterprise cloud.
Last updated: March 28, 2026 · Data from GitHub API, Brave Search, official pricing pages
| System | GitHub Stars | Free Tier | Paid Plans | Open Source |
|---|---|---|---|---|
| Mem0 ★ 24K | ~24K | Free 10K memories/mo |
$19/mo Starter $249/mo Pro |
Open Core |
| Letta (MemGPT) | ~17K | Free Self-host only |
$19/mo Starter $249/mo Pro |
✓ Apache 2.0 |
| Zep | ~4.3K | Free Hobby tier |
$49/mo $249/mo Pro |
✓ Apache 2.0 |
| agent-memory ★ MCP | 0 (just launched) |
✓ 100% Free No limits, no API key |
✓ Free Forever No cloud, no account |
✓ MIT License |
| Mem0 OpenMemory NEW | (in m0 repo) | Free tier Requires OpenAI key |
$19+ /mo Sends data to cloud |
Open Core |
| Feature | Mem0 | Letta | Zep | agent-memory |
|---|---|---|---|---|
| MCP Support | ✗ No | ✗ No | ✗ No | ✓ MCP v3.2 |
| Local-first | Cloud only | ✓ Self-host | Cloud + Self | ✓ JSON/SQLite |
| TTL Expiration | ✓ | ✓ | ✓ | ✓ Built-in |
| Encryption | ? | ✓ | ✓ | ✓ AES |
| Multiple Backends | ✗ | ✗ | ✗ | ✓ JSON/SQLite/Redis |
| REST API | ✓ | ✓ | ✓ | ✓ |
| SSE Streaming | ? | ? | ? | ✓ |
| No Cloud Dependency | ✗ | ✓ | ✗ | ✓ 100% local |
| LangChain Required | ✗ | ✓ | ✗ | ✗ |
Source: Mem0 paper (2026). Zep's 600K+ token footprint vs Mem0's 1,764 is a 340x difference. agent-memory uses on-demand retrieval similar to Mem0.
| Scenario | Best Choice | Why |
|---|---|---|
| MCP-native (Cursor, Claude Code, OpenClaw) | agent-memory ✓ | Only MCP v3.2 native option |
| MCP-native + no API key + offline | agent-memory ✓ ONLY | OpenMemory requires OpenAI key + cloud |
| Privacy-first, no cloud, no API key | agent-memory ✓ | 100% local, MIT license |
| Need Redis backend integration | agent-memory ✓ | Built-in Redis support |
| Enterprise, need managed cloud | Mem0 | $24M funded, production-grade |
| Need Letta agent framework | Letta | Full agent runtime built-in |
| Already using LangChain/LangGraph | Mem0 or Letta | Native LangChain integration |
# Install
pip install agent-memory
# Use with MCP (Cursor, Claude Code, OpenClaw)
python -m agent_memory.mcp_server
# Or use directly
from agent_memory import Memory
m = Memory(storage="json", path="./memory.json")
m.add("User prefers dark mode", ttl="30d")
results = m.search("dark mode preference")
# MCP tools available:
memory_search — Search memories
memory_add — Add new memory
memory_get — Get memory by ID
memory_list — List recent memories
memory_clear — Clear memories
# Works with:
# Cursor IDE (MCP integration)
# Claude Code (MCP)
# OpenClaw (MCP)
# Any MCP-compatible client
# AI coding agent MCP (Claude Code, Cursor)
python agent_memory/mcp_coding_agent.py
# Coding-specific tools:
memory_project_add — Learn project structure
memory_code_fact — Store API shapes, schemas
memory_decision — Record architectural decisions
memory_session_resume — Resume work across sessions