Home › Guides › Copilot CLI vs Claude Code vs Codex CLI

Same Model, Different Harness: Copilot CLI vs Claude Code vs Codex CLI

TL;DR · 🥊 Head-to-head

Pick the model, not the harness

Same model, different agent: scores barely move. The bill does.

20 of 21pairs within 4 points
7 to 21%Copilot CLI costlier than Claude Code (6 of 9)
2 to 55%Copilot CLI cheaper than Codex CLI (11 of 12)
Head-to-head guide illustration: abstract glowing code editor windows
Read the full short answer

Short answer: on GitHub's new Harnesses view, putting the same model in a different agent barely changes how many tasks get solved. In 20 of 21 matched pairs the gap was 4 points or less. What changes is the bill. With Claude models, Copilot CLI usually cost more per task than Claude Code (7% to 21% more in 6 of 9 pairs). With GPT models, Copilot CLI cost less than Codex CLI in 11 of 12 pairs (2% to 55% less).

So the model you pick still decides most of the result. The harness is a cost and workflow choice. And keep in mind who ran the test: GitHub, on its own product, with Codex CLI's costs estimated from API prices.

Checked Nov 24, 2026 on the GitHub Copilot benchmarks site (Harnesses view, data archive dated Nov 16, 2026, marked public preview), GitHub's Nov 17 changelog, GitHub's June 25 harness evaluation post, and GitHub Copilot plans for AI credit allowances.

What GitHub actually measured

  • Same model, same effort. GitHub's changelog says the view "compares GitHub Copilot CLI with Claude Code and Codex CLI using the same model at the same reasoning effort." Only exact model pairs at medium reasoning effort are shown. Copilot-only setups like Copilot Fusion are left out.
  • Copilot CLI vs the model maker's own agent. Claude models are compared with Claude Code; OpenAI models with Codex CLI. There is no Claude Code vs Codex CLI pairing, because they never run the same model.
  • Three benchmarks: DeepSWE 1.1 (113 tasks), Terminal-Bench 4.0 (66 tasks) and the new Terminal-Bench-Science 0.1 (70 research tasks). Each setup ran 3 to 5 times; the numbers are averages.
  • Two numbers per result: resolution rate (share of tasks solved) and mean cost per task in USD at list token prices.
  • Versions tested: Copilot CLI 1.0.105 to 1.0.112, Claude Code 2.1.317 to 2.1.325, Codex CLI 0.166.0 to 0.169.0.
  • Codex CLI costs are estimates. GitHub's notes say Codex CLI "logs token usage but not cost," so its costs are estimated from OpenAI's public API prices at standard short-context rates, and "actual billed amounts may differ."

All 21 matched results

Table

Figures from GitHub's published data. "Difference" is Copilot CLI minus the other harness, in percentage points. Brackets are approximate 95% intervals that we recomputed from GitHub's per-run numbers using the site's own bootstrap method. Green means the interval favors Copilot CLI, red means it favors the other harness, yellow means it crosses zero, so call it a tie.

DeepSWE 1.1 (113 software engineering tasks, 3 to 5 runs per setup)

Model (medium effort)Compared withSolved: Copilot CLI vs otherDifferenceCost per task: Copilot CLI vs otherCopilot CLI cost
Claude Opus 5.5Claude Code72.0% vs 69.0%+3 pp (0.7 to 5.5)$1.65 vs $1.65same (-2% to 2%)
Claude Sonnet 5.5Claude Code63.4% vs 59.8%+3.5 pp (1.4 to 5.8)$0.40 vs $0.378% pricier (-10% to -6%)
Claude Haiku 5.5Claude Code55.9% vs 52.6%+3.4 pp (0 to 7.1)$0.36 vs $0.3116% pricier (-23% to -8%)
GPT-6.1 SolCodex CLI72.9% vs 74.2%−1.2 pp (-3.2 to 0.7)$0.54 vs $0.599% cheaper (7% to 11%)
GPT-6 AstraCodex CLI73.6% vs 72.2%+1.4 pp (-0.5 to 3.2)$3.27 vs $3.445% cheaper (2% to 7%)
GPT-6.1 TerraCodex CLI69.0% vs 69.2%−0.2 pp (-3.7 to 4.1)$0.28 vs $0.307% cheaper (2% to 11%)
GPT-6 LunaCodex CLI49.4% vs 36.6%+12.7 pp (9.4 to 16.3)$0.08 vs $0.0647% pricier (-53% to -42%)

