Open-source alternatives to Mem

hindsight leads with 97, ahead of gbrain (94) and MemPalace (91). Updated from public GitHub data.

The highest-scoring open-source projects in Memory. They are picks, not exact replacements, so read the weaknesses before you switch. The same picks fit if you are leaving ChatGPT memory or Zep.

Most stars
Mem0 69,504 stars
No GPU needed
gbrain runs without one
Try before you install
Mem0 live demo
Open-source alternatives to Mem
RankProjectScore
1hindsightAgent memory server with retain, recall and reflect operationsMemory63.6k stars+9,355 (+17%) in 30 daysMIT97 out of 100
2gbrainMemory store with sources and a knowledge graph for coding agentsMemory33.6k stars+2,448 (+7.9%) in 30 daysMIT94 out of 100
3MemPalaceLocal verbatim memory store for AI agents with semantic search and MCPMemory60.7k starsMIT91 out of 100
#4SupermemoryMemory and context engine for AI agents, with user profiles and hybrid searchMemory31.8k starsMIT91 out of 100
#5Mem0Long-term memory layer that stores and retrieves user facts for LLM agents Live demo ↗ (opens in a new tab)Memory69.5k starsApache-2.088 out of 100
#6CogneeLong-term memory engine that builds a knowledge graph from documents, code and sessions Live demo ↗ (opens in a new tab)Memory33.6k starsApache-2.088 out of 100
#7GraphitiPython framework for building temporal knowledge graphs for agent memoryMemory33.1k starsApache-2.088 out of 100
#8agentmemoryShared persistent memory server for coding agents, exposed via MCP, hooks and RESTMemory30.6k starsApache-2.085 out of 100
#9everosAgent memory runtime that keeps memories as Markdown, indexed in SQLite and LanceDBMemory14k starsApache-2.085 out of 100
#10OpenVikingFilesystem-style context database for agent memory, resources and skills Live demo ↗ (opens in a new tab)Memory42.9k starsAGPL-3.084 out of 100

Reviews

197 out of 100

hindsight

Agent memory server with retain, recall and reflect operations

63.6k stars+9,355 (+17%) in 30 daysMITlast commit Nov 2026

Hindsight is a long-term memory system for agents. It uses an LLM to extract facts, entities and time data on retain, then recalls them with semantic, BM25, graph and temporal search, merged by reciprocal rank fusion and a cross-encoder rerank. It also consolidates facts into observations and mental models, and ships Python, TypeScript and Go clients, a CLI and a per-bank MCP endpoint.

Strengths

  • Four parallel retrieval strategies (semantic, BM25, graph, temporal) with cross-encoder reranking
  • Works with 25+ LLM providers, including local ones: ollama, lmstudio, llamacpp
  • Python, Node.js and Go clients, CLI, REST API and a built-in MCP endpoint per bank
  • Embedded pg0 database by default; external PostgreSQL and Helm chart also supported

Weaknesses

  • Retain depends on an LLM call for fact extraction, adding provider cost and latency
  • Dashboard, backups and uptime SLA are described only for the hosted Hindsight Cloud
  • Benchmark claims are partly vendor-reported; only some were independently reproduced
  • Intel Macs need the hindsight-all-slim package instead of the default
  • Docker
  • Needs LLM provider (API or local), PostgreSQL (embedded pg0 by default)
  • Models: openai, anthropic, gemini, groq, bedrock
  • port 9999
294 out of 100

gbrain

Memory store with sources and a knowledge graph for coding agents

33.6k stars+2,448 (+7.9%) in 30 daysMITlast commit Nov 2026

GBrain stores facts and markdown pages with their sources and exposes them over MCP to agents such as Claude Code, Codex, Cursor and ChatGPT. It starts keyless with keyword search on embedded PGLite, and optionally adds embeddings, reranking, a typed link graph, and `gbrain think`, which writes cited answers with gap notes. Postgres and a paid hosted option at gbrain.io are also available.

Strengths

  • Keyless start: embedded PGLite and keyword search, no server or API keys needed
  • MCP access via local stdio, Tailscale tailnet exposure, or remote URL with token
  • `gbrain think` answers carry citations and note stale or missing knowledge
  • Swappable schema packs and a typed link graph; MIT license

