Dev Encyclopedia
ArticlesToolsContactAbout

Get notified when new content drops

No spam. Just new articles, tools, and updates straight to your inbox.

Dev Encyclopedia

A reference for builders

Dev.to
Discord
WhatsApp Channel
daily.dev
Hashnode
X

Content

  • Articles
  • Tools
  • About
  • Contact

Connect

  • support@devencyclopedia.com
  • RSS Feed

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

ยฉ 2026 Dev Encyclopedia

Back to top โ†‘
  1. Home
  2. /Blog
  3. /GitHub Copilot Token Billing: Real Cost by Workflow (2026)
tools11 min read

GitHub Copilot Token Billing: Real Cost by Workflow (2026)

GitHub Copilot switched to AI Credits billing June 1. Code completions stay free. Here's what chat, agent mode, and code review cost per workflow, and when to switch.

Zeeshan Tofiq
Zeeshan Tofiq
June 5, 2026
On this page

On this page

  • What Changed on June 1
  • How Token Billing Actually Works
  • What One AI Credit Costs by Model
  • Real Cost by Workflow Type
  • Hidden Costs Most Developers Miss
  • Seven Ways to Cut Your Bill
  • Impact on Teams and Organizations
  • The Stay-vs-Switch Decision
  • Frequently Asked Questions

On June 1, 2026, GitHub flipped a switch that changed how Copilot billing works for millions of developers. The flat-rate subscription model (pay $10 or $39 a month and use it as much as you want) is gone. In its place: AI Credits that get consumed by every chat message, every agentic task, and every code review request you run.

Developer reaction has been swift. GitHub's own announcement has nearly 900 downvotes. Reddit threads document individual developers projecting monthly bills jumping from $29 to several hundred dollars. The backlash is real. But the picture is messier than the headlines suggest, and a lot depends on exactly how you use the tool.

This guide breaks down the actual numbers, walks through real workflow scenarios, and gives you concrete steps to control your bill. Whether you stay on Copilot or switch to an alternative, you need this information first.

What Changed on June 1

The most important thing first: code completions are still free. Tab completions, Next Edit Suggestions, inline autocomplete: none of that touches your AI Credits balance. If you use Copilot primarily as an autocomplete engine while you're typing, your bill probably hasn't changed.

What does consume credits: Copilot Chat, agent mode, edit mode, code review, and Copilot Workspace interactions. Every one of those features now bills per token (input tokens, output tokens, and cached tokens, converted to credits at a rate of 1 credit = $0.01).

The shift affects every plan tier. Individual developers, teams, and enterprise customers all receive a fixed monthly credit allowance. Once you exceed that allowance, GitHub bills overages automatically at $0.01 per credit unless you set a spending cap.

Monthly AI Credits by Copilot plan. Overages billed at $0.01 per credit.
PlanMonthly PriceAI Credits Included
Copilot Pro$101,500
Copilot Pro+$397,000
Copilot Max$10020,000
Copilot Business$19/user1,900/user
Copilot Enterprise$39/user3,900/user

โš  Warning

When you exhaust your allowance, each additional credit costs $0.01, billed automatically to your payment method. Set a monthly spending cap in GitHub billing settings to prevent surprise charges.

How Token Billing Actually Works

Understanding the mechanics behind credit consumption is essential for controlling your costs. GitHub converts raw token usage into credits using a formula that factors in three token types: input tokens, output tokens, and cached tokens.

Input tokens represent everything you send to the model. This includes your prompt, the conversation history, and (critically) the codebase context that Copilot automatically attaches. A single chat message might look short, but Copilot often injects thousands of tokens of surrounding code to give the model enough context to answer accurately.

Output tokens are what the model generates in response. Longer, more detailed answers cost more. A one-line function signature costs far fewer output tokens than a full implementation with error handling and comments.

Cached tokens are input tokens that match a previous request in the same session. GitHub charges these at a reduced rate (roughly 25% of the standard input token cost). This is why batching questions in a single session saves money: the context from your first question gets cached and reused for subsequent questions.

๐Ÿ’ก Context is your biggest cost driver

In most agentic sessions, input tokens (codebase context) account for 60-80% of total credit cost. The model's response is often the smaller part of the bill. Reducing context size is the single most effective way to lower costs.

Each model has its own token-to-credit conversion rate. Frontier models like GPT-5.5 and Claude Opus 4.7 cost significantly more per token than lightweight models like GPT-5 mini. The conversion rate is not published as a simple multiplier, but the practical effect is visible in the cost tables below.

What One AI Credit Costs by Model

Not all models cost the same. This is where most developers underestimate their exposure. A quick question on GPT-5 mini might cost 1 to 2 credits. The same question on Claude Opus 4.7 or GPT-5.5 can cost 15 to 40 credits, depending on context size.

