Claude-Mem: AI-Powered Context Preservation 🤖
Claude-Mem offers persistent context across sessions, enhancing AI agents' continuity and efficiency.
Introduction to Claude-Mem
Claude-Mem is a tool designed to capture and compress agent actions during sessions, using AI to inject relevant context into future sessions. It supports a range of AI tools including Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, and OpenCode.
How Claude-Mem Works
Claude-Mem automatically captures tool usage observations, generates semantic summaries, and stores them for future sessions. It works by watching chat log files and can be installed as a plugin for Grok Bot. The tool offers a 30-day free trial with a memory key provisioned upon sign-in.
Installation and Setup
Installation is straightforward with a single command. Users sign in to claude-mem via a browser, and the installer provisions a memory key and sets up the observer. Users can choose their memory provider, including the claude-mem observer, OpenRouter, or Gemini key.
Integration with Various Tools
Claude-Mem is compatible with OpenCode 1.3.4 or later, T3 Code (Codex and Claude Code), Antigravity CLI, OMP, and Claude Code's plugin marketplace. It also supports the Pi and DeepSeek Harness plugins.
Configuration and Settings
Users can configure settings in ~/.claude-mem/settings., including the AI model, worker port, data directory, log level, and context injection settings. The default setting for including all sources at session start is 'false', but can be changed to 'true' for comprehensive context.
“Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions.”
— Claude-Mem Team