Chuyển đến nội dung chính
So sánh

Codex so với Claude Code

Hai tác nhân lập trình AI chạy trên terminal mà lập trình viên thực sự tranh luận. Đây là cách giá và mức phù hợp của chúng khác nhau.

Kết luận của chúng tôi

Cả hai tác nhân lập trình đều đi kèm gói đăng ký trò chuyện của nhà cung cấp với mức giá tương ứng, nên lựa chọn phụ thuộc vào cách bạn làm việc. Codex là cách bắt đầu rẻ hơn vì ChatGPT Free và Go có giới hạn sử dụng Codex, còn các gói Pro hiện không có giới hạn năm giờ. Claude Code bắt đầu từ gói Pro, đây là gói khởi điểm duy nhất có thanh toán theo năm. Các gói Max và Ultra có mô hình hàng đầu Fable của Anthropic. Giá và giới hạn bên dưới đã được đối chiếu với trang chính thức của cả hai.

 CodexClaude Code
Giá khởi điểmGói miễn phí$20/mo
Gói miễn phí
Mức độ dễ sử dụng62/10060/100
Dành cho đội kỹ thuật
Phù hợp nhất vớiImprove coding / developmentImprove coding / development
Giá đã kiểm tra

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.

Tóm tắt nhanh

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.

Giá ở từng cấp

CấpCodexClaude Code
Cách bắt đầu với chi phí thấp nhấtFree · $0Pro · $20Thanh toán hằng năm: $17
Gói tiêu chuẩnPlus · $20Pro · $20Thanh toán hằng năm: $17
Dùng nhiềuPro 100 · $100Max · $100
Cấp cao nhất dành cho cá nhânPro 500 · $500Ultra · $200
Chỗ trong nhómBusiness (Standard seat) · $25Thanh toán hằng năm: $20Team (Standard seat) · $25Thanh toán hằng năm: $20
Chỗ cao cấp trong nhómBusiness (Premium seat) · $125Thanh toán hằng năm: $100Team (Premium seat) · $125Thanh toán hằng năm: $100

So sánh tất cả gói

Mỗi mức giá liên kết đến trang chính thức mà chúng tôi lấy thông tin.

Codex (OpenAI)

Gói
Free
Hàng tháng
$0
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Có giới hạn
Giới hạn sử dụng
Limited Codex access; GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Go
Hàng tháng
$8
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Có giới hạn
Giới hạn sử dụng
Limited Codex access for lightweight tasks; GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Plus
Hàng tháng
$20
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
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.
Số liệu được công bố
Ranges per 5 hours, by model
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Pro 100
Hàng tháng
$100
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
No five-hour limit at present; weekly allowance larger than Plus (doubled on 29 Oct 2026). No Ultrafast.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
$100
Nguồn
Gói
Pro 200
Hàng tháng
$200
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
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.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
$200
Nguồn
Gói
Pro 500
Hàng tháng
$500
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
Highest included usage of the Pro tiers; no five-hour limit at present; Ultrafast included (uses allowance at 6x–8x the Standard rate).
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
$500
Nguồn
Gói
Business (Standard seat)
Hàng tháng
$25
Thanh toán hằng năm
$20
Số chỗ
2–200
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
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.
Số liệu được công bố
Ranges per 5 hours, by model (same as Plus)
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Business (Premium seat)
Hàng tháng
$125
Thanh toán hằng năm
$100
Số chỗ
2–200 (mix with Standard seats)
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
More usage than a Standard seat, with no five-hour limit.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Enterprise & Edu
Hàng tháng
Tùy chỉnh hoặc tính theo mức sử dụng
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
Custom
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
Flexible-pricing workspaces have no fixed rate limits and scale with credits; others match Plus per seat for most features.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
API key (pay as you go)
Hàng tháng
Tùy chỉnh hoặc tính theo mức sử dụng
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
Any
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
No plan allowance; you pay for every token. CLI, SDK and IDE only, no cloud features.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn

Claude Code (Anthropic)

Gói
Free
Hàng tháng
$0
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Không bao gồm
Giới hạn sử dụng
Limited usage every 5 hours and every week. Claude Code is not included.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Pro
Hàng tháng
$20
Thanh toán hằng năm
$17
Số chỗ
1
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
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.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Max
Hàng tháng
$100
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
5x Pro usage every 5 hours and every week; Fable included up to half the weekly limit; priority access at busy times.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
$100
Nguồn
Gói
Ultra
Hàng tháng
$200
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
1
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
10x Pro usage every week; no five-hour limit for verified accounts; Fable up to half the weekly limit.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
$200
Nguồn
Gói
Team (Standard seat)
Hàng tháng
$25
Thanh toán hằng năm
$20
Số chỗ
2–150
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
More usage than Pro (multiple not stated).
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Team (Premium seat)
Hàng tháng
$125
Thanh toán hằng năm
$100
Số chỗ
2–150 (mix with Standard seats)
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
5x the usage of a Standard seat; Fable up to half the weekly limit.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
Enterprise
Hàng tháng
Tùy chỉnh hoặc tính theo mức sử dụng
Thanh toán hằng năm
$20
Số chỗ
20+
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
Usage billed at API rates; admins set user and org spend limits.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn
Gói
API key (pay as you go)
Hàng tháng
Tùy chỉnh hoặc tính theo mức sử dụng
Thanh toán hằng năm
Chỉ theo tháng
Số chỗ
Any
Tác nhân lập trình
Đã bao gồm
Giới hạn sử dụng
No plan allowance; no hard stop, the account is charged for what it uses.
Số liệu được công bố
Chưa công bố
Tín dụng API mỗi tháng
Không có
Nguồn

