GitHub usage monitoring
GitHub usage monitoring with alerts and automatic shutdown
If you want a GitHub bill that can't quietly run away on you, you need two things: GitHub's own budget with "Stop usage when budget limit is reached" ticked as the hard ceiling, and a monitor that checks every 5 minutes, pings Slack or Discord, and lets you kill a runaway workflow in one click.
GitHub's built-in alerts fire at 75%, 90% and 100%, which is better than nothing. Still, by the time you spot an email, a bad loop has already burned through your allowance. Costbrake is the monitor we built to sit in front of that backstop.
What GitHub's built-in budgets do (and miss)
As of November 2026, GitHub's built-in automatic shutdown is a budget with "Stop usage when budget limit is reached" ticked, as documented in Setting up budgets to control spending on metered products - GitHub Docs. That switch works on metered products: Actions, Copilot AI credits, cloud sandboxes. Leave it unticked and GitHub just emails you while the meter keeps spinning. Seat products like Copilot seats, GitHub Team and GitHub Enterprise never shut off; they only ever send alerts.
On the warning side, GitHub sends budget alerts at 75%, 90% and 100% by email and a banner, plus included usage alerts at 90% and 100% of your free allowance. Copilot spending limits also only notify unless Stop usage is ticked. Even Budgets and alerts - GitHub Docs notes that user-level budget alerts shouldn't be your only signal.
There are three real gaps here, and if you've ever been burned by a surprise bill you already know how annoying they are: a new budget only counts usage from the day you create it so the first month can overshoot, emails are easy to miss, and nothing in GitHub's alert tells you which workflow is actually burning money right now. We covered the quirks in more detail in GitHub budgets that stop usage when the limit is reached.
How the monitoring options compare
Third-party tools exist, though most of them run on a daily cycle. StackSpend imports Actions, Packages, Copilot and Codespaces costs from GitHub's billing API once a day, for organization accounts only, with no shutoff listed. RepoWrangler pulls Actions, Packages, Codespaces and Copilot AI-credit usage on a daily refresh as well; it's read-only toward GitHub and its findings are advisory.
So what about rolling your own? Since June 2026, GitHub's REST API can create budgets and the Usage summary API returns usage by organization, repository, product or SKU. The catch is that the usage report now only gives daily totals, and you still have to build and host the alerting and shutoff yourself. If you're weighing broader options across your stack, see What are the top FinOps tools for small teams?.
Costbrake checks every 5 minutes on Pro and Team, estimates running Actions jobs live, alerts in Slack or Discord, and gives you one-click brakes.
| Tool | Data freshness | Where alerts go | Can stop spend? |
|---|---|---|---|
| GitHub budgets | Built in | Email and banner at 75%, 90%, 100% | Yes, metered products when Stop usage is ticked |
| StackSpend | Daily (org accounts only) | Billing import (no alert channels listed) | No shutoff listed |
| RepoWrangler | Daily | Advisory findings | No (read-only toward GitHub) |
| Costbrake | Every 5 minutes on Pro and Team (live Actions estimates) | Email, Slack, Discord, signed webhooks, PagerDuty | Yes, one-click brakes |
| DIY script on GitHub's APIs | Daily totals | Whatever you build and host | Whatever you build and host |
The setup to copy
Set a hard GitHub budget on Actions and Copilot AI credits with Stop usage ticked. That's your backstop (even if you're asleep or off Slack, GitHub will cut off metered usage at the limit).
Then put Costbrake in front of it for the early warning and the brake, so you catch a bad job while it's still running instead of after it eats the whole budget. For the workflow side of things, see How to stop a runaway GitHub Actions workflow.
Monitoring GitHub with Costbrake
Costbrake watches cloud, AI and SaaS spend - AWS, Google Cloud, Azure, Cloudflare, GitHub, Vercel, OpenAI, Anthropic and more - and alerts on spikes, budget thresholds, month-end forecasts and new charges.
For Costbrake for GitHub, it reads GitHub's billing usage report plus running Actions jobs priced at list rates, so a runaway workflow shows up while it's still running. Checks run every 5 minutes on Pro and Team, hourly on Free. You get spike alerts when an hour costs more than 3x your usual hour and at least $5 more, budget alerts at 50%, 80% and 100% by default, and a forecast alert when month-to-date spend plus the pace of the last 72 hours would pass your budget by month-end.
Alerts go to email on every plan, Slack, Discord and signed webhooks on Pro, and PagerDuty on Team. On Pro and Team you also get one-click brakes: disable a runaway workflow and cancel its queued and running runs, or set the organization's Actions budget to $0 with Stop usage on. Every brake records the prior state and has an undo.
Pricing is flat (Costbrake pricing): Free is $0, Pro is $12 a month, Team is $39 a month. Every workspace starts with a 14-day Pro trial, no card needed. Setup is one prompt pasted into an AI coding agent like Claude Code, Codex CLI, Cursor or Gemini CLI - see agent setup.
Questions and answers
Does GitHub automatically stop spending when a budget is hit?
Only if you tick "Stop usage when budget limit is reached", and only on metered products like Actions, Copilot AI credits and cloud sandboxes. Leave it unticked and GitHub just emails you while usage keeps running. Seat products like Copilot seats, GitHub Team and GitHub Enterprise only ever get alerts.
Why did my GitHub bill overshoot a new budget?
A new GitHub budget only counts usage from the day you create it, not earlier in the month. Because of that, the first month can run past the limit you set.
Can I just use GitHub's billing API to build my own monitor?
Since June 2026 the REST API can create budgets and the Usage summary API returns usage by organization, repository, product or SKU. The usage report only gives daily totals though, and you have to build and host the alerting and shutoff yourself.
What do Costbrake's one-click brakes actually do?
On Pro and Team, you can either disable a runaway workflow and cancel its queued and running runs, or set the organization's Actions budget to $0 with Stop usage on. Every brake records the prior state and has an undo.
Sources
- Budgets and alerts - GitHub Docs
- Setting up budgets to control spending on metered products - GitHub Docs
- Budget and usage management APIs now generally available - GitHub Changelog
- Connect GitHub to StackSpend - StackSpend Docs
- Cost & Billing - RepoWrangler
- Email notifications for included usage thresholds - GitHub Changelog
- Usage-based billing for organizations and enterprises - GitHub Docs
- Getting started with budget controls - GitHub Docs
Updated