[ opencode ]
Membral for opencode
Membral reads opencode's transcripts from disk, keeps the sessions in one store on your machine, and extracts decisions, learnings and outcomes, each with its quote and a link to the session. opencode searches the store over MCP.
What Membral does for opencode
- Capture
- Reads opencode's transcripts from disk, with end-of-session hooks
- Sync
- membral sessions, plus a 20-minute sweep
- MCP
- opencode searches with memory_search, memory_recall and get_code_session
- Preamble
- Added at session start
- Prompt lookup
- Not available here: the per-prompt lookup is Claude Code only
Connect opencode
Merge into ~/.config/opencode/opencode.json. Replace YOUR_API_KEY with the key npx membral local up printed.
{
"mcp": {
"membral": {
"type": "remote",
"url": "http://localhost:3000/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
},
"enabled": true
}
}
}