What it is
claude-mem is an open-source persistent memory layer for coding agents. It started as a Claude Code add-on and now covers Codex, OpenCode, T3 Code, Antigravity, Pi and DeepSeek Harness. It hooks into the host agent, captures tool calls and observations during a session, compresses them into semantic summaries in a local SQLite database, and injects the relevant fragments into later sessions so the agent remembers where the project stood and which mistakes already cost time. Retrieval runs through a three-step mem-search skill with progressive disclosure that shows the token cost of each recall. Memory stays local by default, and a private tag keeps sensitive content out of storage. Installation is one npx claude-mem install, or the plugin marketplace inside Claude Code; the hosted memory option needs an account and comes with a 30-day trial.
Highlights
- One npx claude-mem install gets it running, or install from the plugin marketplace inside Claude Code
- Observations compress into a local SQLite store instead of pushing whole transcripts back into context, with token cost visible
- Progressive disclosure plus a three-step mem-search skill pull back only relevant memory
- Works across Claude Code, Codex, OpenCode, T3 Code, Antigravity and Pi
- A private tag excludes sensitive content from storage, and memory stays local by default
How to use
Install with the flag matching your harness, for example npx claude-mem install for Claude Code, or —ide codex and —ide opencode for those agents, then restart the host. The default path uses the hosted memory service and asks you to sign in by email in the browser; pass an explicit provider or set the opt-out environment variable to skip the account flow. After that just work as usual: sessions get compressed when they end, and the next session opens with an injected summary, with mem-search available for pulling specific history. Teams can turn on the TeamBrain shared workspace while keeping personal requests and review notes separate.
License
Released under Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.