Terminal-Bench 4.0 (66 terminal tasks, 3 to 5 runs per setup)

Model (medium effort)Compared withSolved: Copilot CLI vs otherDifferenceCost per task: Copilot CLI vs otherCopilot CLI cost
Claude Opus 5.5Claude Code48.8% vs 48.2%+0.6 pp (-3.6 to 4.5)$3.51 vs $3.0316% pricier (-34% to 0%)
Claude Sonnet 5.5Claude Code28.5% vs 24.8%+3.6 pp (-1.2 to 8.2)$0.87 vs $0.7812% pricier (-22% to -3%)
Claude Haiku 5.5Claude Code14.2% vs 14.5%−0.3 pp (-3.6 to 3.3)$0.76 vs $0.6321% pricier (-34% to -7%)
GPT-6 AstraCodex CLI49.7% vs 51.2%−1.5 pp (-5.8 to 2.7)$3.65 vs $3.824% cheaper (-2% to 9%)
GPT-6.1 SolCodex CLI47.3% vs 47.9%−0.6 pp (-4.5 to 3.3)$0.63 vs $0.677% cheaper (-3% to 15%)
GPT-6.1 TerraCodex CLI38.2% vs 36.1%+2.1 pp (-2.4 to 7.3)$0.33 vs $0.4426% cheaper (18% to 32%)
GPT-6 LunaCodex CLI6.1% vs 5.2%+0.9 pp (-1.5 to 3.3)$0.09 vs $0.1440% cheaper (25% to 50%)

Terminal-Bench-Science 0.1 (70 science research tasks, 3 to 5 runs per setup)

Model (medium effort)Compared withSolved: Copilot CLI vs otherDifferenceCost per task: Copilot CLI vs otherCopilot CLI cost
Claude Opus 5.5Claude Code44.6% vs 40.6%+4 pp (-1.1 to 9.1)$6.64 vs $8.4021% cheaper (14% to 27%)
Claude Sonnet 5.5Claude Code13.7% vs 12.3%+1.4 pp (-2 to 5.1)$1.50 vs $1.397% pricier (-16% to 2%)
Claude Haiku 5.5Claude Code3.6% vs 1.9%+1.7 pp (0.5 to 3.1)$0.09 vs $0.5985% cheaper (84% to 86%)
GPT-6 AstraCodex CLI58.0% vs 57.4%+0.6 pp (-4.3 to 6)$9.15 vs $12.0124% cheaper (17% to 29%)
GPT-6.1 SolCodex CLI52.3% vs 52.3%0 pp (-4 to 3.7)$1.94 vs $1.982% cheaper (-10% to 12%)
GPT-6.1 TerraCodex CLI32.9% vs 36.3%−3.4 pp (-8.9 to 1.4)$0.86 vs $1.7451% cheaper (42% to 57%)
GPT-6 LunaCodex CLI2.3% vs 2.3%0 pp (-2.9 to 2.6)$0.09 vs $0.2055% cheaper (47% to 60%)

GPT-6 Astra and GPT-6.1 Sol are what GitHub tested, not the newer GPT-6.2 versions. Claude Haiku 5.5 on Terminal-Bench-Science had only 4 Copilot runs and 3 Claude Code runs, and both scored under 4%, so the 85% cost gap there means little.

