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