TUI usage dashboard plugin for OpenCode.
It adds a /usage command with model, agent, tool, throughput, and error views across project and session scope.
Repository: https://github.com/cosmiclasagnadev/opencode-usage
Add it to opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-usage-dashboard"]
}If you keep plugin config in tui.json, that works too:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-usage-dashboard"]
}- Open
/usage gcycles scopeTab/Shift+Tabcycles sectionwcycles time window1/2/3jump to7d/30d/allscycles sortEscgoes back
The throughput section shows end-to-end output rate, not decode-only model TPS.
It is calculated as output tokens divided by the time between the first visible assistant text and message completion.
- visible scopes are
projectandsession - true cross-project
globalscope is not shipped yet - throughput is not provider-side decode TPS
bun run typecheck
bun run buildThe standalone repo is intended to publish through GitHub Actions with npm trusted publishing.