Weaknesses

  • Not on npm; install from GitHub with Bun 1.4.4 or newer
  • Semantic search, synthesis and enrichment need separately configured, paid model providers
  • Shared brains are not isolated against local file or shared DB credential access
  • Always-on enrichment suggests a server with 8GB+ RAM plus its own API usage
  • RAM ≥ 8 GB
  • no GPU
  • Compose
  • Needs Bun 1.4.4+, PGLite or Postgres, Tailscale (optional, remote MCP), Embedding and chat provider API (optional)
391 out of 100

MemPalace

Local verbatim memory store for AI agents with semantic search and MCP

60.7k starsMITlast commit Nov 2026

MemPalace stores conversation history and project files as verbatim text, without summarizing, and retrieves it by semantic search scoped into wings (people, projects), rooms (topics) and drawers (original content). It defaults to ChromaDB with a pluggable backend interface, and exposes 47 MCP tools plus a SQLite temporal knowledge graph. The README reports 96.6% R@5 on LongMemEval in raw mode with no LLM.

Strengths

  • Stores original text verbatim; raw mode needs no LLM or API key
  • Pluggable backends: Chroma, SQLite exact, Rust exact, Milvus, Qdrant, pgvector
  • Benchmarks reproducible from the repo with committed per-question results
  • Auto-save hooks for Claude Code, Codex CLI and Cursor; 47 MCP tools

Weaknesses

  • Native Termux install unsupported; Android needs a Debian PRoot container
  • Claude Code sessions expire in 30 days unless auto-save hooks are wired
  • First embedding call downloads a model of about 80-300 MB
  • GPU optional
  • Docker + Compose
  • Needs Python 3.10+, ChromaDB (default), Milvus (optional), Qdrant (optional), Postgres pgvector (optional)
  • Models: minilm, embeddinggemma, OpenAI-compatible embeddings endpoints
#491 out of 100

Supermemory

Memory and context engine for AI agents, with user profiles and hybrid search

31.8k starsMITlast commit Nov 2026

Supermemory extracts facts from conversations, tracks updates and contradictions, expires stale information, and returns a per-user profile plus relevant memories through one API. It also covers RAG, connectors (Google Drive, Gmail, Notion, OneDrive, GitHub) and file extraction. It can be used via the hosted API, an MCP server and editor plugins, or a local server on port 6767.

Strengths

  • Hybrid search returns RAG documents and user memories in a single query
  • Handles knowledge updates and contradictions, and auto-forgets expired facts
  • Local server keeps data in ~/.supermemory and can use Ollama with local embeddings
  • Plugins for Claude Code, Cursor, Codex, OpenCode, plus Vercel AI SDK, LangChain, Mastra wrappers

Weaknesses

  • Benchmark #1 claims are self-reported in the README, with details on a separate research page
  • Hosted MCP server and plugins point at supermemory.ai cloud by default
  • Local mode URL ingestion depends on a hosted reader service
  • Local-versus-Enterprise feature differences are only documented on a separate page
  • GPU optional
  • Needs LLM provider (OpenAI, Anthropic, Gemini, Groq, or Ollama), Docker (optional)
  • Models: OpenAI, Anthropic, Gemini, Groq, Ollama
  • port 6767
#588 out of 100

Mem0

Long-term memory layer that stores and retrieves user facts for LLM agents

Live demo ↗ (opens in a new tab)69.5k starsApache-2.0last commit Nov 2026

Mem0 extracts facts from conversations with an LLM, stores them per user, session or agent, and retrieves them with combined semantic, BM25 keyword and entity matching. It ships as a Python and npm library, a self-hosted server with a dashboard and API keys, a CLI, and a managed cloud platform. The published benchmark numbers come from the managed platform, not the open-source SDK.

Strengths

  • Python (pip) and npm SDKs plus a CLI, so it embeds in existing agents
  • Hybrid retrieval: semantic, BM25 keyword and entity linking fused in one search
  • Evaluation framework is open-sourced so benchmark numbers can be reproduced
  • Supports several LLMs and embedders; defaults are configurable

