A monitoring plugin for OpenCode that provides real-time observability into your AI coding sessions.
- Overview Dashboard — 6 metric cards + token distribution + model usage + cache efficiency
- Timeline View — Scrollable list of messages and tool calls with inline detail expansion
- Real-time Updates — Auto-refreshes every 2 seconds via the official OpenCode API
- Theme Aware — Integrates with OpenCode's current theme
Add to your tui.json:
{
"plugins": ["opencode-insight"]
}Click "🤖 Opencode Insight" in the sidebar to open the fullscreen overlay.
| Card | Shows |
|---|---|
| Total Tokens | All tokens consumed |
| Cost | Total USD |
| Input | Input tokens + cached |
| Output | Output tokens + cached |
| Cache | Cache read + write |
| Tool Calls | Total tool call count |
Scrollable table of every message and tool call. Click any row to expand inline details — message content, reasoning, token breakdown, or tool I/O.
If the plugin doesn't load or shows stale code after reinstalling:
rm ~/.cache/opencode/packages/opencode-insight@latest -rfThen restart OpenCode.
- OpenCode >= 1.17.3
MIT
