claude-mem
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context b
What is claude-mem?
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
Overview of claude-mem
What it is
claude-mem is a persistent memory compression system built for Claude Code. It captures everything an agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. It works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode, and more.
Key features
- Persistent Memory – Context survives across sessions.
- Progressive Disclosure – Layered memory retrieval with token cost visibility.
- Skill-Based Search – Query your project history with the mem-search skill.
- Web Viewer UI – Real-time memory stream at the worker URL printed on startup.
- Claude Desktop Skill – Search memory from Claude Desktop conversations.
- Privacy Control – Use `` tags to exclude sensitive content from storage.
- Automatic Operation – No manual intervention required.
Use cases
claude-mem is designed for developers and teams who want AI agents to maintain continuity of knowledge about projects across sessions. It is useful for any workflow where an agent is used repeatedly on the same codebase or project, such as ongoing development, debugging, or project management.
Getting started
Install with a single command:bashnpx claude-mem installThe installer sets everything up, then asks you to sign in to claude-mem in your browser (email magic link — no card required). Signing in provisions a memory key and unlocks the claude-mem observer with a 30-day free trial. After sign-in you pick your memory provider. To skip sign-in, pass an explicit --provider flag, set CLAUDE_MEM_ONLINE_OPTIN=false, or run in CI/non-interactive shells.Install for specific IDEs:bashnpx claude-mem install --ide grok-botnpx claude-mem install --ide opencodenpx claude-mem install --ide t3codenpx claude-mem install --ide antigravitynpx claude-mem install --ide ompnpx claude-mem install --ide pinpx claude-mem install --ide dsh --dsh-profile tuiOr install from the plugin marketplace inside Claude Code:bash/plugin marketplace add thedotmack/claude-mem/plugin install claude-memRestart Claude Code. Context from previous sessions will automatically appear in new sessions.
License and pricing
The license is Apache-2.0. The project is open source. A 30-day free trial of the hosted memory (CMEM Pro) is available; after the trial ends, memory automatically falls back to your Anthropic plan unless you subscribe.
Based on the project's public README and repository metadata.