LibreAI / AI Agents / claude-mem
// agents · thedotmack/claude-mem

claude-mem

Give your coding agents a persistent memory that survives every session.

★ 97.9k stars⑂ 8.6k forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

claude-mem is an open-source ai agents project by thedotmack (thedotmack/claude-mem on GitHub). It has 97,934 GitHub stars and 8,612 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 7 October 2026.

GitHub stars
97,934
Forks
8,612
License
Apache-2.0
Last updated on GitHub
7 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Know your goal

    Be clear about the problem you are solving before installing.

  2. Get the code

    Clone the repository and skim the docs for hardware or key requirements.

  3. Configure it

    Install dependencies, then add API keys, endpoints, or local-model settings.

  4. Take it for a spin

    Launch the example flow and verify the output matches expectations.

// features

Why people love it

Cross-session memory

Captures session activity and re-injects relevant context later.

AI-compressed context

Summarizes sessions so memory stays compact and relevant.

Multi-agent support

Works with Claude Code, Codex, Gemini, Copilot, OpenCode, and more.

ChromaDB-backed

Uses ChromaDB as its vector memory store.

TypeScript codebase

A modern TS implementation that is easy to extend.

Apache-2.0 licensed

Permissive open-source licensing.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/thedotmack/claude-mem.git
    cd claude-mem
  2. Step 2 — Install

    Install the TypeScript dependencies.

    npm install
  3. Step 3 — Connect your agent

    Build the project and follow the README to hook it into your agent CLI.

    npm run build
    # see README for per-agent setup
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains claude-mem?

It is maintained by thedotmack at thedotmack/claude-mem, with 8,612 forks. Review the contributors and release cadence to judge maintenance health.

Is claude-mem free to use?

Yes. It is released under the Apache-2.0 license, which permits commercial use, modification, and redistribution. Read the LICENSE file for the exact terms.

Do I need a paid API to use it?

You need model access for the compression and injection steps — typically your existing agent CLI subscription or API keys. Check the README for what it calls.

How is this different from a managed memory API?

It is self-hosted and agent-CLI oriented, with local ChromaDB storage. Compare on retention quality, latency, and which agents each option supports.

How do I get started?

Clone the repo, run npm install, and follow the README to connect it to the agent CLI you use.

// keep exploring

Similar tools

AI Agents

magic-context

Self-managing, unbounded context and long-term memory for coding agents: one session, for life.

★ 2.3k starsMIT
View guide →
AI Agents

A-mem-sys

Agentic memory for LLM agents, from a published research project.

★ 401 starsMIT
View guide →
AI Agents

mem0

Drop-in persistent memory infrastructure for AI agents and apps.

★ 66.8k starsApache-2.0
View guide →
AI Agents

cognee

Open-source AI memory that gives agents persistent long-term recall.

★ 31.6k starsApache-2.0
View guide →
AI Agents

graphiti

Real-time knowledge graphs that give agents a memory with structure.

★ 31.5k starsApache-2.0
View guide →
AI Agents

MemOS

Self-evolving memory OS for LLMs and agents: persistent graph memory, hybrid retrieval, skill reuse.

★ 11.8k starsApache-2.0
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if claude-mem is not the right fit.

Get claude-mem

Free and open — grab the source, star the repo, and start creating.