Gợi ý phù hợp theo người dùng

Lập trình viên làm việc một mìnhNgang nhau

  • Codex: Plus · $20/tháng
  • Claude Code: Pro · $20/tháng

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.

Người dùng nhiều mỗi ngàyCó lợi thế: Codex

  • Codex: Pro 100 · $100/tháng
  • Claude Code: Max · $100/tháng

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.

NhómNgang nhau

  • Codex: Business (Standard seat) · $25/tháng
  • Claude Code: Team (Standard seat) · $25/tháng

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.

Sinh viênCó lợi thế: Codex

  • Codex: Go · $8/tháng
  • Claude Code: Pro · $20/tháng

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.

Ngân sách eo hẹpCó lợi thế: Codex

  • Codex: Free · $0/tháng
  • Claude Code: Pro · $20/tháng

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

Chi phí của các cách thiết lập phổ biến

Side project, a few sessions a week

Short sessions on evenings or weekends.

  • Codex: Plus · $20/tháng
  • Claude Code: Pro · $20/tháng

Daily professional use, 1–3 hours a day

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

  • Codex: Pro 100 · $100/tháng
  • Claude Code: Max · $100/tháng

All-day agents, 3+ hours or parallel runs

Long sessions, several agents at once, large refactors.

  • Codex: Pro 200 · $200/tháng
  • Claude Code: Ultra · $200/tháng

Team of five developers

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

  • Codex: Business (Standard seat) · $25/chỗ/tháng
  • Claude Code: Team (Standard seat) · $25/chỗ/tháng

CI and scripted runs

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

  • Codex: API key (pay as you go) · Tùy chỉnh hoặc tính theo mức sử dụng
  • Claude Code: API key (pay as you go) · Tùy chỉnh hoặc tính theo mức sử dụng

Điểm mạnh của từng gói

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.

Điều gì xảy ra khi bạn chạm giới hạn

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

Gói nào phù hợp với cách bạn làm việc?

Điều chỉnh các thanh trượt. Kết quả là ước tính dựa trên giá đã xác minh ở trên và các giả định bên dưới.

Codex · Gói được đề xuất

Pro 100

$100 mỗi tháng

Cùng khối lượng công việc trên API (GPT-6.2 Sol)
$49

Gói bắt đầu có lợi khi mỗi người làm khoảng 20.5 tác vụ mỗi ngày

Với khối lượng này, dùng API có thể rẻ hơn gói.

Claude Code · Gói được đề xuất

Max

$100 mỗi tháng

Cùng khối lượng công việc trên API (Sonnet 5.5)
$49

Gói bắt đầu có lợi khi mỗi người làm khoảng 20.5 tác vụ mỗi ngày

Với khối lượng này, dùng API có thể rẻ hơn gói.

Ước tính, không phải báo giá

Các giả định dùng để ước tính
  • Mỗi tác vụ của một agent gửi khoảng 150.000 token đầu vào, trong đó 80% lấy từ bộ nhớ đệm prompt, và nhận về khoảng 15.000 token đầu ra.
  • Sử dụng vào 22 ngày làm việc mỗi tháng.
  • Tối đa 1 giờ hoặc 5 tác vụ mỗi ngày phù hợp với gói cơ bản; tối đa 3 giờ hoặc 20 tác vụ phù hợp với gói tầm trung; tối đa 6 giờ hoặc 50 tác vụ phù hợp với gói cao cấp; vượt mức đó thì dùng gói cao nhất hiện có. Đây là cách Dapols ước tính: không công ty nào công bố số giờ sử dụng cho từng gói.
  • Nhóm có từ 2 người trở lên sẽ dùng gói nhóm: Standard nếu sử dụng ít, Premium nếu sử dụng nhiều hơn.

Điều cần lưu ý

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

Nhận email khi giá thay đổi

Một thông báo ngắn khi giá hoặc giới hạn của gói thay đổi. Không gửi email nào khác.

Các câu hỏi thường gặp

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.

Vẫn chưa chắc?

Làm bài trắc nghiệm 2 phút và chúng tôi sẽ gợi ý lựa chọn phù hợp cho doanh nghiệp của bạn.

Làm bài trắc nghiệm