Claude-Mem is a JavaScript library designed for maintaining persistent context across sessions for AI agents. It captures interactions, compresses them, and reinjects relevant context into future sessions, supporting various AI platforms.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
Claude-Mem is a JavaScript library that provides persistent context across sessions for AI agents. It captures interactions during sessions, compresses the information, and reinjects relevant context into future sessions. It works with several AI platforms, including Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, and OpenCode.
How it works
Claude-Mem operates using several core components:
- Lifecycle Hooks: It utilizes 5 lifecycle hooks to manage session events.
- Worker Service: A local HTTP API that provides a web viewer UI and search endpoints.
- SQLite Database: Used for storing sessions, observations, and summaries.
- mem-search Skill: Allows natural language queries for memory retrieval.
- Chroma Vector Database: Supports hybrid semantic and keyword search for intelligent context retrieval.
Getting started
To install Claude-Mem, use the following command:
npx claude-mem install
For specific integrations, you can install it for OpenCode or Antigravity CLI:
npx claude-mem install --ide opencode
npx claude-mem install --ide antigravity
Alternatively, it can be installed from the plugin marketplace inside Claude Code:
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
Recent releases
- v13.10.3-community-edge.0 (2026-07-09): Community edge release for integrated batches 4-9.
- v13.10.2 (2026-07-05): Patch release focused on cross-platform stability and worker/runtime correctness.
- v13.10.1 (2026-07-04): Fixes Codex SessionStart hook failure at startup.
- v13.10.0 (2026-07-04): Introduced Antigravity CLI support, removed Gemini CLI.
- v13.9.3 (2026-07-03): Eliminated error-handling anti-patterns and performed repo-wide cleanup.
Traction
- Stars: 86874
- Forks: 7504
- Open Issues: 256
Caveats
- License: Apache-2.0
- Open Issues: 256
- Age: Created on 2025-08-31, last pushed on 2026-07-09.






