Tokenstat
Shows cumulative input/output tokens and cache hit rate in the OpenCode TUI.
0
585
58 in 7 days
36.9
Multi-signal model
9 days ago
2026-09-25
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-tokenstat@0.1.3"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-tokenstat@0.1.3"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D opencode-tokenstatOpenCode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
No README provided
Missing documentation usually means the project is still early. Check the source repository for details.
Similar plugins
Usage Panel
opencode-usage-panel
Sidebar token-usage and cost panel for the opencode TUI. Breaks a session down by model with per-model cost, context usage, and configurable peak/off-peak pricing.
Tps
opencode-tps-plugin
Real-time AI generation speed and token throughput monitor for OpenCode
Sidebar Token Metrics
opencode-sidebar-token-metrics
OpenCode sidebar plugin showing generation speed (tok/s), cache hit rate, and average time-to-first-token (TTFT).