---
title: "Graphiti alternatives 2026: agent memory compared"
canonical: "https://xerj.org/compare/graphiti-alternatives-2026"
updated: "2026-12-03"
---

# Best Graphiti alternatives in 2026

SHORT ANSWER · UPDATED 2026-12-03
The best Graphiti alternatives in 2026 are Mem0 for personalised assistants that remember users, Cognee for graph plus vector memory from your documents, Memvid for portable memory in one file and LangMem for memory inside LangGraph agents. In one line, Graphiti is this: framework for building temporally aware knowledge graphs for AI agents. The right swap depends on how you want to run it and which licence you need.
**Key number:** Graphiti had 33,291 GitHub stars on 3 Dec 2026, latest release mcp-v1.1.5, 24 Nov 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 Graphiti alternatives in 2026 are Mem0 for personalised assistants that remember users, Cognee for graph plus vector memory from your documents, Memvid for portable memory in one file and LangMem for memory inside LangGraph agents.

## Agent prompt

```text
Read https://xerj.org/llms.txt. I am comparing Graphiti 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

- Pick [Mem0](https://github.com/mem0ai/mem0) if you want personalised assistants that remember users.
- Pick [Cognee](https://github.com/topoteretes/cognee) if you want graph plus vector memory from your documents.
- Pick [Memvid](https://github.com/memvid/memvid) if you want portable memory in one file.
- Pick [LangMem](https://github.com/langchain-ai/langmem) if you want memory inside LangGraph agents.
- Pick [claude-mem](https://github.com/thedotmack/claude-mem) if you want session memory inside Claude Code.
- Pick [Hindsight](https://github.com/hindsightai/hindsight) if you want agent memory that improves over time.
- Pick [OpenViking](https://github.com/volcengine/OpenViking) if you want hierarchical context for agents.
- Pick [Supermemory](https://github.com/supermemoryai/supermemory) if you want universal memory across AI apps.
- Pick [XERJ](https://github.com/xerj-org/xerj) if an AI agent should search your local code, docs and logs over MCP.

## What Graphiti does well

Framework for building temporally aware knowledge graphs for AI agents. It suits time-aware knowledge graphs in your own stack. It runs as a library in your process, is written mainly in Python, and its licence is Apache-2.0. Plan for this: needs a graph database such as Neo4j or FalkorDB.

## How the Graphiti alternatives differ

The alternatives split by how they run:

- **Library in your process:** Mem0, Cognee, Memvid, LangMem.
- **Database extension:** claude-mem.
- **Self-hosted server:** Hindsight, OpenViking.
- **Managed API:** Supermemory.

## Licences at a glance

- **Permissive licences:** Graphiti (Apache-2.0), Mem0 (Apache-2.0), Cognee (Apache-2.0), Memvid (Apache-2.0), LangMem (MIT), claude-mem (Apache-2.0), Hindsight (MIT), Supermemory (MIT).
- **Copyleft licences:** OpenViking (AGPL-3.0).

## Most recent releases

claude-mem shipped v17.2.1 on 3 Dec 2026. Hindsight shipped v1.3.1 on 2 Dec 2026. OpenViking shipped python-sdk 0.1.22 on 2 Dec 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 Graphiti

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 Graphiti 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

- [Graphiti vs Mem0 (2026): which agent memory fits?](https://xerj.org/compare/graphiti-vs-mem0-2026)
- [Mem0 vs OpenViking (2026): which agent memory fits?](https://xerj.org/compare/mem0-vs-openviking-2026)
- [Mem0 vs Letta (2026): which agent memory fits?](https://xerj.org/compare/mem0-vs-letta-2026)
- [Mem0 vs Zep (2026): which agent memory fits?](https://xerj.org/compare/mem0-vs-zep-2026)
- [Hindsight vs Mem0 (2026): which agent memory fits?](https://xerj.org/compare/hindsight-vs-mem0-2026)
- [Mem0 vs Supermemory (2026): which agent memory fits?](https://xerj.org/compare/mem0-vs-supermemory-2026)
- [What is agentic memory?](https://xerj.org/science/agentic-memory)
- [What is context engineering?](https://xerj.org/science/context-engineering)

## FAQ

### What is the best Graphiti alternative in 2026?

It depends on the job: Mem0 fits personalised assistants that remember users, Cognee fits graph plus vector memory from your documents, Memvid fits portable memory in one file, LangMem fits memory inside LangGraph agents, and XERJ fits AI agents searching local files over MCP.

### Is Graphiti open source?

Graphiti is published under Apache-2.0 and had 33,291 GitHub stars on 3 Dec 2026.

### Which Graphiti alternatives can I self-host?

These run on your own machines: Mem0, Cognee, Memvid, LangMem, claude-mem, Hindsight, OpenViking.

### Which languages are the Graphiti alternatives written in?

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

## Evidence

- [getzep/graphiti](https://github.com/getzep/graphiti): 33,291 stars, Apache-2.0, Python, latest release mcp-v1.1.5, 24 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [mem0ai/mem0](https://github.com/mem0ai/mem0): 70,021 stars, Apache-2.0, Python, latest release ts-v3.3.1, 25 Sep 2026 (GitHub API and release page, checked 3 Dec 2026).
- [topoteretes/cognee](https://github.com/topoteretes/cognee): 33,829 stars, Apache-2.0, Python, latest release v1.6.11, 26 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [memvid/memvid](https://github.com/memvid/memvid): 17,450 stars, Apache-2.0, Rust, latest release v2.0.140, 27 May 2026 (GitHub API and release page, checked 3 Dec 2026).
- [langchain-ai/langmem](https://github.com/langchain-ai/langmem): 1,806 stars, MIT, Python, latest release No GitHub release (GitHub API and release page, checked 3 Dec 2026).
- [thedotmack/claude-mem](https://github.com/thedotmack/claude-mem): 121,616 stars, Apache-2.0, TypeScript, latest release v17.2.1, 3 Dec 2026 (GitHub API and release page, checked 3 Dec 2026).
- [hindsightai/hindsight](https://github.com/hindsightai/hindsight): 64,660 stars, MIT, Python, latest release v1.3.1, 2 Dec 2026 (GitHub API and release page, checked 3 Dec 2026).
- [volcengine/OpenViking](https://github.com/volcengine/OpenViking): 43,179 stars, AGPL-3.0, Python, latest release python-sdk 0.1.22, 2 Dec 2026 (GitHub API and release page, checked 3 Dec 2026).
- [supermemoryai/supermemory](https://github.com/supermemoryai/supermemory): 32,053 stars, MIT, TypeScript, latest release server-v0.0.9, 12 Oct 2026 (GitHub API and release page, checked 3 Dec 2026).
- [xerj-org/xerj](https://github.com/xerj-org/xerj): 23,588 stars, Apache-2.0, Rust, latest release v1.0.0-rc.105, 23 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).

## Comparison table

| Tool | What it is | Runs as | Language | Latest release | Licence | Stars |
|---|---|---|---|---|---|---|
| [Graphiti](https://github.com/getzep/graphiti) | Framework for building temporally aware knowledge graphs for AI agents | Library in your process | Python | mcp-v1.1.5, 24 Nov 2026 | Apache-2.0 | 33,291 |
| [Mem0](https://github.com/mem0ai/mem0) | Memory layer for AI agents that extracts, stores and retrieves user and session memories | Library in your process | Python | ts-v3.3.1, 25 Sep 2026 | Apache-2.0 | 70,021 |
| [Cognee](https://github.com/topoteretes/cognee) | Memory engine that turns documents into a knowledge graph plus vectors for agents | Library in your process | Python | v1.6.11, 26 Nov 2026 | Apache-2.0 | 33,829 |
| [Memvid](https://github.com/memvid/memvid) | Single-file memory layer for AI agents with fast retrieval | Library in your process | Rust | v2.0.140, 27 May 2026 | Apache-2.0 | 17,450 |
| [LangMem](https://github.com/langchain-ai/langmem) | LangChain library for agents to extract, manage and recall long-term memory | Library in your process | Python | No GitHub release | MIT | 1,806 |
| [claude-mem](https://github.com/thedotmack/claude-mem) | Claude Code plugin that captures session context and injects it into future sessions | Database extension | TypeScript | v17.2.1, 3 Dec 2026 | Apache-2.0 | 121,616 |
| [Hindsight](https://github.com/hindsightai/hindsight) | Agent memory system that learns from experience with retain, recall and reflect operations | Self-hosted server | Python | v1.3.1, 2 Dec 2026 | MIT | 64,660 |
| [OpenViking](https://github.com/volcengine/OpenViking) | Context database for AI agents that organises memory, resources and skills as a file system | Self-hosted server | Python | python-sdk 0.1.22, 2 Dec 2026 | AGPL-3.0 | 43,179 |
| [Supermemory](https://github.com/supermemoryai/supermemory) | Memory API and app for AI with an MCP server | Managed API | TypeScript | server-v0.0.9, 12 Oct 2026 | MIT | 32,053 |
| [XERJ](https://github.com/xerj-org/xerj) | One local Rust binary that indexes code, docs, logs and data, and serves cited search to agents over MCP | Command-line tool | Rust | v1.0.0-rc.105, 23 Nov 2026 | Apache-2.0 | 23,588 |
