Spring til hovedindhold
Sammenlign

Codex vs. Claude Code

De to terminalbaserede AI-kodningsagenter, udviklere faktisk diskuterer. Her er, hvordan deres priser og egnethed adskiller sig.

Vores dom

Begge kodeagenter følger med udbyderens chatabonnement til samme pris, så valget afhænger af, hvordan du arbejder. Codex er den billigste vej ind, fordi ChatGPT Free og Go giver begrænset adgang til Codex, og Pro-planerne har indtil videre ingen grænse på fem timer. Claude Code starter med Pro, som er den eneste startplan med årlig betaling. Max- og Ultra-planerne omfatter Anthropics topmodel, Fable. Priser og grænser nedenfor er tjekket mod begge officielle sider.

 CodexClaude Code
StartprisGratis plan$20/mo
Gratis plan
Brugervenlighed62/10060/100
Til tekniske teams
Bedst tilImprove coding / developmentImprove coding / development
Priser tjekket

Codex

OpenAI's agentic coding tool for building and fixing software from the terminal or editor.

Claude Code

An agentic command-line coding tool for building and refactoring software with AI.

Det korte svar

Both coding agents come with the vendor's chat subscription, at matching prices: $20 a month to start, $100 and $200 for heavy use, and $25 a seat ($20 billed annually) for teams. Codex has a cheaper way in, because the Free and $8 Go plans include limited Codex, while Claude Code starts at Pro. Claude Pro is the only entry plan you can pay for annually, at $17 a month. For all-day use, OpenAI's Pro tiers have no five-hour limit for now and go up to a $500 tier. Claude Max keeps the five-hour window, and Ultra drops it for verified accounts.

Pris på hvert niveau

NiveauCodexClaude Code
Billigste måde at komme i gang påFree · $0Pro · $20Faktureres årligt: $17
StandardplanPlus · $20Pro · $20Faktureres årligt: $17
Stort forbrugPro 100 · $100Max · $100
Højeste niveau for enkeltpersonerPro 500 · $500Ultra · $200
TeampladsBusiness (Standard seat) · $25Faktureres årligt: $20Team (Standard seat) · $25Faktureres årligt: $20
Premium-teampladsBusiness (Premium seat) · $125Faktureres årligt: $100Team (Premium seat) · $125Faktureres årligt: $100

Alle planer side om side

Hver værdi linker til den officielle side, den stammer fra.

Codex (OpenAI)

Plan
Free
Pr. måned
$0
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Begrænset
Forbrugsgrænser
Limited Codex access; GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
Go
Pr. måned
$8
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Begrænset
Forbrugsgrænser
Limited Codex access for lightweight tasks; GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
Plus
Pr. måned
$20
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Inkluderet
Forbrugsgrænser
Estimated local messages per 5 hours: GPT-6.2 Sol 17–180, GPT-6.2 Astra 6–50, GPT-6.1 Terra 35–285, GPT-6 Luna 350–3,000. Weekly limits may also apply.
Offentliggjorte tal
Ranges per 5 hours, by model
API-kreditter pr. måned
Ingen
Kilde
Plan
Pro 100
Pr. måned
$100
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Inkluderet
Forbrugsgrænser
No five-hour limit at present; weekly allowance larger than Plus (doubled on 29 Oct 2026). No Ultrafast.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
$100
Kilde
Plan
Pro 200
Pr. måned
$200
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Inkluderet
Forbrugsgrænser
No five-hour limit at present; more usage than Pro 100. OpenAI's Work and Codex article says Pro 200 gets GPT-6.2 Sol Ultrafast in Codex; the Pro tiers article says Ultrafast is Pro 500 only.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
$200
Kilde
Plan
Pro 500
Pr. måned
$500
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Inkluderet
Forbrugsgrænser
Highest included usage of the Pro tiers; no five-hour limit at present; Ultrafast included (uses allowance at 6x–8x the Standard rate).
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
$500
Kilde
Plan
Business (Standard seat)
Pr. måned
$25
Faktureres årligt
$20
Pladser
2–200
Kodeagent
Inkluderet
Forbrugsgrænser
Estimated local messages per 5 hours: GPT-6.2 Sol 17–180, GPT-6.2 Astra 6–50, GPT-6.1 Terra 35–285, GPT-6 Luna 350–3,000. Weekly limits may also apply.
Offentliggjorte tal
Ranges per 5 hours, by model (same as Plus)
API-kreditter pr. måned
Ingen
Kilde
Plan
Business (Premium seat)
Pr. måned
$125
Faktureres årligt
$100
Pladser
2–200 (mix with Standard seats)
Kodeagent
Inkluderet
Forbrugsgrænser
More usage than a Standard seat, with no five-hour limit.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
Enterprise & Edu
Pr. måned
Tilpasset pris eller betaling efter forbrug
Faktureres årligt
Kun månedligt
Pladser
Custom
Kodeagent
Inkluderet
Forbrugsgrænser
Flexible-pricing workspaces have no fixed rate limits and scale with credits; others match Plus per seat for most features.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
API key (pay as you go)
Pr. måned
Tilpasset pris eller betaling efter forbrug
Faktureres årligt
Kun månedligt
Pladser
Any
Kodeagent
Inkluderet
Forbrugsgrænser
No plan allowance; you pay for every token. CLI, SDK and IDE only, no cloud features.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde

