Repository navigation
Releases
Releases · AeonDave/opencode-tokenomics
v0.1.0 — initial release
Initial release of opencode-tokenomics — a real-time, per-project token usage & cost dashboard for OpenCode.
On OpenCode startup the plugin boots a small local web server and opens a live dashboard in your browser, streaming spend as you work — split by project, model, and subagent.
Highlights
- Live spend — total USD cost, tokens and API calls, updated in real time over SSE.
- Per-project split — usage keyed by project root, navigable from a searchable, sortable sidebar.
- Agents & subagents — delegation tree with who / what / how much / how long per session.
- Agent × model and by-model breakdowns.
- Cache efficiency — hit rate and the real money caching saved (never phantom savings on free/self-hosted usage).
- Token distribution and context breakdown (system prompt, tool defs, environment, project tree, instructions).
- Tool & skill usage — per-tool calls, failures, output tokens, complexity; loaded skills and their token cost.
- Charts — cumulative spend, spend over time by model, tokens by day, activity by hour, cost efficiency ($/M).
- Configurable cards — toggle any card; hidden cards are also skipped in computation.
- Real vs estimated cost — free models read
$0; subscription/zen plans show a clearly labeled~$xestimate.
Install
Add to your OpenCode config (~/.config/opencode/opencode.json):
{ "plugin": ["@aeondave/opencode-tokenomics@latest"] }See the README for from-source setup and configuration.