claude-mem for OpenCode
Add cross-session memory to your OpenCode agent.
cmem adds cross-session memory to your OpenCode agent. The open-source engine captures structured observations locally as you work, and CMEM Cloud exposes them to OpenCode — and any MCP client — through one private link. Pick up exactly where you left off.
Up and running with OpenCode
Install the engine
Run npx claude-mem@latest install to start capturing observations locally.
Add the MCP link
Point OpenCode at your private MCP link as an MCP server.
Recall across sessions
OpenCode shares one brain with every other agent you use.
Memory that compounds, built in
Automatic capture
A second model writes structured notes out-of-band — no prompting, no slowdown.
Auto-categorization
Decision, bugfix, feature, discovery, security — every note lands in a taxonomy.
Search three ways
Semantic, keyword, and timeline search over everything your agents have done.
Causality threading
Before/after links connect why a change happened to what came next.
Local-first & private
Memory lives in local SQLite with privacy stripping; cloud sync is opt-in.
Smart-explore
Structural codebase exploration that is 6–12× cheaper than reading files in full.
