跳到主要内容
比较

Codex 对比 Claude Code

开发人员真正争论的两个基于终端的AI编码代理。以下是它们的定价和适用性的区别。

我们的结论

这两款编程智能体都包含在各自供应商的聊天订阅中,价格也相当,选择主要取决于你的工作方式。Codex 的入门成本更低,因为 ChatGPT Free 和 Go 都提供有限的 Codex 使用额度,而且目前 Pro 各级方案没有五小时限制。Claude Code 从 Pro 方案开始提供,这是唯一支持按年付费的入门方案;Max 和 Ultra 方案包含 Anthropic 的顶级模型 Fable。以下价格和使用限制均已对照双方的官方页面核实。

 CodexClaude Code
起始价格免费计划$20/mo
免费计划
易用性62/10060/100
面向技术团队
最适合Improve coding / developmentImprove coding / development
价格核实

Codex

OpenAI的智能体编程工具,可在终端或编辑器中构建和修复软件。

Claude Code

一款智能命令行编码工具,可用 AI 构建和重构软件。

简要结论

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.

各档位价格

档位CodexClaude Code
最低入门价Free · $0Pro · $20按年计费: $17
标准方案Plus · $20Pro · $20按年计费: $17
高强度使用Pro 100 · $100Max · $100
最高个人档位Pro 500 · $500Ultra · $200
团队席位Business (Standard seat) · $25按年计费: $20Team (Standard seat) · $25按年计费: $20
团队高级席位Business (Premium seat) · $125按年计费: $100Team (Premium seat) · $125按年计费: $100

所有方案并列对比

每项数据都链接到其来源的官方页面。

Codex (OpenAI)

方案
Free
按月计费
$0
按年计费
仅按月计费
席位数
1
编程代理
有限
使用限额
Limited Codex access; GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
已公布的数字
未公布
每月 API 额度
无
来源
方案
Go
按月计费
$8
按年计费
仅按月计费
席位数
1
编程代理
有限
使用限额
Limited Codex access for lightweight tasks; GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
已公布的数字
未公布
每月 API 额度
无
来源
方案
Plus
按月计费
$20
按年计费
仅按月计费
席位数
1
编程代理
包含
使用限额
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.
已公布的数字
Ranges per 5 hours, by model
每月 API 额度
无
来源
方案
Pro 100
按月计费
$100
按年计费
仅按月计费
席位数
1
编程代理
包含
使用限额
No five-hour limit at present; weekly allowance larger than Plus (doubled on 29 Oct 2026). No Ultrafast.
已公布的数字
未公布
每月 API 额度
$100
来源
方案
Pro 200
按月计费
$200
按年计费
仅按月计费
席位数
1
编程代理
包含
使用限额
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.
已公布的数字
未公布
每月 API 额度
$200
来源
方案
Pro 500
按月计费
$500
按年计费
仅按月计费
席位数
1
编程代理
包含
使用限额
Highest included usage of the Pro tiers; no five-hour limit at present; Ultrafast included (uses allowance at 6x–8x the Standard rate).
已公布的数字
未公布
每月 API 额度
$500
来源
方案
Business (Standard seat)
按月计费
$25
按年计费
$20
席位数
2–200
编程代理
包含
使用限额
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.
已公布的数字
Ranges per 5 hours, by model (same as Plus)
每月 API 额度
无
来源
方案
Business (Premium seat)
按月计费
$125
按年计费
$100
席位数
2–200 (mix with Standard seats)
编程代理
包含
使用限额
More usage than a Standard seat, with no five-hour limit.
已公布的数字
未公布
每月 API 额度
无
来源
方案
Enterprise & Edu
按月计费
定制或按用量计费
按年计费
仅按月计费
席位数
Custom
编程代理
包含
使用限额
Flexible-pricing workspaces have no fixed rate limits and scale with credits; others match Plus per seat for most features.
已公布的数字
未公布
每月 API 额度
无
来源
方案
API key (pay as you go)
按月计费
定制或按用量计费
按年计费
仅按月计费
席位数
Any
编程代理
包含
使用限额
No plan allowance; you pay for every token. CLI, SDK and IDE only, no cloud features.
已公布的数字
未公布
每月 API 额度
无
来源

Claude Code (Anthropic)