What it means for you

  • Model first, harness second. Going from Claude Haiku 5.5 to Opus 5.5 inside the same harness moved DeepSWE scores by about 16 points. Switching harness on the same model moved them by 3.5 points at most, except GPT-6 Luna.
  • Claude Code is the cheaper home for Claude models, mostly. Copilot CLI solved a few more DeepSWE tasks with every Claude model (intervals above zero for Opus and Sonnet), but cost 7% to 21% more per task in 6 of 9 Claude pairs. The big exception: Opus 5.5 on Terminal-Bench-Science, where Copilot CLI was 21% cheaper ($6.64 vs $8.40).
  • Copilot CLI looks cheaper than Codex CLI for GPT models, with scores within a few points. Biggest gaps: GPT-6.1 Terra was 26% cheaper on Terminal-Bench 4.0 and 51% cheaper on Terminal-Bench-Science (but 3.4 points lower there, a tie within noise). Remember Codex costs are GitHub's estimates.
  • GPT-6 Luna is the odd one. On DeepSWE 1.1, Copilot CLI solved 49.4% vs Codex CLI's 36.6% (12.7 points, the only large gap), at 47% higher cost ($0.08 vs $0.06 a task). Cheap either way.
  • On a flat plan, cost per task means limits, not dollars. If you pay for Claude Pro or Max or ChatGPT Plus or Pro, a cheaper harness doesn't lower your bill. It may stretch your usage limits, if the plan meters roughly by tokens. On Copilot (AI credits at $0.01 each) or an API key, cost per task is real money.
  • The cheapest move is often a smaller model. GPT-6.1 Terra in Copilot CLI solved 69.0% of DeepSWE at $0.28 a task. Claude Opus 5.5 solved 72.0% at $1.65. That's about 6x the cost for 3 more points.

What would a month of tasks cost in each harness?

Interactive

Runs in your browser. Uses GitHub's mean cost per task for the model and benchmark you pick. Real tasks vary a lot in size, so treat this as a ratio, not a forecast. Nothing is sent anywhere.

Copilot credit math uses $0.01 per credit and GitHub's plan allowances: Pro 1,500, Pro+ 7,000, Max 20,000 AI credits a month (checked Nov 24, 2026). Not every model is on every Copilot plan; check the model picker for yours.

Caveats worth reading

  • GitHub graded its own product. We haven't seen a matching harness comparison from Anthropic or OpenAI. GitHub's own June write-up called the results "effective parity" because most gaps sit inside run-to-run noise.
  • Medium effort only. Most people run Opus or Astra at high or max effort for hard work. Gaps at other effort levels aren't published.
  • Benchmarks run single-turn and unattended. In GitHub's June methodology, agents ran non-interactively with web tools off. Your day-to-day use, with plan mode, follow-ups and reviews, can behave differently.
  • Codex CLI costs are estimated at OpenAI's standard short-context API prices, excluding long-context price bands, per GitHub's notes.
  • The data is marked provisional and in public preview, and agent versions keep changing. Copilot CLI shipped several versions during the test window.
  • Older model versions. GitHub tested GPT-6 Astra and GPT-6.1 Sol, not GPT-6.2. Gemini models aren't in the harness view.

What we couldn't confirm

  • The exact intervals GitHub shows. We recomputed them from the per-run data embedded in GitHub's site with the same method. They should match closely, but we did not compare every bar by eye.
  • How these costs map to subscription limits. Anthropic and OpenAI don't publish how many tokens a Claude or ChatGPT plan includes, so "cheaper per task" can't be turned into "X more tasks per week" on those plans.
  • Higher effort results. GitHub publishes high and max effort scores for Copilot CLI, but not matched against Claude Code or Codex CLI.

Ready to try one?

Every tool here can be cancelled monthly, so the fastest way to decide is a real task on each.

GitHub Copilot

Start on: Pro $10. The best value for most individuals: 1,500 AI credits and a choice of models including Claude and GPT. Verified teachers and popular open-source maintainers may get it free.

Claude Code

Start on: Pro $20. Start here. Includes Claude Code with usage limits; $17/mo if you pay $200 for the year.

OpenAI Codex

