claude-mem

Persistent memory for Claude Code, Codex and other AI coding agents - free plugin, your choice of provider

Version
15.9.0
Released
November 2, 2026
Size
Unknown
License
Apache-2.0 · Open source
DevelopmentWindowsmacOSLinuxOpen source

About claude-mem

claude-mem is an open-source plugin that gives AI coding agents a persistent memory. It captures what happens during each session, compresses it with AI, and injects the relevant context back into future sessions, so the agent picks up where you left off instead of starting from a blank page.

It installs with a single command and now hooks into far more than Claude Code: Codex, Gemini, Copilot, OpenCode, Cursor, Grok, T3 Code and several other agent harnesses. Memory lives locally in a SQLite database with a vector index, and the agent can query its own history in natural language through built-in search tools designed to use roughly ten times fewer tokens than re-reading full transcripts.

The code is free under the Apache-2.0 license, but the default hosted memory observer runs as a 30-day free trial; after that, memory falls back to your Anthropic plan unless you subscribe, and you can plug in your own OpenRouter or Gemini API key instead. Privacy controls include private tags and automatic redaction of common secrets before storage.

We share our first impressions in our claude-mem discovery.

Key Features

Persistent context across sessions

Captures tool activity during each session, compresses it with AI and injects relevant context back into future sessions automatically.

Natural-language memory search

The agent queries its own history through search, timeline and detail tools designed to use roughly 10x fewer tokens than re-reading transcripts.

Local-first storage

Memory lives in a local SQLite database with a vector index; optional cloud sync to cmem.ai when you want backup.

Privacy controls

Private tags keep sensitive content out, and recent versions redact webhook URLs, API tokens and other secrets before storage.

Pros & Cons

Pros

  • Free, open-source code under the Apache-2.0 license
  • Works with Claude Code, Codex, Gemini, Copilot, OpenCode, Cursor and more
  • Local-first memory with optional cloud sync
  • One-command install and automatic operation

Cons

  • Default hosted observer is a 30-day trial, then paid or fallback to your Anthropic plan
  • Requires Node.js 20 or newer
  • November changelog admitted an earlier setup flow uploaded 30 days of prompts without asking; fixed, but worth knowing

Frequently Asked Questions

Is claude-mem free?

The code is free and open-source (Apache-2.0). The default hosted memory observer is a 30-day free trial; after that you can subscribe, fall back to your Anthropic plan, or use your own OpenRouter or Gemini API key.

Does claude-mem only work with Claude Code?

No. Despite the name, current versions also hook into Codex, Gemini, Copilot, OpenCode, Cursor, Grok, T3 Code, Antigravity and several other agent harnesses.

Where is my memory stored?

Locally, in a SQLite database with a vector index on your machine. Optional cloud sync to cmem.ai is available for backup.

Quick Info

Developerthedotmack
LicenseApache-2.0 · Open source
Version15.9.0
SizeUnknown
Sourcedocs.claude-mem.ai
Listing updated5 Nov 2026