Use case · claude-mem for OpenCode

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.

How it fits OpenCode
Capability
Without cmem
cmem.ai
Connection
No shared memory
Private MCP link for OpenCode
Memory persistence
Per-session only
Across every project & machine
Capture
Manual notes
A second model writes observations
Recall
Re-paste history
Semantic vector search
Price
$0 cloud during early access
How it integrates

Up and running with OpenCode

01

Install the engine

Run npx claude-mem@latest install to start capturing observations locally.

02

Add the MCP link

Point OpenCode at your private MCP link as an MCP server.

03

Recall across sessions

OpenCode shares one brain with every other agent you use.

What you get

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.

See all features →

Early access

Bring memory to OpenCode

The engine is open source and free to install today. Cloud sync is $0 during early access — join the waitlist and your private MCP link arrives by email.