opencode-quota-copilot
v0.2.0
Published
Persistent GitHub Copilot quota display in the OpenCode TUI sidebar
Maintainers
Readme
opencode-quota-copilot
Persistent GitHub Copilot quota display in the OpenCode TUI sidebar.
Shows the active model with its premium request multiplier and per-token rates, your premium request usage, a progress bar, and reset countdown — updated automatically after each response.
Copilot Quota
─────────────
sonnet-4.6 1× $3/$15
██████░░░░░░░░ 57%
171 / 300 used
resets in 12d 3hThe model line shows:
- Short model name (vendor prefix stripped for compactness)
- Multiplier — how many premium requests each interaction costs (
freefor included models) - Token rate —
$input/$outputper 1M tokens (GitHub Copilot pricing, effective June 2026)
The model line updates after each completed assistant response. It stays blank until the first response in a session.
Installation
1. Server plugin — ~/.config/opencode/opencode.json
{
"plugin": ["opencode-quota-copilot"]
}2. TUI plugin — ~/.config/opencode/tui.json (create if it doesn't exist)
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-quota-copilot"],
"plugin_enabled": {
"quota-sidebar": true
}
}Restart OpenCode. The panel appears in the right sidebar between Context and MCP.
Authentication
The plugin reads your existing OpenCode Copilot auth automatically — no extra setup needed if you've already connected Copilot via /connect.
For PAT-based auth (org/enterprise plans), create ~/.config/opencode/copilot-quota-token.json:
{
"token": "ghp_your_token_here",
"tier": "pro"
}Supported tiers: free, pro, pro+, business, enterprise.
For business add "organization": "your-org". For enterprise add "enterprise": "your-enterprise".
Refresh
Quota and model data refreshes:
- On startup
- Every 5 minutes
- After each assistant response
- On session idle and session compacted events
Requirements
- OpenCode v1.3.10 or later
- GitHub Copilot subscription
