For a solo developer, Copilot vs Claude Code cost comes down to how each tool meters you. GitHub Copilot sells prepaid AI credits ($15 of usage on the $10 Pro plan, $70 on Pro+, $200 on Max), Claude Code runs on Claude plans that start at $20 a month with five-hour and weekly usage windows, and Codex comes with ChatGPT Plus at $20 or Pro from $100. Only Copilot and the raw APIs publish token-level prices, so this guide prices one realistic coding day token by token and shows which plan tier that day fits into.
Prices checked: November 16, 2026 (USD list prices from each vendor’s official pricing pages). OpenAI says ChatGPT and Codex move to one shared usage limit in December 2026; this guide was written before that change took effect.

Copilot vs Claude Code cost: plan prices side by side
The entry paid tiers are $10 (Copilot Pro), $20 (Claude Pro, which includes Claude Code) and $20 (ChatGPT Plus, which includes Codex). The heavy-use tiers are $100 for Copilot Max, $100 to $200 for Claude Max and Ultra, and $100 to $500 for ChatGPT Pro.
The table below lists the individual plans as each vendor’s pricing page showed them on November 16, 2026. Copilot is the only one that states usage as a dollar amount. Anthropic and OpenAI describe usage as multiples of a base plan or as estimated message counts, so you can’t convert those plans into tokens from public information alone.
| Tier | GitHub Copilot | Claude (Claude Code) | ChatGPT (Codex) |
|---|---|---|---|
| Free | $0, 2,000 completions a month, limited chat and agent use | $0, no Claude Code | $0, limited Codex in the desktop app (rollout) |
| Entry | Pro $10: $15 of AI credits a month | Pro $20 ($17 a month billed yearly): five-hour and weekly limits | Go $8: same Codex access as Free; Plus $20: Codex on web, CLI, IDE extension and iOS |
| Mid | Pro+ $39: $70 of AI credits a month | Max $100: 5x Pro usage | Pro $100: no five-hour limit |
| Top | Max $100: $200 of AI credits a month | Ultra $200: no five-hour limit for verified accounts, 10x Pro weekly usage | Pro $200 or $500 (Ultrafast mode on $500) |
| Past the limit | Pay per credit through a budget ($0.01 per credit) | Usage credits with a monthly spend limit | Credits; price depends on plan |
Two details matter when you read this table. Copilot’s monthly credit totals include a “flex” portion on top of the base amount (for example $10 base plus $5 flex on Pro), and GitHub says the flex portion can change month to month. And the Claude and ChatGPT tiers are shared with their chat apps, so the same allowance covers your coding agent and your regular chats.
How Copilot, Claude Code and Codex meter your usage
Copilot converts every request into AI credits worth $0.01 each, priced per million tokens for the model you pick. Claude Code on a subscription draws from rolling five-hour and weekly windows, or bills per token on an API key. Codex on ChatGPT uses estimated message allowances per five hours, plus credits priced per million tokens.
GitHub Copilot: prepaid credits at per-token rates
GitHub’s model pricing page lists Claude Sonnet 5.5 at $2.00 per million input tokens, $0.10 cached input, $2.50 cache write and $10.00 output. Claude Opus 5.5 costs twice that: $4.00, $0.20, $5.00 and $20.00. GPT-6.1 Sol is $2.00 input, $0.10 cached, $2.50 cache write and $10.00 output for prompts up to 272K tokens, rising to $4.00 and $15.00 above that. Small models are far cheaper: GPT-6 Luna is $0.10 input and $0.50 output. One AI credit equals $0.01, so a request that costs $0.12 at these rates uses 12 credits.
Claude Code: usage windows or an API bill
On Pro, Max or Ultra, Claude Code usage counts against the same five-hour and weekly windows as Claude chat. Anthropic doesn’t publish a token number for those windows. When you hit a limit, you can wait for the reset or turn on usage credits and set a monthly spend limit. If you sign in with an API key instead, you pay per token at Anthropic’s list price, which matches Copilot’s rates for Sonnet 5.5 and Opus 5.5. Anthropic’s own cost guide says enterprise users average about $13 per developer per active day and $150 to $250 per developer per month on API billing, with 90% of users staying under $30 per active day.
Codex: message estimates plus credits
OpenAI’s Codex pricing page gives Plus and standard Business users an estimated 15 to 160 local messages per five hours on GPT-6.1 Sol, and 350 to 3,000 on GPT-6 Luna. OpenAI calls these estimates, not fixed limits, and says weekly limits may also apply. Pro plans currently have no five-hour limit. Extra usage runs on credits: GPT-6.1 Sol costs 50 credits per million input tokens, 2.5 per million cached input and 250 per million output. OpenAI says credit purchase prices depend on your plan, so the dollar value of a credit isn’t listed on that page.
December change: OpenAI has said Plus, Pro and Business will get one token-based allowance covering both ChatGPT and Codex starting in December 2026. As of November 16, 2026, OpenAI had not published per-plan token amounts or an exact start date. If you rely on Codex daily, check Settings > Usage in ChatGPT after the switch.

