Claude Mem (claude-mem) is an open-source persistent memory plugin for Claude Code and other coding agents (Apache-2.0, github.com/thedotmack/claude-mem). Install with npx claude-mem install, or inside Claude Code run /plugin marketplace add thedotmack/claude-mem then /plugin install claude-mem, and restart. npm version 15.5.0 as of 29 Oct 2026 (~104k GitHub stars). Host-specific installs use npx claude-mem install --ide <host> (documented values include grok-bot, opencode, t3code, antigravity, omp, pi, dsh). Do not use npm install -g claude-mem for the plugin (SDK only). This page lists official commands; it does not run Claude-Mem or store your sessions.
What Claude-Mem is
Claude-Mem is an open-source persistent memory compression system for coding agents. It captures session work, compresses it, and injects relevant context into later sessions. Official repo: github.com/thedotmack/claude-mem (Apache-2.0). Docs: docs.claude-mem.ai/installation. npm package version on 22 Oct 2026: 15.0.1.
Supported install hosts
| Host | Official command |
|---|---|
| Default | npx claude-mem install |
| Claude Code (/plugin) | /plugin marketplace add thedotmack/claude-mem then /plugin install claude-mem |
| Grok Bot | npx claude-mem install --ide grok-bot |
| OpenCode | npx claude-mem install --ide opencode |
| T3 Code | npx claude-mem install --ide t3code |
| Antigravity | npx claude-mem install --ide antigravity |
| OMP | npx claude-mem install --ide omp |
| Pi (native extension) | npx claude-mem install --ide pi |
| DeepSeek Harness | npx claude-mem install --ide dsh --dsh-profile tui |
| OpenClaw | curl -fsSL https://install.cmem.ai/openclaw.sh | bash |
Common pitfalls
npm install -g claude-meminstalls the SDK only — it does not register plugin hooks or the worker service.- On Windows, if hooks say
claude-memis not inPATH, runnpx claude-mem doctorand restart the terminal (installer places a launcher under%LOCALAPPDATA%\claude-mem\bin). - Prefer skipping account sign-in in CI with an explicit
--providerflag orCLAUDE_MEM_ONLINE_OPTIN=false.
This page does not run Claude-Mem for you and does not store your sessions. It only copies official install commands.
How to install Claude Mem for Claude Code
Inside Claude Code, add the official marketplace and install the plugin, then restart Claude Code:
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
Or run the default installer from a terminal (it asks you to sign in for a memory key; skip that with an explicit --provider flag or CLAUDE_MEM_ONLINE_OPTIN=false):
npx claude-mem install
If hooks later report that claude-mem is not in PATH, run npx claude-mem doctor and restart your terminal or IDE.
Host-specific --ide installs
Official Quick Start (docs.claude-mem.ai/installation + README) documents per-host installs. --ide takes a single string — install each host separately:
npx claude-mem install --ide grok-bot
npx claude-mem install --ide opencode
npx claude-mem install --ide t3code
npx claude-mem install --ide antigravity
npx claude-mem install --ide omp
npx claude-mem install --ide pi
npx claude-mem install --ide dsh --dsh-profile tui
Default npx claude-mem install (no --ide) covers Claude Code / detected agents. See Grok Bot Integration for the grok-bot path.
Claude-Mem facts (29 Oct 2026)
| License | Apache-2.0 |
| npm version | 15.5.0 (published October 29, 2026 ~00:55 UTC) |
| GitHub stars | about 104,100 (thedotmack/claude-mem) |
| Requires | Node.js 20+; Claude Code 2.1.139+ for exec-form hook args; installer adds Bun and uv if missing |
| Storage | Local SQLite database + local worker service (optional Cloud Sync / CMEM Pro on cmem.ai) |
Official sources
| Resource | URL |
|---|---|
| GitHub | thedotmack/claude-mem |
| Installation docs | docs.claude-mem.ai/installation |
| npm package | claude-mem (SDK; use npx claude-mem install for the plugin) |
What it does
Claude-Mem captures agent session work, compresses it, and injects relevant context into later sessions. It supports Claude Code and several other hosts via the official installer flags documented in the README.
More Claude Code setup on Toolsiftly
Changelog
- October 29, 2026 (evening ~18:21 UTC+8): MATERIAL — npm 15.5.0 (was 15.0.1); GitHub ~104.1k stars. Documented --ide values: grok-bot, opencode, t3code, antigravity, omp, pi, dsh. Claude Code 2.1.139+ note from docs.
Frequently asked questions
What is Claude-Mem?
An open-source persistent memory compression plugin for coding agents, maintained at github.com/thedotmack/claude-mem under Apache-2.0. It keeps useful context across sessions.
How do I install Claude-Mem for Claude Code?
In Claude Code run /plugin marketplace add thedotmack/claude-mem then /plugin install claude-mem, or use npx claude-mem install. Restart Claude Code afterwards.
Can I npm install -g claude-mem?
That installs the SDK/library only. It does not register plugin hooks or the worker. Prefer npx claude-mem install or the /plugin commands.
Is Claude-Mem safe?
Claude-Mem is open-source (Apache-2.0), so you can review the code on GitHub before installing — Toolsiftly has not audited it. It installs lifecycle hooks and a local worker that keep sessions, observations and summaries in a local SQLite database. Signing in to the hosted claude-mem observer or enabling Cloud Sync sends memory to claude-mem's own service (cmem.ai); install with an explicit --provider or CLAUDE_MEM_ONLINE_OPTIN=false if you want to skip sign-in. Only install from the official GitHub repo, npx claude-mem or the /plugin marketplace.
Is Claude-Mem free, and is it any good?
The plugin itself is free and open-source. After the optional sign-in, the hosted claude-mem observer (CMEM Pro) runs on a 30-day free trial; when the gateway stops serving the account, memory can fall back to your Anthropic plan unless you subscribe. Toolsiftly has not audited the code.
Does this Toolsiftly page run Claude-Mem?
No. It only builds copy-ready official install commands in your browser.
Where are the official docs?
https://docs.claude-mem.ai/installation and the GitHub README for thedotmack/claude-mem.
What --ide values does claude-mem support?
Official docs/README list grok-bot, opencode, t3code, antigravity, omp, pi, and dsh (with --dsh-profile). Default install covers Claude Code. Checked October 29, 2026.