Toolsiftly

Claude Mem Install Commands — npx & Claude Code /plugin

Copy-ready Claude-Mem install commands for Claude Code, OpenCode, T3 Code, Grok Bot, OpenClaw and more. Official GitHub + docs only — no fake generators.

Claude-Mem is an open-source persistent memory plugin for coding agents (Apache-2.0, thedotmack/claude-mem). Pick your host, copy the official install command, then restart the app. Install commands match the GitHub README and docs.claude-mem.ai as of 22 Oct 2026.

# Install Claude-Mem (asks you to sign in for a memory key; skip with --provider or CLAUDE_MEM_ONLINE_OPTIN=false)
npx claude-mem install

# After install, restart your IDE / agent.
# Docs: https://docs.claude-mem.ai/installation

Do not use npm install -g claude-mem for the plugin — that installs the SDK/library only and does not register hooks or the worker. Prefer npx claude-mem install or the /plugin commands below.

Commands are built in your browser from the options you pick. Nothing is uploaded and we do not talk to Claude-Mem servers.

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.

By the Toolsiftly editorial team · Updated

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

HostOfficial command
Defaultnpx claude-mem install
Claude Code (/plugin)/plugin marketplace add thedotmack/claude-mem then /plugin install claude-mem
Grok Botnpx claude-mem install --ide grok-bot
OpenCodenpx claude-mem install --ide opencode
T3 Codenpx claude-mem install --ide t3code
Antigravitynpx claude-mem install --ide antigravity
OMPnpx claude-mem install --ide omp
Pi (native extension)npx claude-mem install --ide pi
DeepSeek Harnessnpx claude-mem install --ide dsh --dsh-profile tui
OpenClawcurl -fsSL https://install.cmem.ai/openclaw.sh | bash

Common pitfalls

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

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.

Facts checked against official documentation on . Official: GitHub, Claude-Mem: Installation docs, npm, Claude-Mem: OpenClaw integration.