Claude-Mem
Your coding agent forgets everything between sessions. Claude-Mem remembers for it. Every new session, your agent starts from zero. It re-reads the same files, re-asks the same questions, and walks back into mistakes you already fixed together. Claude-Mem runs a second agent beside it that takes notes while it works. The next session starts with a short index of what matters, and pulls in the details only when it needs them. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents. Copilot CLI, Goose, Roo Code and Warp can search your memory, but their sessions aren’t recorded.Quick Start
Install with a single command:Key Features
- 🧠 Persistent Memory - Context survives across sessions
- 📁 Folder Context Files - Auto-generated
CLAUDE.mdin project folders with activity timelines - 🌐 Multilingual Modes - Writes memory in 30 languages: English plus 29 others (Spanish, Chinese, French, Japanese, etc.)
- 🎭 Mode System - Switch between workflows (Code, Email Investigation, Chill)
- 🔍 MCP Search Tools - Query your project history with natural language
- 🧠 Knowledge Agents - Build queryable “brains” from your observation history
- 🌐 Web Viewer UI - Real-time memory stream visualization served by the local worker
- 🔒 Privacy Control - Use
<private>tags for manual blocks, or enable auto-redaction for regex-based secret detection. - ⚙️ Context Configuration - Fine-grained control over what context gets injected
- 🤖 Automatic Operation - No manual intervention required
- 📊 FTS5 Search - Fast full-text search across observations
- 🔗 Citations - Reference past observations with IDs
How It Works
- 5 Lifecycle Hooks - SessionStart, UserPromptSubmit, PostToolUse, Summary (Stop), SessionEnd
- Worker Service - Express HTTP API managed by Bun on a per-user port (default
37700 + (uid % 100)) - SQLite Database - Stores sessions, observations, summaries with FTS5 search
- Chroma Vector Index - Optional embedding-based semantic search
- MCP / Skill Search Tools - Query historical context with natural language
- Web Viewer UI - Real-time visualization with SSE and infinite scroll
System Requirements
- Node.js: 20.0.0 or higher
- Bun ≥ 1.0 (auto-installed by
npx claude-mem installif missing) - uv (auto-installed if missing — provides Python for Chroma)
- Claude Code (or another supported IDE: Cursor, Windsurf, OpenCode, Codex CLI, Antigravity CLI, OpenClaw)
- SQLite 3 — bundled via
bun:sqlite
Next Steps
Installation
Quick start & advanced installation
Getting Started
Learn how Claude-Mem works automatically
Folder Context
Auto-generated folder CLAUDE.md files
Search Tools
Query your project history
Knowledge Agents
Build queryable corpora from your history

