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.

Claude-Mem Preview

Key Features

🧠

Persistent Memory

Context survives across sessions, maintaining continuity of knowledge about projects

📊

Progressive Disclosure

Layered memory retrieval with token cost visibility for efficient context injection

🔍

Skill-Based Search

Query your project history with natural language using mem-search skill

🖥️

Web Viewer UI

Real-time memory stream at http://localhost:37777

💻

Claude Desktop Skill

Search memory from Claude Desktop conversations

🔒

Privacy Control

Use `` tags to exclude sensitive content from storage

Quick Start

Install with a single command:

npx claude-mem install

Or install for Gemini CLI:

npx claude-mem install --ide gemini-cli

Or install for OpenCode:

npx claude-mem install --ide opencode

Restart Claude Code or Gemini CLI. Context from previous sessions will automatically appear in new sessions.

Supported Platforms

Claude Code
OpenClaw
Codex
Gemini
Hermes
Copilot
OpenCode