Weaknesses

  • Benchmarks reflect the managed platform; OSS results may differ
  • Needs an LLM; default is OpenAI gpt-5-mini and text-embedding-3-small
  • BM25 and entity features need the optional mem0ai[nlp] extra and a spaCy model
  • Self-hosted dashboard is listed as limited; advanced features are cloud-only
  • GPU optional
  • Needs LLM provider (default OpenAI), Embedding model (default OpenAI text-embedding-3-small), Docker Compose (self-hosted server), spaCy en_core_web_sm (optional NLP extra)
  • Models: OpenAI gpt-5-mini (default), text-embedding-3-small (default), other LLMs and embedders via configuration
  • port 3000
#688 out of 100

Cognee

Long-term memory engine that builds a knowledge graph from documents, code and sessions

Live demo ↗ (opens in a new tab)33.6k starsApache-2.0last commit Nov 2026

Cognee is a Python library, CLI and REST API that stores content through remember, recall, improve and forget operations. It builds entities, relationships and vector chunks from text and code, and runs without an LLM key using local GLiNER extraction and a local embedding model. Plugins exist for Claude Code, Codex and OpenClaw, plus an MCP server for other clients.

Strengths

  • Keyless local mode: GLiNER extraction and local embeddings, no LLM API key required
  • Four-call API (remember, recall, improve, forget) in Python, CLI, REST, TypeScript and Rust
  • Plugins for Claude Code, Codex and OpenClaw, plus an MCP server
  • Imports memory from Mem0, Letta, Zep or Graphiti via the COGX exchange format

Weaknesses

  • Postgres-only graph store is labelled a demo; production version is a licensed product
  • Bundled GLiNER extractor is a demo; the more accurate version requires contacting the vendor
  • Generated answers and media processing need a configured LLM, vision or transcription model
  • Docker defaults to multi-tenant auth; single-user use needs ENABLE_BACKEND_ACCESS_CONTROL=false
  • GPU optional
  • Docker + Compose
  • Needs Python 3.10-3.14, Node.js/npm (UI launcher), Docker (MCP service, optional), Postgres (optional)
  • Models: OpenAI, Ollama, GLiNER (local)
  • port 8000
#788 out of 100

Graphiti

Python framework for building temporal knowledge graphs for agent memory

33.1k starsApache-2.0last commit Nov 2026

Graphiti is a Python library (graphiti-core) that ingests text and JSON episodes into a graph of entities and facts, each with a validity window. Superseded facts are invalidated rather than deleted, so you can query current or past state. Retrieval combines embeddings, BM25 and graph traversal. You supply the graph database (Neo4j, FalkorDB, Neptune), the LLM and the embedder.

Strengths

  • Facts carry validity windows; old facts are invalidated, not deleted, enabling point-in-time queries
  • Incremental ingestion with no full graph recompute; every fact traces to its source episode
  • Custom entity and edge types defined as Pydantic models, or learned from data
  • Multiple graph backends: Neo4j 5.26, FalkorDB 1.1.2, Amazon Neptune

Weaknesses

  • Needs a separately run graph database; no built-in storage
  • Defaults to OpenAI; needs structured-output LLMs, and smaller models can fail ingestion
  • Reference MCP and REST servers have no authentication and are not for production
  • Kuzu backend is deprecated; auth, tenancy and ingestion service are left to you
  • no GPU
  • Docker + Compose
  • Needs Neo4j 5.26, FalkorDB 1.1.2, Amazon Neptune + OpenSearch Serverless, OpenAI API key
  • Models: OpenAI, Anthropic, Google Gemini, Groq, OpenAI-compatible endpoints (Ollama, vLLM, llama.cpp, LM Studio)
#885 out of 100

agentmemory

Shared persistent memory server for coding agents, exposed via MCP, hooks and REST

30.6k starsApache-2.0last commit Nov 2026

AgentMemory captures coding-session events through agent hooks and plugins, scrubs secrets, and stores decisions and fixes for later recall by any connected agent. Recall uses BM25 keyword search without an API key, with optional local or remote embeddings for semantic search. It exposes 54 MCP tools, a REST API on port 3111 and a live viewer on port 3113 for browsing, editing and forgetting memories.

