Analysis updated 2026-05-18
Run the monitor while working in opencode to see live cost totals and cache hit rates update as you use the AI assistant.
Press m to filter to 'Today' and check how much you have spent in the current session before continuing.
Switch between Go and Zen pricing plans with the p key to compare which subscription mode would cost less given your usage pattern.
| mikecase/opencode-cost-monitor | a-bissell/unleash-lite | abhiinnovates/whatsapp-hr-assistant | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Python | Python | Python |
| Setup difficulty | easy | hard | hard |
| Complexity | 1/5 | 4/5 | 3/5 |
| Audience | developer | researcher | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an existing opencode installation with a populated opencode.db file, only one Python dependency (textual) to install.
OpenCode Cost Monitor is a small Python tool that shows you a live dashboard in your terminal tracking how much your opencode sessions are costing. Opencode is an AI coding assistant that stores its usage data in a local database file, and this monitor reads that file every few seconds and displays up-to-date spending information without you needing to leave the terminal. The dashboard breaks down costs by AI model, showing how many sessions used each one, how many tokens were processed, and what percentage of responses came from cache rather than being generated fresh. Cache responses cost less, so the tool also calculates how much you saved compared to what the same usage would have cost without caching. A small sparkline chart at the bottom shows your daily spending over the last 30 days so you can spot if usage is trending up. You can press a key to filter by different time ranges: all time, the last 30 days, the last 7 days, or just today. Another key cycles between opencode's two pricing plans (Go and Zen) so you can see the numbers recalculated for whichever subscription you have. Setup is two commands: create a Python virtual environment, install one dependency called textual, and run the script. The tool finds the opencode database at the standard location automatically, or you can point it at a different path. The project is MIT licensed and is a single script built for developers who use opencode and want visibility into their AI usage costs as they work.
A live terminal dashboard that reads your opencode session database and shows real-time AI cost breakdown, cache savings, and daily spending trends by model.
Mainly Python. The stack also includes Python, textual, SQLite.
MIT license: use, copy, modify, and distribute freely for any purpose, including commercially, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.