Claude Code (Anthropic)

Plan
Free
Pr. måned
$0
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Ikke inkluderet
Forbrugsgrænser
Limited usage every 5 hours and every week. Claude Code is not included.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
Pro
Pr. måned
$20
Faktureres årligt
$17
Pladser
1
Kodeagent
Inkluderet
Forbrugsgrænser
1x baseline, reset every 5 hours plus a weekly limit; at least 5x Free per session. Chat and Claude Code share one pool. Fable only through paid usage credits.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
Max
Pr. måned
$100
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Inkluderet
Forbrugsgrænser
5x Pro usage every 5 hours and every week; Fable included up to half the weekly limit; priority access at busy times.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
$100
Kilde
Plan
Ultra
Pr. måned
$200
Faktureres årligt
Kun månedligt
Pladser
1
Kodeagent
Inkluderet
Forbrugsgrænser
10x Pro usage every week; no five-hour limit for verified accounts; Fable up to half the weekly limit.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
$200
Kilde
Plan
Team (Standard seat)
Pr. måned
$25
Faktureres årligt
$20
Pladser
2–150
Kodeagent
Inkluderet
Forbrugsgrænser
More usage than Pro (multiple not stated).
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
Team (Premium seat)
Pr. måned
$125
Faktureres årligt
$100
Pladser
2–150 (mix with Standard seats)
Kodeagent
Inkluderet
Forbrugsgrænser
5x the usage of a Standard seat; Fable up to half the weekly limit.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
Enterprise
Pr. måned
Tilpasset pris eller betaling efter forbrug
Faktureres årligt
$20
Pladser
20+
Kodeagent
Inkluderet
Forbrugsgrænser
Usage billed at API rates; admins set user and org spend limits.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde
Plan
API key (pay as you go)
Pr. måned
Tilpasset pris eller betaling efter forbrug
Faktureres årligt
Kun månedligt
Pladser
Any
Kodeagent
Inkluderet
Forbrugsgrænser
No plan allowance; no hard stop, the account is charged for what it uses.
Offentliggjorte tal
Ikke offentliggjort
API-kreditter pr. måned
Ingen
Kilde

Bedste valg efter brugertype

Udvikler, der arbejder aleneLige

  • Codex: Plus · $20/md.
  • Claude Code: Pro · $20/md.

Both cost $20 a month. Claude Pro drops to $17 a month if you pay for a year up front; ChatGPT Plus has no annual option.

Stort dagligt forbrugFordel: Codex

  • Codex: Pro 100 · $100/md.
  • Claude Code: Max · $100/md.

Both cost $100 and include $100 a month in API credits. Pro 100 has no five-hour limit for now, while Max still resets every five hours at 5x Pro. Max includes Fable, Anthropic's top model, for up to half the weekly limit.

