@anthonyhaussman/opencode-copilot-quota
v1.0.1
Published
GitHub Copilot quota viewer for the OpenCode TUI sidebar
Maintainers
Readme
@anthonyhaussman/opencode-copilot-quota
GitHub Copilot quota viewer for the OpenCode TUI sidebar.
Shows your Copilot plan, premium interactions usage (progress bar + count), and days until monthly reset - directly in the OpenCode TUI right sidebar, styled with the active theme.
Install
Add to ~/.config/opencode/tui.jsonc:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["@anthonyhaussman/opencode-copilot-quota"]
}OpenCode auto-installs npm plugins via Bun at startup. No manual npm install needed.
Requirements
- OpenCode signed in to the GitHub Copilot provider (the plugin reads the stored OAuth token from
~/.local/share/opencode/auth.json).
How it works
Polls GET https://api.github.com/copilot_internal/user using your stored Copilot OAuth token, then renders a Solid component into the sidebar_content TUI slot. Refreshes on session.idle events and on a 30s interval while the session is active (both throttled to 15s minimum; polling goes dormant after 5min idle).
License
MIT