One coding day, priced token by token
A hypothetical agent-heavy day of 1 million fresh input tokens, 2 million cache writes, 20 million cache reads and 300,000 output tokens costs about $12 on Claude Sonnet 5.5 or GPT-6.1 Sol at list rates, about $24 on Claude Opus 5.5, and under $1 on GPT-6 Luna. In Copilot, the $12 day uses 1,200 AI credits.
This workload is an illustration, not a measurement of anyone’s real usage. It mirrors how coding agents behave: they resend your conversation and file context on every step, so cached input dwarfs everything else. The $12 Sonnet total also lands close to Anthropic’s published $13 average per active day, which makes it a reasonable middle case.
| Line item (one day) | Tokens | Claude Sonnet 5.5 (API or Copilot) | Claude Opus 5.5 | GPT-6.1 Sol (Copilot) | GPT-6 Luna (Copilot) |
|---|---|---|---|---|---|
| Fresh input | 1M | $2.00 | $4.00 | $2.00 | $0.10 |
| Cache writes | 2M | $5.00 | $10.00 | $5.00 | $0.25 |
| Cache reads | 20M | $2.00 | $4.00 | $2.00 | $0.20 |
| Output (includes thinking) | 0.3M | $3.00 | $6.00 | $3.00 | $0.15 |
| Total | $12.00 (1,200 credits) | $24.00 (2,400 credits) | $12.00 (1,200 credits) | $0.70 (70 credits) |
How to read the table: each cell is tokens divided by one million, times the per-million rate. For example, 20 million cache reads at $0.10 is $2.00. On OpenAI’s API price list, GPT-6.1 Sol shows no separate cache-write price, so the same day priced directly on the API is closer to $11 (3 million input at $2.00, 20 million cached at $0.10, 300,000 output at $10.00). Inside Codex, the same day would use about 275 credits at the GPT-6.1 Sol credit rates (150 for input, 50 for cached input, 75 for output).
The model choice moves the bill more than the tool choice. Switching the default from Sonnet to Opus doubles the day. Switching routine edits to a small model like GPT-6 Luna cuts them by more than 90%. The tools are mostly a wrapper around the same per-token economics.
Light, medium and heavy months: which plan tier each one needs
At $12 per active day, 5 days a month is about $60 of usage, 12 days is about $144, and 20 days is about $240. In Copilot that maps to Pro+ ($39 for $70 of credits), Max ($100 for $200), and Max plus about $40 of extra credits. On a raw API key, you’d pay the full $60, $144 or $240.
| Month (hypothetical) | Usage at list price | Copilot plan that covers it | Copilot cost | Claude or OpenAI API direct |
|---|---|---|---|---|
| Light: 5 agent days | $60 (6,000 credits) | Pro+ ($70 of credits) | $39 | about $55 to $60 |
| Medium: 12 agent days | $144 (14,400 credits) | Max ($200 of credits) | $100 | about $132 to $144 |
| Heavy: 20 agent days | $240 (24,000 credits) | Max + 4,000 extra credits | about $140 | about $220 to $240 |
The Copilot column is the only one you can calculate exactly, because GitHub publishes both the credit amount and the per-token rates. Copilot Pro’s $15 of credits covers just over one day of this workload, which is why Pro works best for completions and short chats rather than daily agent runs.
For Claude and ChatGPT subscriptions, the honest answer is that you have to test. Anthropic describes Max as 5x Pro usage and Ultra as 10x Pro weekly usage, and OpenAI gives message ranges, but neither states how many tokens a window holds. What you can say is that Anthropic’s published API average of $150 to $250 per developer per month sits above the $100 Max price and overlaps the $200 Ultra price, so a heavy user who stays inside the Max windows likely pays less than the API equivalent. If you regularly hit the weekly limit and buy usage credits, that advantage shrinks.

Costs that inflate a coding agent bill
Long sessions, cache misses, an expensive default model, extended thinking and parallel agents are the usual reasons a bill runs higher than expected. Anthropic says agent teams in plan mode use about 7x the tokens of a standard session, and long-context requests above 272K tokens double GPT-6.1 Sol’s input price in Copilot.
- Long context: Claude Code sends your full conversation on every request. A one-line question in a session that has run all day still pays to re-read the whole history. Clearing between unrelated tasks is the cheapest fix.
- Cache misses: the first message after a break longer than the cache lifetime reprocesses your full context at the fresh-input or cache-write rate, which is 20 to 25 times the cache-read rate on Sonnet 5.5.
- Default model: leaving Opus as the default doubles cost versus Sonnet for the same work. Anthropic’s guide recommends Sonnet for most coding and Opus for complex architecture decisions.
- Thinking tokens: extended thinking is billed as output, the most expensive token type. On Claude Code you can lower the effort level for simple tasks.
- Parallel agents: every subagent or teammate runs its own context window, so token use rises roughly with the number of agents running.
- Long prompts: Copilot charges GPT-6.1 Sol at $4.00 input and $15.00 output once a prompt passes 272K tokens, versus $2.00 and $10.00 below it.

