OpenCode

OpenCode usage dashboard

What an OpenCode usage dashboard should show: tokens by session, spend by model, daily trend, and the gaps in local data.

Quick answer

A useful OpenCode dashboard shows four things: today's tokens and cost, a daily trend, a provider and model split, and the most expensive sessions. UsageAtlas builds all four from the local database. Anything about remaining provider balance is outside the data and must come from the provider.

The four panels

PanelReadsAnswers
TodayLatest messagesAm I on pace?
TrendDaily totalsIs this a spike or a baseline?
ModelsModel and provider fieldsWhat is efficient?
SessionsSession recordsWhich task cost most?

Build it locally

  1. Install UsageAtlas and detect OpenCode.
  2. Open Today and confirm the newest session appears.
  3. Switch History to 30 days for a baseline.
  4. Open Insights and sort by cost per session.
  5. Export a range if you need to share it.

Know what is missing

  • No provider balance or remaining plan allowance.
  • No cloud aggregation across machines by default.
  • No billing reconciliation; the invoice is the source of truth.
  • Deleted sessions disappear from every panel.

Build a dashboard that answers three questions

A usage dashboard does not need charts for their own sake. It needs to answer whether you can keep working, what the month cost, and which project is responsible.

PanelQuestionSource
TodayCan I keep working?Current sessions
HistoryWhat did the month cost?Database totals
ModelsWhere is the spend?Per-model split
ProjectsWho consumed it?Working directories
AlertsWill I be blocked?Reported limits

UsageAtlas lays those panels out for OpenCode and 13 other providers. For the raw view, see OpenCode usage.

Questions, answered

Does OpenCode have a built-in dashboard?

The CLI has a stats command in recent versions. It is a snapshot, not a persistent dashboard with history and model splits.

Can the dashboard show multiple machines?

Only with cloud sync or by exporting and combining data. Local sessions live on one machine.

How often does the dashboard refresh?

UsageAtlas refreshes in the background as OpenCode writes new messages, so an active session appears within a short delay.

Browse by topic