A fuel gauge for your AI coding subscriptions
opencode-quota shows token usage and quota left across a dozen-plus coding providers, without eating your context window to do it.

What it does
It’s an OpenCode plugin (plus a standalone CLI) that surfaces quota and token usage for providers like Anthropic, OpenAI, Cursor, GitHub Copilot, OpenCode Go, Alibaba Coding Plan, and more. You get a sidebar panel, status line, popup toasts, and slash commands like /quota and /tokens_monthly with pricing. The CLI show command works even when OpenCode isn’t running.
The interesting bit
The pitch is “zero context window pollution” — the reports render in the TUI chrome rather than being dumped into your chat, so checking your burn rate doesn’t cost you tokens. It also reads local history for token accounting and can auto-retry requests that hit a quota limit once the window resets.
Key highlights
- 25+ pre-configured providers, most working automatically after OpenCode login
- Token reports by day, week, month, session, or arbitrary date range, with pricing from
models.dev - JSON export and metrics for scripts and custom status bars
- Auto-retry at quota reset (disable with
waitForQuotaReset: false) - Updater never touches your secrets
Caveats
- Requires OpenCode 2.0.16+ and Node 22.13+; OpenCode 1 users are stuck on 4.x
- Some providers (Anthropic, Cursor, Google AGY) need extra setup, and Cursor’s numbers are a local estimate, not authoritative
- Web and Desktop clients get slash commands only — no toasts or panels
Verdict
If you’re on a metered coding plan and keep getting surprised by resets, this is genuinely useful instrumentation. If you’re on unlimited plans or don’t use OpenCode, move along.
Frequently asked
- What is slkiser/opencode-quota?
- opencode-quota shows token usage and quota left across a dozen-plus coding providers, without eating your context window to do it.
- Is opencode-quota open source?
- Yes — slkiser/opencode-quota is open source, released under the MIT license.
- What language is opencode-quota written in?
- slkiser/opencode-quota is primarily written in TypeScript.
- How popular is opencode-quota?
- slkiser/opencode-quota has 1.2k stars on GitHub.
- Where can I find opencode-quota?
- slkiser/opencode-quota is on GitHub at https://github.com/slkiser/opencode-quota.