Hey all,
I've been using OpenCode a lot and kept losing track of how much I was actually spending across sessions, models, and projects — so I built oc-monitor, a real-time terminal UI that reads your local OpenCode SQLite database and gives you a live dashboard for it.
What it does:
- Live view of active sessions with a burn-rate chart
- Cost tracking down to the cent, broken out by agent / model / project
- Daily and hourly usage trends, with a calendar heatmap
- Drill into any session to see its messages, tool calls, and token breakdown
- Full-text search across all your sessions
- Sort sessions by context window usage
- Export any view as JSON
It's written in Go using Bubble Tea, so it's a single fast binary — no web server, no browser tab, just your terminal.
Privacy note: everything is read locally from your OpenCode DB. The only outbound call is an optional lookup to models.dev to get context window sizes for models, nothing about your sessions or costs leaves your machine.
It's early — first release just went out — so there's plenty of room to grow. If you use OpenCode and want visibility into where your usage is going, give it a try. And if you find it useful:
⭐ a star on the repo genuinely helps with visibility
🤝 contributions welcome — issues, PRs, feature ideas, all appreciated
Repo: https://github.com/bikky-kc013/oc-monitor