Which setup fits which solo developer
If you mostly want completions and occasional agent tasks, Copilot Pro at $10 is the cheapest paid option. If you run an agent most working days and want a fixed bill, the flat Claude Max or ChatGPT Pro tiers cap your spend at $100 to $200. If your usage swings a lot month to month, Copilot credits or an API key with a hard budget let you pay only for what you use.
| Your pattern | Setup to price first | Monthly cost | Watch out for |
|---|---|---|---|
| Completions, short chats, rare agent runs | Copilot Pro | $10 | $15 of credits covers roughly one heavy agent day |
| Already pay for ChatGPT Plus | Codex on Plus | $20 | Shared ChatGPT and Codex limit from December 2026 |
| Terminal-first, a few agent hours a week | Claude Pro | $20 ($17 billed yearly) | Five-hour windows can end a long session early |
| Agent on 5 to 10 days a month, mixed models | Copilot Pro+ | $39 | Opus or long prompts burn credits twice as fast |
| Agent most working days, wants a fixed bill | Claude Max or ChatGPT Pro $100 | $100 | Weekly limits; usage credits add to the bill |
| Agent all day, parallel sessions | Claude Ultra or ChatGPT Pro $200 | $200 | Still a weekly cap on Ultra |
Many solo developers pair two tools: a cheap completion plan in the editor and one agent subscription in the terminal. Copilot Pro plus Claude Pro, for example, totals $30 a month before any extra usage. Copilot’s plans page also lists delegation to third-party agents such as Claude Code and Codex, but its feature table marks that as not included on Pro, so confirm your plan before counting on it.

How to cap spend in Copilot, Claude Code and Codex
Set a hard stop in every tool before you start a heavy month. In Copilot, create a budget and turn on “Stop usage when budget limit is reached.” In Claude, set a monthly spend limit for usage credits. On API keys, use workspace spend limits in the Claude Console. For Codex, track usage in ChatGPT settings and buy credits only when you need them.
- Copilot: budgets are set in US dollars, so a $10 budget buys 1,000 extra credits. Alerts fire at 75%, 90% and 100%. Without the stop setting, GitHub alerts you but keeps billing.
- Claude subscription: run
/usagein Claude Code to see plan usage bars and a breakdown of what used them. Run/usage-creditsto open the usage-credit settings, where you can turn credits on or off and set a monthly limit. - Claude API key: the Claude Console creates a “Claude Code” workspace when you first sign in. Set a workspace spend limit there, and treat the dollar figure in
/usageas an estimate rather than your invoice. - Codex: check remaining usage and reset times in ChatGPT. After the December change, the same allowance covers chat and Codex, so a long chat day leaves less for coding.
- Every tool: pick a cheaper default model, clear context between tasks, and reserve the top model for hard problems.

Prices and limits in this guide are vendor list prices checked on November 16, 2026, and the daily workload is a hypothetical example. Plans change often, so confirm current numbers on each official pricing page before you subscribe.
Official sources
FAQ
Is Claude Code cheaper than GitHub Copilot?
It depends on how much you use an agent. Copilot Pro at $10 is cheaper than Claude Pro at $20, but its $15 of credits covers only about one heavy agent day at Sonnet 5.5 rates. For daily agent work, Claude Max at $100 and Copilot Max at $100 cost the same, and the per-token rates for Claude models are identical in both.
How much does Claude Code cost per month on an API key?
Anthropic’s cost guide reports an average of about $13 per developer per active day and $150 to $250 per developer per month across enterprise deployments, with 90% of users under $30 per active day. Your bill depends mainly on model choice, context size and how many sessions you run.
Is Codex included with ChatGPT Plus?
Yes. ChatGPT Plus at $20 a month includes Codex on the web, CLI, IDE extension and iOS. OpenAI estimates 15 to 160 local messages per five hours on GPT-6.1 Sol for Plus users, and from December 2026 that usage will share one allowance with regular ChatGPT chats.
What happens when Copilot credits run out?
If you have a budget for extra usage, Copilot keeps working and bills $0.01 per credit until the budget is reached. If the budget has “Stop usage when budget limit is reached” turned on, usage stops at the limit. Without that setting, you get alerts but billing continues.
Where does Cursor fit in this comparison?
Cursor’s pricing page now lists Free, Plus at $8, Premium at $30, Super at $100 and Ultra at $200, with a shared usage pool that refreshes weekly and third-party models billed at API list price. Because its structure differs from the three tools here, it isn’t included in the cost tables.
Pingback: Claude Free vs Pro: When to Upgrade for More Usage (2026)
Pingback: GitHub Copilot AI Credits: Estimate Your Monthly Bill (2026)