π Claude-Mem: Persistent Context Across Sessions π
Claude-Mem captures and compresses agent actions, preserving context for future sessions, enhancing Claude's knowledge continuity.
Introduction to Claude-Mem
Claude-Mem is a tool designed to preserve context across sessions for every agent. It captures all actions performed by an agent during a session, compresses this data using AI, and then injects the relevant context back into future sessions. This ensures a continuity of knowledge even after sessions end or reconnect.
Core Functionality
Claude-Mem automatically captures tool usage observations, generates semantic summaries, and makes them available for future sessions. It is compatible with Grok Bot, which lacks host hooks, so it watches chat log files. The default memory option is CMEM Pro, a hosted memory service. Local observer installation is optional.
Installation and Setup
To install Claude-Mem, users sign in through a browser using an email magic link. This provision a memory key for the account and unlocks the Claude-Mem observer. The installer sets up everything and then prompts for sign-in. A free trial is available for up to 14 days, offering 100% more usage from the plan.
Memory Providers and Sign-in Options
Users can choose their memory provider after signing in, including the Claude-Mem observer, their own OpenRouter or Gemini key, or their Anthropic plan. Users can also opt-out of sign-in by using a --provider flag or by running in CI/non-interactive shells.
Integration and Compatibility
Claude-Mem is designed to work with various tools and platforms, including Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode, and more. It is also available on npm and can be installed via npx claude-mem install or the /plugin commands.
β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.β
β Claude-Mem Documentation
By Chaos Lab Β· ε¦ηζηAI