TeamLige

  • Codex: Business (Standard seat) · $25/md.
  • Claude Code: Team (Standard seat) · $25/md.

Same seat prices on both: $25 a month, or $20 billed annually, and $125 or $100 for a premium seat. ChatGPT Business allows up to 200 users and Claude Team up to 150.

StuderendeFordel: Codex

  • Codex: Go · $8/md.
  • Claude Code: Pro · $20/md.

Neither company lists an individual student discount on its pricing pages; both sell plans to institutions. The cheapest paid way in is Go at $8 with limited Codex. Claude Code needs Pro.

Stramt budgetFordel: Codex

  • Codex: Free · $0/md.
  • Claude Code: Pro · $20/md.

ChatGPT Free includes limited Codex in the desktop app. Claude Free does not include Claude Code.

Hvad almindelige opsætninger koster

Side project, a few sessions a week

Short sessions on evenings or weekends.

  • Codex: Plus · $20/md.
  • Claude Code: Pro · $20/md.

Daily professional use, 1–3 hours a day

The agent is part of your workday but not running all day.

  • Codex: Pro 100 · $100/md.
  • Claude Code: Max · $100/md.

All-day agents, 3+ hours or parallel runs

Long sessions, several agents at once, large refactors.

  • Codex: Pro 200 · $200/md.
  • Claude Code: Ultra · $200/md.

Team of five developers

Shared billing, admin controls, no training on business data by default.

  • Codex: Business (Standard seat) · $25/plads/md.
  • Claude Code: Team (Standard seat) · $25/plads/md.

CI and scripted runs

Automation in shared environments where a personal login does not fit.

  • Codex: API key (pay as you go) · Tilpasset pris eller betaling efter forbrug
  • Claude Code: API key (pay as you go) · Tilpasset pris eller betaling efter forbrug

Hvor hver løsning er bedst

Codex

  • Free and Go ($8) include limited Codex; Claude Code starts at Pro.
  • Pro tiers have no five-hour limit for now.
  • A $500 tier with the highest allowance and Ultrafast mode.
  • Publishes per-model message ranges for Plus and Business.
  • Business seats go up to 200 users.

Claude Code

  • Pro can be billed annually at $17 a month.
  • Max and Ultra include Fable, Anthropic's top model, for up to half the weekly limit.
  • Ultra has no five-hour limit for verified accounts.
  • States its multiples plainly: Max 5x Pro, Ultra 10x Pro weekly, Premium seat 5x Standard.
  • Enterprise is self-serve at a published $20 a seat plus usage.

Hvad sker der, når du rammer en grænse?

  • Both vendors meter in windows: a rolling five-hour window plus a weekly limit. OpenAI's Pro tiers and Business Premium seats have no five-hour limit for now, and neither does Claude Ultra for verified accounts.
  • When you reach the limit, both let you keep going on paid plans: OpenAI sells credits on Plus and Pro, and Claude paid plans can switch on usage credits billed at API rates. You can also wait for the reset or move up a plan.
  • On both, one pool covers chat and coding: ChatGPT Work shares Codex's allowance, and Claude chat shares Claude Code's.
  • The model you pick changes how fast you use the allowance. OpenAI's Plus estimates run from 6–50 messages per 5 hours on GPT-6.2 Astra to 350–3,000 on GPT-6 Luna. Anthropic says Opus uses noticeably more than Sonnet.

Hvilken plan passer til din måde at arbejde på?

Flyt skyderne. Resultatet er et estimat baseret på de verificerede priser ovenfor og antagelserne nedenfor.

Codex · Anbefalet plan

Pro 100

$100 om måneden

Samme arbejde via API'et (GPT-6.2 Sol)
$49

Planen tjener sig selv ind ved cirka 20.5 opgaver om dagen pr. person

Ved dette forbrug er API'et sandsynligvis billigere end planen.

Claude Code · Anbefalet plan

Max

$100 om måneden

Samme arbejde via API'et (Sonnet 5.5)
$49

Planen tjener sig selv ind ved cirka 20.5 opgaver om dagen pr. person

Ved dette forbrug er API'et sandsynligvis billigere end planen.

Estimat, ikke et tilbud

