Setup
1
Launch an OpenCode session
Click OpenCode in the session launcher. The session starts normally.
2
Install the bridge plugin
On first launch, CliDeck shows a setup toast: “OpenCode — Bridge Plugin”. Click Install plugin.CliDeck automatically copies the bridge plugin to
~/.config/opencode/plugins/clideck-bridge.js.3
Restart the session
After installation, click Restart Session on the toast. The new session will have the bridge active.
What the Plugin Does
The CliDeck bridge plugin sends events tohttp://localhost:4000/opencode-events when:
The plugin doesn’t modify OpenCode’s behavior or read your prompts. It only observes status changes and output text.
Session Resume
OpenCode supports session resume. CliDeck captures the session ID from plugin events and usesopencode --session <sessionId> to reconnect to previous sessions.
Session IDs in OpenCode look like ses_ followed by alphanumeric characters (e.g., ses_abc123xyz).
How It Differs from OTLP Agents
The plugin approach gives more accurate status information since OpenCode explicitly reports when it’s busy or idle, rather than CliDeck having to guess from output patterns.