Start on: Plus $20. Most developers: Codex in the CLI, IDE extension, web and iOS, plus cloud tasks and automatic code review.

FAQ

4 questions

Is Copilot CLI better than Claude Code with the same model?

On GitHub's own benchmark site (Nov 17, 2026 data), Copilot CLI solved slightly more tasks than Claude Code with Claude Opus, Sonnet and Haiku 5.5 on DeepSWE 1.1 (about 3 to 3.5 points), but on Terminal-Bench 4.0 the scores were within noise. Copilot CLI cost the same per task with Opus 5.5 on DeepSWE and 7% to 21% more in 6 of the other 8 Claude pairs. GitHub ran the test on its own product, so treat it as one data point.

Is Copilot CLI cheaper than Codex CLI with the same GPT model?

In 11 of 12 GPT pairs on GitHub's benchmark site, Copilot CLI had a lower cost per task than Codex CLI, from 2% to 55% lower, while resolution rates stayed within a few points. The exception was GPT-6 Luna on DeepSWE 1.1, where Copilot CLI solved 12.7 points more but cost 47% more. GitHub says Codex CLI does not log cost, so its costs are GitHub's estimates from OpenAI's public API prices.

Does the harness matter more than the model?

Not for the score. In GitHub's 21 matched pairs, switching harness moved resolution by 4 points or less in 20 of them, while switching between the models GitHub tested moved it by up to about 55 points (Claude Haiku 5.5 to Opus 5.5 alone is about 16 points on DeepSWE 1.1). The harness mattered more for cost: the same model cost up to 85% less or 47% more per task depending on the harness.

Do these costs apply if I pay for Claude Pro, Max or ChatGPT Plus?

Not directly. The costs are list-price token costs per task. On a flat subscription you pay the same monthly price either way, so a cheaper harness means your usage limits last longer, not a smaller bill. On GitHub Copilot, where usage is billed in AI credits at $0.01 each, and on API keys, cost per task maps to real money.

Ship your app: the rest of the stack

Picked your AI coding tool? These are the usual next costs. Free tiers first, and prices checked Oct 20, 2026 on each vendor's pricing page.

Code review

AI writes code fast; something should read it before it ships.

  • CodeRabbitAI review on every pull request, in GitHub or GitLabFree for public repos; Essentials $24/user/mo billed annually ($30 monthly)

Already paying for Copilot or Codex Plus? Both include AI pull request review, so try that first.

Hosting

Where your app lives once it works on your machine.

  • VercelNext.js and front-end appsHobby free (personal, non-commercial); Pro $20/mo per developer seat
  • Netlify referralStatic sites and front ends, unlimited Pro membersFree; Personal $9/mo; Pro $20/mo with unlimited members
  • RailwayBack ends, workers and databases with no server setupFree trial $5 credit; Hobby $5/mo incl. $5 usage; Pro $20/mo
  • RenderHeroku-style web services, cron jobs and PostgresHobby $0 + compute; Pro $25/mo + compute

Database and auth

Most AI-built apps need a Postgres database and logins.

  • SupabasePostgres + auth + storage in one; Lovable and Bolt connect to itFree (2 projects, pause after 1 week idle); Pro from $25/mo
  • NeonServerless Postgres with branching, pay for what you useFree (100 projects); paid plans usage-based

Domain name

A real domain for your app.

  • Cloudflare RegistrarDomains at cost with no markupWholesale price per TLD
  • PorkbunCheap domains with free WHOIS privacyVaries by TLD
  • NamecheapPopular registrar with hosting and email add-onsVaries by TLD

Referral link: we may earn a commission at no extra cost to you. It never changes our picks.

Editorial disclosure

Rankings are not for sale. Sponsored placements and affiliate links are always labeled, and they never change our recommendations, quiz results, prices, or comparison data. Links marked "referral" are affiliate links (Netlify): if you buy through them, we may earn a commission at no extra cost to you. Every other link is a plain link that pays us nothing, and pricing source links are never affiliate links. Editorial policy.