Antagelser bag estimatet
  • Én agentopgave sender cirka 150.000 inputtokens, hvor 80% kommer fra promptcachen, og modtager cirka 15.000 outputtokens.
  • 22 hverdage med brug om måneden.
  • Op til 1 time eller 5 opgaver om dagen passer til en startplan; op til 3 timer eller 20 opgaver passer til mellemplanen; op til 6 timer eller 50 opgaver passer til den høje plan; derover passer den højeste plan, der tilbydes. Disse intervaller er Dapols’ vurdering: ingen af virksomhederne offentliggør antal timer pr. plan.
  • Teams på to eller flere får teampladser: Standard ved let brug, Premium ellers.

Forbehold

  • Usage allowances are not fixed message counts on either side. They depend on the model, context size and task, so the calculator below is an estimate.
  • Prices are in US dollars and exclude tax. Converted figures use a dated exchange rate and are approximate.
  • Plans change often. Each figure links to the official page it came from, and the date shows when we last read it.
  • OpenAI's message figures are estimates, not fixed limits; cloud tasks can use more of the allowance than local messages. Kilde
  • ChatGPT Work and Codex share one allowance, so non-coding Work tasks draw from the same pool. Kilde
  • Two OpenAI help articles disagree on whether Pro 200 includes any Ultrafast access. Kilde
  • OpenAI's Business page says plan usage will share one limit across ChatGPT and Codex starting in December 2026. Kilde
  • A Business workspace gets up to $500 a month in API credits in total, not per seat. Kilde
  • API requests over 272K input tokens cost more: input doubles and output is 1.5x for the whole request. Kilde
  • Anthropic publishes limits as multiples of Pro, not as message counts. How fast you reach a limit depends on the model, chat length and file size. Kilde
  • Chat, the desktop app and Claude Code all draw from the same usage pool. Kilde
  • Anthropic says it may add weekly or monthly caps, or model and feature limits, at its discretion. Kilde
  • Max and Ultra API credits do not raise your Claude Code usage limits; they are for separate API-key work. Kilde
  • Prices exclude applicable tax. Kilde

Få en e-mail, når priserne ændrer sig

Én kort besked, når prisen eller grænsen for en plan ændres. Ingen andre e-mails.

Ofte stillede spørgsmål

Is Codex or Claude Code cheaper?

At the main price points they cost the same: $20, $100 and $200 a month for individuals and $25 a seat ($20 billed annually) for teams. Codex is cheaper to start, because ChatGPT Free and Go ($8) include limited Codex. Claude is cheaper on annual billing, because Claude Pro costs $17 a month when paid yearly and ChatGPT Plus has no annual option.

Do I need a separate subscription for Codex or Claude Code?

No. Codex is included in ChatGPT plans, with limited access on Free and Go, and Claude Code is included in every paid Claude plan from Pro up. Each one shares its usage allowance with the matching chat app.

Which has higher usage limits, ChatGPT Pro or Claude Max?

Neither publishes absolute numbers for these tiers. OpenAI's Pro 100 has no five-hour limit for now. Claude Max gives 5x Pro every five hours and every week. Claude Ultra ($200) gives 10x Pro weekly with no five-hour limit for verified accounts.

What happens when I hit the usage limit?

You can wait for the window to reset or upgrade. On paid plans you can also keep working by paying extra: OpenAI sells credits on Plus and Pro, and Claude offers usage credits billed at standard API rates.

Is the API cheaper than a subscription?

Only at light use. GPT-6.2 Sol and Claude Sonnet 5.5 both cost $2 per million input tokens and $10 per million output tokens. Using our stated task-size assumption, the $20 plans pay for themselves at about four agent tasks a working day. The calculator shows the maths.

Do the $100 and $200 plans include API credits?

Yes, on both. ChatGPT Pro includes $100, $200 or $500 a month in API credits by tier, and Claude Max and Ultra include $100 and $200. Anthropic says its credits do not raise Claude Code usage limits.

Stadig i tvivl?

Tag quizzen på 2 minutter, så anbefaler vi det rigtige valg til din virksomhed.

Tag quizzen