Documentation Index
Fetch the complete documentation index at: https://docs.claude-mem.ai/llms.txt
Use this file to discover all available pages before exploring further.
Claude-Mem
Persistent memory compression system for Claude Code Claude-Mem seamlessly preserves context across sessions by automatically capturing tool usage observations, generating semantic summaries, and making them available to future sessions. This enables Claude to maintain continuity of knowledge about projects even after sessions end or reconnect.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 - Supports 28 languages (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 to exclude sensitive content from storage - βοΈ 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, Gemini CLI, Windsurf, OpenCode, Codex 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

