copilot-consumption-viewer is a .NET 10 CLI that tracks GitHub Copilot premium request usage and forecasts whether your current pace is sustainable for the rest of the month.
It fetches billing data through your authenticated gh session and renders a terminal dashboard with:
- month-to-date usage and remaining quota
- average daily pace
- a "today budget" progress bar
- projected month-end cushion or overshoot
- a 6-month consumption bar chart
- model breakdown for the current month
- GitHub CLI (
gh) - a GitHub account with access to Copilot premium request billing data
- .NET SDK 10.0
dotnet run -- --help
dotnet run--username <USER>--quota <N>--months <N>--debug
Log in once:
gh auth loginIf the billing endpoint complains about missing scopes, refresh the user scope:
gh auth refresh -h github.com -s userYou can verify your login with:
gh auth statusRun the default view:
dotnet runOverride the username or quota if needed:
dotnet run -- --username <your-username> --quota 1500Show each gh command and the raw API response for troubleshooting:
dotnet run -- --debugUse a custom history window:
dotnet run -- --months 12--username <USER>: GitHub username. If omitted, the tool triesGITHUB_USER,GH_USERNAME, thengh api user --jq .login--quota <N>: monthly quota override, default1500--months <N>: number of previous months to compare, default6--debug: print eachghcommand plus raw stdout/stderr tostderr