Strengths

  • Keyless BM25 recall works with no API key; README reports 84.7% recall-all@5 on LongMemEval-S
  • One memory store shared across Claude Code, Codex CLI, Cursor, Gemini CLI and others via hooks, MCP or REST
  • No external database required; data stays local, with Redis backend migration documented
  • Live viewer to browse, edit, export and forget memories

Weaknesses

  • Keyless mode has no vector embeddings, so purely semantic queries can return nothing
  • Hook-based capture depth varies by agent; several are MCP-only with no automatic capture
  • Published benchmark covers retrieval only, not full-system answer quality or competitor comparison
  • Requires Node.js 20+; native Windows setup is separate from the default path
  • no GPU
  • Docker + Compose
  • Needs Node.js 20+, curl, sh and tar on macOS/Linux for runtime setup
  • Models: BM25 keyword search (no model), Local embeddings (Xenova/all-MiniLM-L6-v2), Remote embedding and LLM providers (optional)
  • port 3113
#985 out of 100

everos

Agent memory runtime that keeps memories as Markdown, indexed in SQLite and LanceDB

14k starsApache-2.0last commit Nov 2026

EverOS is a Python library and HTTP server that stores conversations, files and agent trajectories as editable Markdown, then indexes them in SQLite and LanceDB for keyword, vector and hybrid search. It keeps user memory (episodes, profile) separate from agent memory (cases, skills) and runs a reflection step that consolidates memories between sessions. A single OpenRouter key enables the core add, flush and keyword-search flow; embedding and rerank providers unlock the rest.

Strengths

  • Markdown is the source of truth: editable, diffable, Git-versionable, with a watcher that re-syncs
  • No MongoDB, Elasticsearch or Redis needed; storage is Markdown, SQLite and LanceDB
  • Scopes search by user_id, agent_id, app_id, project_id and session_id
  • Reports LoCoMo 94.61% and LongMemEval 94.00% with reproduction steps in benchmarks/

Weaknesses

  • Default hybrid search needs an embedding provider; one-key setup is limited to keyword search
  • Needs an external LLM API for extraction; OpenRouter or any OpenAI-compatible endpoint
  • Office file ingestion requires LibreOffice and a multimodal model
  • /api/v1 is a legacy alias that may be removed in a future major release
  • no GPU
  • Needs OpenRouter or OpenAI-compatible LLM API, Embedding provider (for hybrid search), Rerank provider (for agentic search and Knowledge Wiki), LibreOffice (office documents), SQLite, LanceDB
  • Models: openai/gpt-4.1-mini, Qwen/Qwen3-Embedding-4B, Qwen/Qwen3-Reranker-4B, google/gemini-3.8-flash, any OpenAI-compatible model
  • port 8000
#1084 out of 100

OpenViking

Filesystem-style context database for agent memory, resources and skills

Live demo ↗ (opens in a new tab)42.9k starsAGPL-3.0last commit Nov 2026

OpenViking stores agent knowledge, memories and skills as a virtual filesystem under viking:// URIs, which agents browse with ls, tree, read, write and grep. Directories carry generated L0 abstracts and L1 overviews so agents read summaries before full content, and committed sessions become editable Markdown memories. It ships a Python server, an ov CLI, Python/Go/TypeScript SDKs, an HTTP API and memory plugins for Claude Code, Codex, Cursor and others.

Strengths

  • Stored memories are plain Markdown under viking:// paths that you can inspect and edit
  • Semantic search can be scoped to a directory subtree instead of a flat vector pool
  • Plugin installer covers Claude Code, Codex, Cursor, TRAE, OpenCode and more
  • Python, Go and TypeScript SDKs, HTTP API, multi-tenant accounts and opt-in ACLs

Weaknesses

  • Needs a model provider with both an embedding model and a VLM
  • AGPL-3.0 license restricts use in closed-source network services
  • Memory extraction runs in the background, so new memories are not instantly retrievable
  • Desktop app is beta; the plugin installer supports only macOS and Linux
  • no GPU
  • Docker + Compose
  • Needs uv, Python 3.10+, embedding model provider, VLM provider, Node.js 18+ (plugin installer)
  • Models: Volcengine, OpenAI, Codex OAuth, Kimi, GLM