Setup
Install the plugin
Copy the Termix bridge plugin to OpenCode’s plugin directory:If you installed Termix with
npx instead of globally, you can find the plugin in the Termix package directory and copy it manually.What the Plugin Does
The Termix bridge plugin sends events tohttp://localhost:4000/opencode-events when:
| Event | What Termix Gets |
|---|---|
session.status (busy/idle) | Working/idle status indicator |
message.part.updated | Live message preview in sidebar |
session.updated | Session title and ID for resume |
session.created | Initial session connection |
Session Resume
OpenCode supports session resume. Termix 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
| Aspect | OTLP (Claude/Codex/Gemini) | Plugin (OpenCode) |
|---|---|---|
| Status detection | I/O heuristics (byte rates) | Explicit busy/idle events from plugin |
| Message preview | Terminal output buffer parsing | Direct text from plugin events |
| Session ID capture | OTLP log attributes | Plugin event payload |
| Setup | Env vars or config file | Copy plugin file |