8 Best Claude-Mem Alternatives in 2026 (Open Source)
Claude-Mem — Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context b. Provides a dedicated memory compression and injection system specifically for AI coding agents across multiple platforms.
These 8 open-source tools do the same job. They are ordered by how closely they match Claude-Mem, with live GitHub data so you can see which projects are actively maintained.
| Tool | GitHub stars | Stars / 30d | Last commit |
|---|---|---|---|
| Claude-Mem(original) | 95.0k | +7,918 | 2026-09-30 |
| Mem0 | 66.4k | +2,429 | 2026-09-25 |
| Memary | 2.7k | +12 | 2024-10-18 |
| memvid | 16.6k | +1,381 | 2026-07-14 |
| memU | 14.5k | +1,208 | 2026-09-21 |
| OpenViking | 39.1k | +3,255 | 2026-09-30 |
| ThinkGPT | 1.6k | +0 | 2023-05-16 |
| claude-context | 12.6k | +1,048 | 2026-07-14 |
| code-review-graph | 31.9k | +2,656 | 2026-09-18 |
1. Mem0
Universal memory layer for AI Agents
What sets it apart: Unlike Zep (session-focused memory) or ChatGPT's built-in memory (closed, limited), Mem0 provides a standalone, open-source memory layer with proven +26% accuracy gains over OpenAI Memory, multi-level (user/session/agent) state management, and 90% token reduction via intelligent memory retrieval.
Best for: AI assistant developers who need persistent, personalized memory across conversations without building custom infrastructure; Customer support chatbots that need to recall past tickets and user preferences
2. Memary
The Open Source Memory Layer For Autonomous Agents
What sets it apart: vs LangChain Memory / Mem0: graph-database-backed memory system emulating human memory (breadth + depth tracking) — agents automatically build and query knowledge graphs rather than flat conversation history
Best for: Building persistent, context-aware AI agents with evolving memory; User preference tracking and personalization across sessions; Multi-user agent management with separate knowledge contexts
3. memvid
Memory layer for AI Agents. Replace complex RAG pipelines with a serverless, single-file memory layer. Give your agents instant retrieval and long-term memory.
What sets it apart: Packages complete memory system into a single portable file without requiring databases or complex infrastructure.
Best for: Long-running AI agents; Offline-first AI systems; Auditable AI workflows
4. memU
Personal memory across agents
What sets it apart: Core memory logic is only 500 lines, making it compact enough to inspect, understand, and adapt.
Best for: Users running multiple AI coding agents; Teams needing shared knowledge across agents; Maintaining consistent memory across development sessions
5. OpenViking
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
What sets it apart: Organizes agent context as an inspectable virtual filesystem with URI addresses instead of a black-box embedding store.
Best for: Developers needing structured agent memory; Projects requiring inspectable and editable agent knowledge; Teams wanting a unified filesystem for agent context
6. ThinkGPT
Agent techniques to augment your LLM and push it beyong its limits
What sets it apart: vs LangChain Memory/LlamaIndex: purpose-built Chain of Thought library combining memory, self-refinement, knowledge compression, and inference — focused on making LLMs 'think' rather than just retrieve
Best for: Teaching LLMs new concepts through memory and self-refinement; Building agents with persistent knowledge across sessions; Knowledge-intensive tasks requiring compression and reasoning
7. claude-context
Code search MCP for Claude Code. Make entire codebase the context for any coding agent.
What sets it apart: Uses semantic search to provide relevant code context to AI coding agents instead of loading entire codebases, making it cost-effective for large projects.
Best for: Developers using Claude Code; Teams with large codebases; AI coding agent users needing code context
8. code-review-graph
Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked contex
What sets it apart: Provides AI coding tools with a local, persistent structural map of the codebase to drastically reduce the context they need to read.
Best for: Reducing context size for AI code reviews; Improving AI coding tool performance on large repositories; Providing precise code change context to assistants
FAQ
- What are the best alternatives to Claude-Mem?
- The closest open-source alternatives to Claude-Mem are Mem0, Memary and memvid, followed by memU, OpenViking and ThinkGPT. They are ranked by how closely they match what Claude-Mem does.
- Which Claude-Mem alternative is the most popular?
- Mem0 has the most GitHub stars among Claude-Mem alternatives, with 66,380 stars.
- Which Claude-Mem alternative is the most actively maintained?
- By recent activity, OpenViking (1,028 commits in the last 90 days) is the most actively developed alternative.