claude-mem
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Free, open-source memory for Claude Code. Your own database, no cloud, no subscription.
Claude Code
$ npx -y skills add Avijit07x/claude-db --agent claude-code
Codex
$ npx skills add Avijit07x/claude-db -a codex
Cursor
$ npx skills add Avijit07x/claude-db -a cursor
Gemini CLI
$ npx skills add Avijit07x/claude-db -a gemini-cli
GitHub Copilot
$ npx skills add Avijit07x/claude-db -a github-copilot
OpenCode
$ npx skills add Avijit07x/claude-db -a opencode
Windsurf
$ npx skills add Avijit07x/claude-db -a windsurf
Free, open-source memory for Claude Code. Your own database, no cloud, no subscription.
Documentation · Quick start · CLI reference
Every Claude Code chat starts from zero. You explain the same decisions, dead ends and rules again, and Claude works out what calls what from scratch.
claude-db fixes that. It keeps what you decided and a map of your code, and gives Claude the right part of it at the right time.
You need Node 22.16 or newer and a git repository.
npm install -g claude-db
cd your-project
claude-db install --project
Restart Claude Code. There is nothing else to run, because capture and recall are hooks.
Then load what already exists with claude-db flush and claude-db scan. The
setup guide has the rest.
| Where | What it does |
|---|---|
/catchup | Answers "where did I stop?" when you come back |
/handoff | Leaves a short note for the next chat or a mate |
/cdb-scan | Maps an existing codebase into memory |
claude-db status | Shows whether it is wired up and what it recorded |
claude-db doctor | Checks the setup, and finds what is wrong |
claude-db use <url> | Switches to Postgres or MongoDB (pg/mongodb) |
cdb is a shorter alias. Every command is in the
CLI reference.
Memory stays in your own database. Two features call Claude Haiku through your
own login, and each has an off switch: claude-db distill off for making facts
from finished chats, and claude-db pick off for choosing memory per prompt.
Once a day it asks npm for the latest version ("updates": "off" stops that).
.env, secrets/, node_modules and .git/ are never stored. Text inside
<private>...</private> is stripped, and API keys and tokens are redacted
before anything is written or sent.
npm install
npm run build
npm test
npm run lint
CONTRIBUTING.md has the setup, the rules and the pull request checklist, with links to adding a language and to releasing. Security reports go through SECURITY.md, privately.
Apache-2.0
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Gives Claude Code long-term memory through Hindsight. It recalls relevant past context before answering, retains durable facts as the agent learns them, and reflects over stored memory.
Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.
Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.
Free, open-source memory for Claude Code. Your own database, no cloud, no subscription. Install it with the command on its page. It includes catchup, cdb-scan, handoff. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it