Token Governance for LLMs: Why Shared Budgets Fail (and How to Do It Better)
AI . PersonalYour team shares a GitHub Enterprise account. Copilot is enabled for everyone. A shared budget, no individual limits, no visibility into who consumes what: “it’s in the budget.”
Then, in mid-June 2026, GitHub switches its billing from Premium Request Units to token-based billing. Suddenly the budget is no longer “unlimited”.
The error message arrives faster than you can react:
Payment Required: Your organization or enterprise has exceeded its Copilot budget. Contact your admin to resume usage.
This is not an isolated case. It is happening at hundreds of companies right now.
The Problem With Shared Budgets
When everyone shares one budget, you need clarity fast: who needs how much? A few users running agentic workflows consume 500k tokens per month. Others using occasional code completion stay at 50k. Different use cases have different requirements.
The problem: in a shared budget, nobody sees where the tokens actually go. The agentic users might burn through 80 % of the total budget. Everyone else runs out and can no longer work. That is a structural problem born from missing visibility and compartmentalization – not a policy violation.
Without visibility you don’t know who consumes how much. Without limits you cannot plan how much capacity each use case is supposed to get. Result: an account that worked in June is blocked in July. And nobody knows why.
That has consequences for planning. A team estimates a feature based on “we use AI support for development”. When the tokens run out mid-sprint, the timeline collapses. The feature takes longer, the sprint plan no longer fits. You planned for availability that was never there.
The Solution: Implement Token Governance
You do not necessarily need GitHub Enterprise Plus with Advanced Budget Controls. You can build it yourself.
1. Make Metrics Visible
If you are on GitHub Enterprise, pull the metrics via the API:
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/enterprises/YOUR_ENTERPRISE/copilot/metrics/reports/users-28-day/latest" \
| jq -r '.download_url' \
| xargs -I {} curl -L \
-H "Authorization: Bearer YOUR_TOKEN" \
{} \
| jq -s 'sort_by(-.ai_credits_used) | .[:10] | .[] | {user: .user.login, ai_credits_used}'
The key part: you immediately see who has the highest token consumption – and that is where planning starts.
2. Build a Custom Governance Stack
If you need more control: LiteLLM + Langfuse + vLLM
- LiteLLM (port 4000): OpenAI-compatible proxy with rate limiting per API key
- Langfuse (port 3000): observability, tracing, exports
- vLLM (port 8000): local inference (open-source models, if you want)
API keys in the format <host>|<user>|<tool> enable automatic user tracking. Every request is checked, traced, and limited.
From our setup (76 days, 6 users, 92M+ tokens):
- Terminal usage: 5,348 traces
- Code reading: 1,846 traces
- Code execution: 958 traces
Langfuse shows us every request. LiteLLM lets us set limits.
3. Governance Strategies
For GitHub Enterprise (quick win):
- Export weekly metric reports
- Identify users by token consumption
- Set separate budgets per team and use case (e.g. 100k for light users, 500k for agentic workflows)
- Enable admin controls for spending limits
For a custom setup (robust):
- Rate limits per user and API key (e.g. 100k tokens per day)
- Alerts at 80 % consumption
- Transparent dashboards (Langfuse UI)
- Cost attribution for internal chargeback models
The Uncomfortable Truth
Token governance is an organizational problem before it is a technical one. It requires:
- Transparency: who uses how much? And why?
- Planning: how much budget for which teams and use cases?
- Communication: teams know what to expect – and can plan around it
Without these decisions, availability collapses: blocked mid-sprint because the budget ran out somewhere in the company.
The companies that solved this have one thing in common: they measured early, before the bottlenecks became a surprise.
What We Have Learned
- Visibility is the first step, not the goal
- Shared budgets work when there are rules
- Agentic workflows consume more tokens – that is fine if you plan for it
- The right moment for governance is now, not later
The next wave is coming: Claude, GPT-5, open-weight models. Budgets will get more complex. Usage will get more diverse.
Whoever builds the infrastructure now keeps usage under control. Whoever waits will write budget requests in July.
Do you already have token limits in your team? How do you handle it?
Related
Archives
- July 2026
- April 2026
- March 2026
- August 2025
- November 2023
- February 2023
- January 2023
- June 2020
- April 2020
- March 2020
- February 2020
- February 2019
- January 2018
- December 2017
- May 2017
- February 2016
- September 2015
- December 2014
- August 2014
- June 2014
- March 2014
- February 2014
- September 2013
- August 2013
- July 2013
- November 2012
- October 2012
- September 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- August 2011
- July 2011
- June 2011
- May 2011
- January 2011
- August 2010
- July 2010
- June 2010
- May 2010
- January 2010
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- September 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
Leave a Reply