方案
Free
按月计费
$0
按年计费
仅按月计费
席位数
1
编程代理
不包含
使用限额
Limited usage every 5 hours and every week. Claude Code is not included.
已公布的数字
未公布
每月 API 额度
无
来源
方案
Pro
按月计费
$20
按年计费
$17
席位数
1
编程代理
包含
使用限额
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.
已公布的数字
未公布
每月 API 额度
无
来源
方案
Max
按月计费
$100
按年计费
仅按月计费
席位数
1
编程代理
包含
使用限额
5x Pro usage every 5 hours and every week; Fable included up to half the weekly limit; priority access at busy times.
已公布的数字
未公布
每月 API 额度
$100
来源
方案
Ultra
按月计费
$200
按年计费
仅按月计费
席位数
1
编程代理
包含
使用限额
10x Pro usage every week; no five-hour limit for verified accounts; Fable up to half the weekly limit.
已公布的数字
未公布
每月 API 额度
$200
来源
方案
Team (Standard seat)
按月计费
$25
按年计费
$20
席位数
2–150
编程代理
包含
使用限额
More usage than Pro (multiple not stated).
已公布的数字
未公布
每月 API 额度
无
来源
方案
Team (Premium seat)
按月计费
$125
按年计费
$100
席位数
2–150 (mix with Standard seats)
编程代理
包含
使用限额
5x the usage of a Standard seat; Fable up to half the weekly limit.
已公布的数字
未公布
每月 API 额度
无
来源
方案
Enterprise
按月计费
定制或按用量计费
按年计费
$20
席位数
20+
编程代理
包含
使用限额
Usage billed at API rates; admins set user and org spend limits.
已公布的数字
未公布
每月 API 额度
无
来源
方案
API key (pay as you go)
按月计费
定制或按用量计费
按年计费
仅按月计费
席位数
Any
编程代理
包含
使用限额
No plan allowance; no hard stop, the account is charged for what it uses.
已公布的数字
未公布
每月 API 额度
无
来源

不同用户类型的首选

独立开发者不相上下

  • Codex: Plus · $20/月
  • Claude Code: Pro · $20/月

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.

每天高强度使用者略占优势:Codex

  • Codex: Pro 100 · $100/月
  • Claude Code: Max · $100/月

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.

团队不相上下

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

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.

学生略占优势:Codex

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

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.

预算有限略占优势:Codex

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

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

常见使用配置的费用

Side project, a few sessions a week

Short sessions on evenings or weekends.

  • Codex: Plus · $20/月
  • Claude Code: Pro · $20/月

Daily professional use, 1–3 hours a day

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

  • Codex: Pro 100 · $100/月
  • Claude Code: Max · $100/月

All-day agents, 3+ hours or parallel runs

Long sessions, several agents at once, large refactors.

  • Codex: Pro 200 · $200/月
  • Claude Code: Ultra · $200/月

Team of five developers

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

  • Codex: Business (Standard seat) · $25/席位/月
  • Claude Code: Team (Standard seat) · $25/席位/月

CI and scripted runs

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

  • Codex: API key (pay as you go) · 定制或按用量计费
  • Claude Code: API key (pay as you go) · 定制或按用量计费

各自的优势

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.

达到限额后会怎样

  • 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.

哪种方案适合你的工作方式?

拖动滑块。结果根据上方已核实的价格以及下方列出的假设估算。

Codex · 建议方案

Pro 100

每月 $100

通过 API 完成相同工作(GPT-6.2 Sol)
$49

每人每天约完成 20.5 个任务即可抵消方案费用

按此用量计算,API 可能比方案更便宜。

Claude Code · 建议方案

Max

每月 $100

通过 API 完成相同工作(Sonnet 5.5)
$49

每人每天约完成 20.5 个任务即可抵消方案费用

按此用量计算,API 可能比方案更便宜。

估算价格,不是报价

估算所依据的假设
  • 每个智能体任务大约发送 150,000 个输入 token,其中 80% 来自提示缓存,并收到约 15,000 个输出 token。
  • 每月使用 22 个工作日。
  • 每天最多使用 1 小时或完成 5 个任务,适合入门方案;每天最多使用 3 小时或完成 20 个任务,适合中档方案;每天最多使用 6 小时或完成 50 个任务,适合高档方案;超出这个范围则适合当前提供的最高档方案。这些档位由 Dapols 估算:两家公司都没有公布各方案的使用时长。
  • 两人或以上的团队使用团队席位:轻度使用选 Standard,其他情况选 Premium。

注意事项

  • 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. 来源
  • ChatGPT Work and Codex share one allowance, so non-coding Work tasks draw from the same pool. 来源
  • Two OpenAI help articles disagree on whether Pro 200 includes any Ultrafast access. 来源
  • OpenAI's Business page says plan usage will share one limit across ChatGPT and Codex starting in December 2026. 来源
  • A Business workspace gets up to $500 a month in API credits in total, not per seat. 来源
  • API requests over 272K input tokens cost more: input doubles and output is 1.5x for the whole request. 来源
  • 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. 来源
  • Chat, the desktop app and Claude Code all draw from the same usage pool. 来源
  • Anthropic says it may add weekly or monthly caps, or model and feature limits, at its discretion. 来源
  • Max and Ultra API credits do not raise your Claude Code usage limits; they are for separate API-key work. 来源
  • Prices exclude applicable tax. 来源

价格变动时,通过邮件通知我

方案价格或使用限额变动时,我们会发一封简短通知。不会发送其他邮件。

常见问题

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.

还不确定?

参加2分钟测验,我们将为您的业务推荐合适的选择。

参加测验