opencode-statboard
v2.4.0
Published
Real-time dashboard for opencode token usage and cost statistics
Maintainers
Readme
opencode-statboard
Real-time dashboard for your opencode token usage and cost statistics.
Features
- Live-updating overview: sessions, messages, total cost, tokens per session
- Token statistics: Input / Output / Reasoning / Cache Read / Cache Write
- Tool usage breakdown with percentage bars (collapsible)
- Per-model usage with cache read stats and generation speed (output tok/s)
- Usage reports: per-agent speed, wall/active time, and top-20 sessions by duration
- Savings estimate: market value at paid catalog rates vs actual cost (per-model, per-report, overview cards)
- Visual charts for model speed, agent wall/active time, and longest sessions
- Visual usage-report tables (providers, agents, sessions) with collapsible raw text
- Collapsible sections (collapse state remembered in browser)
- Daily trend chart (7D / 30D / 90D)
- Usage reports: Daily / Weekly / Monthly / All time
- i18n: English + Traditional Chinese, auto-detects browser language
- Gzip compressed API responses
- Auto port fallback if 4868 is in use
Requirements
- Node.js (tested on v24)
- opencode CLI installed globally via npm
- Reads the local
opencode.db; supports both OpenCode V2 (session_v2/session_message) and legacy V1 (session/message/part) database schemas
Install
npm install -g opencode-statboardStart
opencode-dashboardThen open http://127.0.0.1:4868
Update
npm update -g opencode-statboardOptions
OC_PORT— change the listening port (default: 4868, auto-fallbacks to next available)
License
MIT
