8 Best Claude-Mem Alternatives in 2026 (Open Source)

Claude-Mem — Captures and compresses agent activity to provide relevant context across coding sessions. Provides a dedicated memory compression and injection system specifically for AI coding agents across multiple platforms.

Short answer

  • Closest match to Claude-Mem: Mem0.
  • Most actively developed: OpenViking (1,047 commits in the last 90 days).
  • Fastest growing: Mem0 (+2,412 GitHub stars in the last 30 days).
  • No commit in 6+ months: Memary and ThinkGPT.

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.

By package downloads OpenViking is the most used here (441.3K in the last 30 days), even though Claude-Mem has the most GitHub stars. See all agent tools by downloads.

ToolGitHub starsStars / 30dLast commitDownloads / 30d
Claude-Mem(original)95.2k+2,0902026-10-0368.7K
Mem066.5k+2,4122026-10-01—
Memary2.7k+122024-10-1840
memvid16.6k+602026-07-14—
memU14.5k-502026-09-21—
OpenViking39.2k+9902026-10-03441.3K
ThinkGPT1.6k02023-05-16—
claude-context12.6k+602026-07-14—
code-review-graph31.9k+2202026-09-18—
  1. 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. 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. 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. 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. 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. 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. 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. 8. code-review-graph

    Local code knowledge graph serving compact review context to AI coding tools over MCP

    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,514 stars.
Which Claude-Mem alternative is the most actively maintained?
By recent activity, OpenViking (1,047 commits in the last 90 days) is the most actively developed alternative.