claude-db231
Menu

Installation

Install the package once, then switch it on for a project.

Requirements

  • Node 22.16 or newer (node -v)
  • A git repository
  • Claude Code, logged in

Nothing compiles at install time. SQLite comes from Node itself.

Install

Terminal
npm install -g claude-db

Every command also works as cdb.

Switch it on

1

Run install inside the project

Terminal
cd your-project
claude-db install --project

--project limits it to this repository. Run claude-db install without it to switch it on for every project on this machine. The folder you run it from does not matter in that case.

2

Restart Claude Code

Hooks and the MCP server load only when Claude Code starts. A session that is already open does not have them.

Add .mcp.json and CLAUDE.local.md to your .gitignore. They hold paths and rules that are personal to your machine.

What install adds

WhereWhat it is
.claude/settings.local.jsonThe hooks that capture and recall
.mcp.jsonThe server that gives Claude the six MCP tools
CLAUDE.local.mdA standing instruction to search memory before asking you
.claude/skills/The skills: /cdb-scan, /catchup, /handoff

A machine-wide install writes the same things under ~/.claude/ and ~/.claude.json instead. Memory is always one database for the whole machine, filed by project.

Check it works

Terminal
claude-db doctor
claude-db status

doctor should show wiring : ok and list the three skills. status fills in after your first real session. Nothing is saved for a chat that only asked questions, and that is normal.

For a full test, run claude-db doctor --deep. It writes one test memory, finds it, reads it back and deletes it.

Upgrade

Terminal
npm install -g claude-db

Restart Claude Code. Your memory is kept.

Uninstall

Terminal
claude-db uninstall --project

This removes the hooks, the MCP entry, the instructions and the skills. Your memory is left on disk, so reinstalling picks up where you stopped. To delete the memory itself, see Privacy.

Edit this page on GitHub