If you've been using Copilot's automatic model routing without thinking about which model handles each request, you may have been burning premium credits without realizing it. GitHub's default model selection optimizes for answer quality, not cost. That means your simple "what does this function do?" question might get routed to a frontier model when a lightweight model would have answered just as well.

Approximate credit costs per model. Actual costs vary with context size.
ModelSimple Chat (5 Q&A)Agentic Task (Single File Refactor)
GPT-5 mini2-5 credits8-20 credits
Claude Sonnet 4.68-22 credits30-80 credits
Claude Opus 4.720-60 credits80-200 credits
GPT-5.525-70 credits100-250 credits

โ„น Info

A Pro plan at 1,500 credits evaporates in about 3 to 4 days of active agentic sessions on a frontier model. On lightweight models like GPT-5 mini, it lasts most of the month.

Real Cost by Workflow Type

Your actual bill depends heavily on which of these four profiles matches how you work. Most developers fall into one of them.

Monthly credit estimates by developer profile.
Developer ProfileDaily UsageMonthly CreditsBest Plan
Completions-only5-10 quick chat messages, lightweight model150-400Pro ($10)
Daily chat, lightweight10-15 chat sessions, GPT-5 mini600-1,200Pro ($10)
Daily chat, frontier models10-15 chats, Claude Sonnet/GPT-5.52,000-5,000Pro+ ($39)
Agentic power user2-3 agent-mode sessions + code review8,000-20,000+Pro+ or Max

The completions-only developer uses Copilot for tab completions and the occasional quick syntax question. Sends maybe 5 to 10 chat messages per day on a lightweight model. Monthly credit spend: 150 to 400 credits. Well within Pro. Bill unchanged.

The daily chat user on lightweight models opens Copilot Chat 10 to 15 times a day, sticks to GPT-5 mini or the default lightweight setting. Monthly credit spend: 600 to 1,200 credits. Likely within Pro. Minimal change.

The daily chat user on frontier models uses Claude Sonnet 4.6 or GPT-5.5 for everything, sends 10 to 15 chat messages per day. Monthly credit spend: 2,000 to 5,000 credits. Over Pro, into Pro+ territory. If you're on Pro and haven't changed your model settings, this is the profile most likely to see surprise overages.

The agentic power user runs agent mode for multi-file refactors, uses Copilot Workspace for larger tasks, runs code reviews on PRs. A single agentic session on a large codebase can cost 200 to 800 credits. At 2 to 3 sessions per day, you could exhaust a Pro+ allowance in 10 to 14 days. This is the group seeing the $200 to $600 monthly bills reported in developer forums.

Hidden Costs Most Developers Miss

The credit costs in the tables above tell part of the story. Several less obvious factors can inflate your bill significantly if you're not aware of them.

Conversation History Snowball

Every message in a Copilot Chat session includes the full conversation history as input tokens. Your first message might cost 3 credits, but your tenth message in the same session carries all nine previous exchanges as context. By message 15 or 20, you're paying for thousands of input tokens just in conversation history, even if your actual question is short.

The fix: start a new chat session when you switch topics. Keep conversations focused on a single problem. The cached-token discount helps within a session, but it only reduces the cost by about 75%, not eliminate it entirely.

Workspace File Indexing

When you use @workspace in Copilot Chat, it indexes relevant files from your project and includes them as context. On a large monorepo, this can pull in 50,000 to 100,000 tokens of context before you even type your question. That single query might cost 10 to 20 credits on a lightweight model, or 50 to 100 credits on a frontier model.

If you're working in a specific module, use @file references to target exactly the files the model needs. Replacing @workspace how do I add a new route? with @file:src/routes/index.ts how do I add a new route here? can cut context by 90%.

Code Review Per-PR Costs

Copilot Code Review now charges per review. A small PR (under 100 lines changed) typically costs 5 to 15 credits. A large PR (500+ lines, multiple files) can cost 50 to 200 credits depending on the model used.

For teams running Copilot Code Review on every PR via GitHub Actions, this adds up quickly. A team of 10 developers merging 5 PRs per day at an average of 30 credits per review spends 1,500 credits daily on reviews alone. That's 33,000 credits per month, well beyond any standard plan allowance.

Seven Ways to Cut Your Bill

