COMPARISONS · AGENT MEMORY COMPARED

Best claude-mem alternatives in 2026

AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-12-03 · UPDATED · 2026-12-03
SHORT ANSWER · UPDATED 2026-12-03

The best claude-mem alternatives in 2026 are Mem0 for personalised assistants that remember users, Hindsight for agent memory that improves over time, OpenViking for hierarchical context for agents and Cognee for graph plus vector memory from your documents. In one line, claude-mem is this: claude Code plugin that captures session context and injects it into future sessions. The right swap depends on how you want to run it and which licence you need.

Key number: claude-mem had 121,616 GitHub stars on 3 Dec 2026, latest release v17.2.1, 3 Dec 2026.

Stars, licences, languages and releases for 10 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers.

TL;DR The best claude-mem alternatives in 2026 are Mem0 for personalised assistants that remember users, Hindsight for agent memory that improves over time, OpenViking for hierarchical context for agents and Cognee for graph plus vector memory from your documents.

Try it: filter 10 tools

claude-mem and 9 alternatives, live data

Show only

Sort by

ToolWhat it isBest forRuns asLanguageLatest releaseLicenceStars
claude-memClaude Code plugin that captures session context and injects it into future sessionsSession memory inside Claude CodeDatabase extensionTypeScriptv17.2.1, 3 Dec 2026Apache-2.0121,616
Mem0Memory layer for AI agents that extracts, stores and retrieves user and session memoriesPersonalised assistants that remember usersLibrary in your processPythonts-v3.3.1, 25 Sep 2026Apache-2.070,021
HindsightAgent memory system that learns from experience with retain, recall and reflect operationsAgent memory that improves over timeSelf-hosted serverPythonv1.3.1, 2 Dec 2026MIT64,660
OpenVikingContext database for AI agents that organises memory, resources and skills as a file systemHierarchical context for agentsSelf-hosted serverPythonpython-sdk 0.1.22, 2 Dec 2026AGPL-3.043,179
CogneeMemory engine that turns documents into a knowledge graph plus vectors for agentsGraph plus vector memory from your documentsLibrary in your processPythonv1.6.11, 26 Nov 2026Apache-2.033,829
GraphitiFramework for building temporally aware knowledge graphs for AI agentsTime-aware knowledge graphs in your own stackLibrary in your processPythonmcp-v1.1.5, 24 Nov 2026Apache-2.033,291
SupermemoryMemory API and app for AI with an MCP serverUniversal memory across AI appsManaged APITypeScriptserver-v0.0.9, 12 Oct 2026MIT32,053
LettaPlatform for stateful agents with self-editing memory, formerly MemGPTLong-running agents that manage their own memorySelf-hosted serverNot listed0.16.8, 14 May 2026Apache-2.025,640
MemvidSingle-file memory layer for AI agents with fast retrievalPortable memory in one fileLibrary in your processRustv2.0.140, 27 May 2026Apache-2.017,450
XERJOne local Rust binary that indexes code, docs, logs and data, and serves cited search to agents over MCPAgents searching local files over MCPCommand-line toolRustv1.0.0-rc.105, 23 Nov 2026Apache-2.023,588

Runs in your browser and sends nothing. Tick a box to narrow the list, sort by stars or newest release. Data fetched live on 3 Dec 2026; sources in Evidence below.
PASTE THIS TO YOUR AI AGENT. IT DOES THE REST Read https://xerj.org/llms.txt. I am comparing claude-mem alternatives. Install XERJ, start a local node, run xerj autoindex on my project folder, connect xerj mcp, and show me three searches with file and line citations.

Pick one in ten seconds

What claude-mem does well

Claude Code plugin that captures session context and injects it into future sessions. It suits session memory inside Claude Code. It runs as a database extension, is written mainly in TypeScript, and its licence is Apache-2.0. Plan for this: built for Claude Code.

How the claude-mem alternatives differ

The alternatives split by how they run:

Licences at a glance

Most recent releases

Hindsight shipped v1.3.1 on 2 Dec 2026. OpenViking shipped python-sdk 0.1.22 on 2 Dec 2026. Cognee shipped v1.6.11 on 26 Nov 2026. A recent release is a sign of active upkeep, so check the changelog for the features you rely on.

Where XERJ fits next to claude-mem

XERJ is a new way for AI to search for data: one local Rust binary that indexes code, docs, logs and data with xerj autoindex and returns passages with file and line citations. xerj mcp is a stdio MCP server, and xerj mcp --http serves Streamable HTTP at http://127.0.0.1:9330/mcp, read-only unless you pass --allow-writes. A non-loopback bind needs XERJ_MCP_TOKEN. It complements claude-mem when an agent needs answers from files on your machine.

How we checked

Stars, licences, languages and releases for 10 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers. Descriptions summarise each project's own README or documentation. Star counts move daily, so treat them as a snapshot.

Read next

FAQ

What is the best claude-mem alternative in 2026?

It depends on the job: Mem0 fits personalised assistants that remember users, Hindsight fits agent memory that improves over time, OpenViking fits hierarchical context for agents, Cognee fits graph plus vector memory from your documents, and XERJ fits AI agents searching local files over MCP.

Is claude-mem open source?

claude-mem is published under Apache-2.0 and had 121,616 GitHub stars on 3 Dec 2026.

Which claude-mem alternatives can I self-host?

These run on your own machines: Mem0, Hindsight, OpenViking, Cognee, Graphiti, Letta, Memvid.

Which languages are the claude-mem alternatives written in?

Python: Mem0, Hindsight, OpenViking, Cognee, Graphiti; Rust: Memvid; TypeScript: Supermemory. The primary language is the one GitHub reports for each repository.

Evidence