Claude-Mem records agent tool activity locally, summarizes it with an observer model, and injects a compact index into later sessions. It integrates with Claude Code, Codex, Cursor, OpenCode, and other listed agents.
Overview
Claude-Mem addresses lost context between coding agent sessions by running a companion process that watches tool use, compresses activity into observations, and surfaces relevant history when a new session starts. Supported hosts include Claude Code, Codex, Cursor, OpenCode, Copilot CLI, and several other agents; some of those agents can search memory without having their sessions recorded.
Installation is driven by an npx installer that registers hooks per agent, starts a local Bun-managed worker, and stores data under a home-directory folder by default. An optional browser setup flow covers agent choice, integrations, skills, and model provider; users can instead pass provider flags or defer online sign-in for unattended installs.
At session end, observations and summaries land in SQLite with hybrid keyword and vector search backed by Chroma. MCP tools and a mem-search skill expose a three-step search flow (index, timeline, full records). A web viewer and My Work dashboard expose sessions, settings, and live worker activity on the local worker URL.
Sensitive content can be excluded with tags so it is not stored. Cloud backup to cmem.ai and a hosted observer option exist, but on-disk memory and opt-in sync stay under the user's control. Copilot CLI, Goose, Roo Code, Warp, and Zed work as search-only integrations relative to full session capture.
Key features
- Lifecycle hooks across supported agents
- Observer-generated session observations
- Progressive context injection on session start
- SQLite plus Chroma hybrid search
- MCP search, timeline, detail tools
- Local worker with web viewer
- Optional cloud sync and hosted observer
- Secret tagging to skip storage
Use cases
- Carrying project context across agent sessions
- Searching prior decisions and fixes
- Shared memory across multiple AI tools
- OpenClaw gateway memory plugin
- Excluding secrets from stored observations