You don't have to accept the default billing behavior. These seven changes can dramatically reduce your credit spend without giving up the features you rely on.

  1. 1

    Audit your default model

    Go to Copilot settings and check what model handles chat by default. If it's Claude Opus or GPT-5.5, switch to GPT-5 mini for quick questions. Saving frontier models for complex multi-file work alone cuts costs 70 to 80%.

  2. 2

    Narrow your context window

    Agentic tasks that pull in the entire codebase are expensive. Configure Copilot to reference specific files or modules. Cutting context from 100K tokens to 20K tokens reduces input cost by 80%.

    json โ€” .vscode/settings.json
    {
      "github.copilot.chat.codesearch.maxFiles": 10,
      "github.copilot.chat.localeOverride": "en",
      "github.copilot.selectedModel": "gpt-5-mini"
    }

    Limiting codesearch.maxFiles prevents Copilot from pulling in dozens of files as context. Combined with explicit @file references in your prompts, this keeps input tokens under control.

  3. 3

    Batch your questions

    Each new chat session carries initialization overhead. Five focused questions in a single session costs significantly less than five separate sessions covering the same ground. The cached-token discount means your second through fifth questions in a session reuse most of the context from the first question at 25% of the cost.

  4. 4

    Set a monthly spending cap

    In GitHub billing settings, set a cap equal to your plan's included credits. Once you hit it, Copilot stops rather than billing overages. You won't be surprised at end of month.

    text โ€” GitHub Settings Path
    Profile Icon > Settings > Billing & plans > Spending limits
    > Set AI Credits spending limit: $15.00 (equals 1,500 credits)
  5. 5

    Use code completions where you can

    They're unlimited. A refactor that would cost 50 credits via agent mode might take 2 extra minutes with tab completions and cost nothing. Get comfortable with the tab completion workflow for routine changes, and save chat and agent mode for genuinely complex tasks.

  6. 6

    Use a .github/copilot-instructions.md file

    A project-level instructions file tells Copilot about your codebase conventions, reducing back-and-forth clarification messages. Fewer follow-up messages means fewer tokens consumed. It also helps the model generate correct code on the first attempt, avoiding expensive retry loops in agent mode.

    markdown โ€” .github/copilot-instructions.md
    # Project conventions
    
    - Use TypeScript strict mode
    - All components are React Server Components by default
    - Use Tailwind CSS v4 for styling
    - Import paths use @/* alias
    - Error handling: use Result types, not try/catch
    - Tests: Vitest + React Testing Library
  7. 7

    Run code review selectively

    Instead of running Copilot Code Review on every PR automatically, configure it to run only on PRs that touch critical paths (authentication, payments, data migrations). Small documentation fixes and dependency bumps don't need AI review. This alone can cut review credits by 60 to 70% for most teams.

Impact on Teams and Organizations

The billing change hits teams differently than individual developers. Organizations need to think about credit allocation, policy enforcement, and cost visibility across their entire engineering team.

Per-Seat Economics

On Copilot Business ($19/user), each developer gets 1,900 credits per month. For a 50-person engineering team, that's 95,000 credits monthly, or $950 in included value. If 10 of those developers are agentic power users averaging 8,000 credits each, those 10 developers alone consume 80,000 credits, leaving just 15,000 for the remaining 40 developers.

The math gets uncomfortable fast. Organizations that previously paid a predictable $950/month for 50 seats now face potential bills of $2,000 to $5,000 depending on usage patterns. Engineering managers need per-developer usage visibility to identify outliers and set appropriate guardrails.

Policy Recommendations for Engineering Leads

  • Set organization-wide spending caps before the August 31 promotional period ends
  • Establish a default model policy (lightweight models for chat, frontier for code review and agent mode only)
  • Review per-developer credit consumption weekly during the transition period
  • Create guidelines for when to use agent mode vs. manual coding
  • Disable automatic Copilot Code Review on non-critical repositories
  • Designate a small group of power users on Pro+ or Max seats, with the rest on standard Business seats

The Stay-vs-Switch Decision

This is the question most developers are asking. Here is an honest answer based on actual numbers.

Stay on CopilotSwitch to Alternative
Completions-heavy userBill unchanged: completions are free. No reason to switch.Migration cost with no financial benefit.
Moderate chat, lightweight modelsAudit model settings first. May bring well within Pro budget.Flat-rate plans at $17 to $20/mo make sense if already exploring alternatives.
Agentic power user, frontier modelsPro+ or Max required. Project $40 to $100/mo minimum.Cursor Pro ($20), Claude Code Pro ($17), or Windsurf Pro ($20) offer flat-rate agentic billing.
Team or enterprisePromotional credits run through Aug 31: real exposure shows in September.Evaluate before August; don't wait for the first high bill.

One factor that doesn't show up in cost comparisons: switching cost. If your team has built workflows around Copilot's VS Code integration, @workspace references, and GitHub-native code review, migrating to Cursor or Claude Code means retraining habits and rebuilding prompt libraries. For individual developers, that migration takes a weekend. For a 50-person team, it's a multi-week effort.

The pragmatic approach: audit your current usage during the promotional period (through August 31), project your September bill, and make the call based on real numbers rather than worst-case estimates from Reddit.

โ„น Info

The transition period runs through August 31, 2026. Business and Enterprise customers have elevated promotional credits until then. Your real exposure shows in September: that's your deadline to decide.

Frequently Asked Questions

What is an AI Credit in GitHub Copilot?

An AI Credit is a billing unit equal to $0.01. It maps to token consumption: input tokens, output tokens, and cached tokens are all converted to credits at a rate set by GitHub. Code completions are not charged. Only chat, agent mode, edit mode, code review, and Workspace use credits.

Does token billing affect code completions?

No. Tab completions, Next Edit Suggestions, and inline autocomplete are unlimited and free on all plans. The billing change only applies to chat, agentic workflows, and review features. If completions are your primary Copilot use, your bill is unchanged.

Is Copilot still cheaper than Cursor or Claude Code?
Copilot (Pro+)Alternatives (flat-rate)
Monthly base cost$39/moCursor Pro $20, Claude Code $17, Windsurf $20
Agentic billingPer-token ($8,000+ credits/mo for power users)Flat-rate (unlimited agentic sessions)
Code completionsUnlimited (free)Included in plan
IDE integrationDeep VS Code + JetBrains integrationGood (varies by tool)

For moderate users, Copilot Pro+ remains competitive. For agentic power users, flat-rate alternatives save $20 to $60/month at equivalent usage levels.

How do I check how many credits I've used this month?

Go to github.com, click your profile icon, then Settings, then Billing & plans. Under 'Usage this month' you'll see AI Credits consumed and remaining. GitHub also shows per-feature breakdowns so you can see whether chat or agent mode is your largest cost center. Check this after your first full week under the new billing model.

What happens when I hit my spending cap?

When you reach your spending cap, Copilot's premium features (chat, agent mode, code review) stop working until the next billing cycle. Code completions continue to work normally since they don't consume credits. You'll see a notification in VS Code or your IDE indicating that your credit allowance is exhausted.

You can adjust or remove your spending cap at any time in GitHub billing settings. If you remove the cap mid-month, any usage beyond your included credits will be billed at $0.01 per credit on your next invoice.

Does GitHub use my code to train models under the new billing?

Individual plan subscribers can opt out of code snippet training in Copilot settings (Settings, then Copilot, then Allow GitHub to use my code snippets). The billing model change is independent of training data usage. Business and Enterprise plans have training opt-out enabled by default and cover all seats.

Why is agent mode so much more expensive than regular chat?

Agent mode performs multiple model calls per task. A single agentic session might involve the model reading files, planning changes, writing code, running tests, and iterating on failures. Each of those steps is a separate API call with its own input and output tokens. A task that a developer would describe as 'one request' might involve 5 to 15 underlying model calls.

The context window also grows with each step. As the agent reads more files and accumulates results from previous steps, the input token count snowballs. A complex refactor across multiple files can reach 200,000+ input tokens by the time the agent finishes, even if the final code change is only 50 lines.

Can I set different spending caps for different developers on my team?

Yes. Organization owners can set per-seat spending limits through the GitHub organization billing settings. Navigate to your organization's Settings, then Billing, then Copilot. You can set a blanket limit for all seats or configure individual limits for specific developers. This is useful for giving senior engineers or architects higher caps while keeping junior developers on tighter budgets during the learning period.

Zeeshan Tofiq

Zeeshan Tofiq

Full Stack Developer

Full stack developer with over 6 years of experience building production applications. Writes practical guides on JavaScript, TypeScript, React, Node.js, and cloud infrastructure. Focused on helping developers solve real problems with clean, maintainable code.

Enjoyed this article?

Get practical dev guides, tool updates, and new articles delivered straight to your inbox. No spam, unsubscribe anytime.

Related Articles

security

How to Audit Your VS Code Extensions for Security

The GitHub breach happened through a VS Code extension. Here's how to check what you have installed and reduce your exposure in 10 minutes.

May 30, 2026ยท11 min read
javascript

npm Scripts You're Probably Not Using (But Should Be)

pre/post hooks, cross-env, npm-run-all, argument passing, and built-in variables: the npm script patterns developers Google one at a time, in one place.

Jun 1, 2026ยท8 min read

On this page

  • What Changed on June 1
  • How Token Billing Actually Works
  • What One AI Credit Costs by Model
  • Real Cost by Workflow Type
  • Hidden Costs Most Developers Miss
  • Seven Ways to Cut Your Bill
  • Impact on Teams and Organizations
  • The Stay-vs-Switch Decision
  • Frequently Asked Questions
Advertisement