Best for
- Developers using Claude Code or Codex CLI long-term
- Teams needing searchable, auditable, project-scoped memory
- Users who want data to stay local (SQLite/SQLCipher)
A mature, audit-oriented local memory system for coding agents: one Rust binary spanning hooks, MCP, CLI, and REST. Strengths are auditable recall, project scoping, and governance. Cursor support remains partial, and performance claims are labeled directional rather than public. Best for heavy agent users who value data locality and traceability.
remem is a single Rust binary providing local-first persistent memory for Claude Code and OpenAI Codex / Codex CLI. Through hooks, an MCP server, CLI, and a localhost REST API, it injects relevant project memory at session start and summarizes decisions, bug-fix rationale, project patterns, and preferences in the background at session stop. Data lives in local SQLite with optional SQLCipher encryption — no external database or hosted service. Retrieval uses multi-channel Reciprocal Rank Fusion combining FTS5 BM25, an entity index, temporal semantics, LIKE fallback, and trusted graph expansion, with CJK segmentation and Chinese-English synonym support. It also provides auditable recall (remem why), suppression/feedback governance, token usage and cost reporting, and user-context governance.
1) Install the remem binary via Homebrew (brew install majiayu000/tap/remem), npm (npm install -g @remem-ai/remem), Cargo (cargo install remem-ai --bin remem), the install script, or from source (codesign required on macOS ARM). 2) Run remem install --target claude / codex / all (use --target cursor for Cursor on macOS/Linux). 3) Restart the agent, then verify with remem status and remem search; use remem install --target claude --repair for hook issues and remem doctor for troubleshooting.