heimoshuiyu / opencode-token-dashboard
PublicLocal dashboard for tracking OpenCode token usage — Rust + React
OpenCode Token Dashboard is a local web application that reads usage data from your OpenCode installation (stored in a local SQLite database on your computer) and displays interactive charts showing your AI token consumption over time. It shows trends, breakdowns by model and provider, cache hit rates, and runs entirely on your machine without sending any data to external servers. The dashboard supports both Chinese and English, offers light and dark themes, and helps you visualize patterns in your AI usage.
How It Works
A friend tells you about OpenCode, an AI coding assistant that lives on your computer. You start using it daily.
After a few weeks, you wonder how much you're actually spending on AI tokens. You find this dashboard project that reads your local data.
You clone the project, install dependencies with one command, and launch it. Your browser opens automatically to the local dashboard.
You notice your usage spikes on certain days. The charts reveal patterns you never saw before.
A colorful chart shows you which AI models consume most of your tokens, helping you make better choices.
You switch between light and dark mode to suit your preference, and toggle between Chinese and English with a single click.
The dashboard reveals your token usage patterns, helping you become more mindful about how you use AI assistants.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.