by thedotmack
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
# Add to your Claude Code skills
git clone https://github.com/thedotmack/claude-memLast scanned: 11/28/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@huggingface/transformers: Vulnerability found",
"severity": "high"
},
{
"type": "npm-audit",
"message": "adm-zip: adm-zip: Crafted ZIP file triggers 4GB memory allocation",
"severity": "high"
},
{
"type": "npm-audit",
"message": "onnxruntime-node: Vulnerability found",
"severity": "high"
},
{
"file": "README.md",
"line": 223,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://install.cmem.ai/openclaw.sh | bash\"",
"severity": "low"
},
{
"file": "openclaw/SKILL.md",
"line": 10,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://install.cmem.ai/openclaw.sh | bash\"",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-11-28T20:48:49.597Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}claude-mem is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by thedotmack. Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More. It has 120,770 GitHub stars.
claude-mem returned warnings in AgentsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/thedotmack/claude-mem" and add it to your Claude Code skills directory (see the Installation section above).
claude-mem is primarily written in TypeScript. It is open-source under thedotmack on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-mem against similar tools.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
Installing for someone as an AI agent? If the user is available, run npx claude-mem install --setup browser on their computer and keep it running. In an interactive terminal, they can enter a work email and an optional message, or press Enter to skip. An unattended terminal skips both prompts. The installer prepares the local runtime, then opens the browser for the user to choose agents, integrations, skills, model, and usage analytics. If the page doesn't open, give them the printed URL. If the user is away, run npx claude-mem install --setup defer to prepare the runtime and leave setup waiting for their first visit. Their next session shows them the link. Don't make their choices for them.
npx claude-mem install
The installer finds the agents on your machine and asks which ones to set up. Then just start working: observations stream in from your first prompt, and your second session in a project opens with memory from the first. (Copilot CLI, Goose, Roo Code, Warp and Zed get memory search only, so their sessions don't add to it.)
The installer sets everything up first, then asks you to sign in to claude-mem in your browser (email magic link, no card required to sign in). Choosing the claude-mem observer then starts its 30 Day Free Trial on a checkout page that asks for a payment method; once it completes, the installer saves your memory key. With the observer, memory runs off-plan, so you get up to 100% more usage from your plan. When the free trial ends, memory automatically falls back to your Anthropic plan unless you subscribe. After sign-in you pick your memory provider: the claude-mem observer, your own OpenRouter or Gemini key, or your Anthropic plan.
Prefer to skip the sign-in? Pass an explicit --provider flag, set CLAUDE_MEM_ONLINE_OPTIN=false, or run in CI/non-interactive shells — the installer completes without any account interaction.
Your memory lives in ~/.claude-mem on your machine. Cloud sync is opt-in. Anonymous usage analytics are on by default; npx claude-mem telemetry disable turns them off (what's collected).
Or install from the plugin marketplace inside Claude Code:
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
Restart Claude Code. Context from previous sessions will automatically appear in new sessions.
Note: Claude-Mem is also published on npm, but
npm install -g claude-meminstalls the SDK/library only — it does not register the plugin hooks or set up the worker service. Always install vianpx claude-mem installor the/plugincommands above.
npx claude-mem install covers every supported agent. To set up one agent directly, pass --ide.
OpenCode (1.3.4 or later, including OpenCode 2). Restart OpenCode after installing.
npx claude-mem install --ide opencode
T3 Code (Codex and Claude Code providers). The installer discovers T3 Code's enabled providers, registers native Claude-Mem plugins in their configured homes, and supports T3-managed Codex. Restart T3 Code, trust the provider's hooks when prompted, and start a new thread. See the T3 Code integration guide for custom server settings, status, and removal.
npx claude-mem install --ide t3code
Antigravity CLI (setup guide):
npx claude-mem install --ide antigravity
OMP (Oh My Pi):
npx claude-mem install --ide omp