跳到主要內容
比較

OpenCode、Codex 與 Claude Code 比較

免費開源的程式設計代理,與 ChatGPT 和 Claude 內含的兩款代理相比。以下說明各自的費用,以及這筆費用包含什麼。

我們的結論

如果你想要最低費用,或能自由切換模型,請選 OpenCode:代理本身免費,Go 方案是最便宜的付費選項,涵蓋開源程式設計模型。如果你想在代理中使用 OpenAI 或 Anthropic 自家的前沿模型,請選 Codex 或 Claude Code。OpenCode 也能使用你已付費的訂閱或 API 金鑰。價格列於下方附日期的表格。

 OpenCodeCodexClaude Code
起始價格免費方案免費方案$20/mo
免費方案
易用性55/10062/10060/100
適合技術團隊
最適合Improve coding / development, Reduce software costsImprove coding / developmentImprove coding / development
價格查核

OpenCode

Open-source AI coding agent that works with any model provider — great paired with OpenRouter.

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.

簡短結論

OpenCode is a free, open-source agent: you pay only for models, through its own $10 Go plan, its pay-as-you-go Zen credits, or a subscription or API key you already have. Codex and Claude Code come bundled with ChatGPT and Claude plans from $20 a month. OpenCode Go is the cheapest paid plan of the three, at $10 a month for open coding models such as GLM-5.3 and DeepSeek V4.1 Flash, and its team plan is $20 a member. Codex and Claude Code include their own vendor's frontier models, which Go mostly does not.

各級距價格

級距OpenCodeCodexClaude Code
入門最低價Free (free models or your own key) · $0Free · $0Pro · $20按年計費: $17
標準方案Go · $10Plus · $20Pro · $20按年計費: $17
大量使用Go Plus · $40Pro 100 · $100Max · $100
個人最高級方案Go Plus · $40Pro 500 · $500Ultra · $200
團隊席位Go Teams · $20Business (Standard seat) · $25按年計費: $20Team (Standard seat) · $25按年計費: $20
團隊進階席位—Business (Premium seat) · $125按年計費: $100Team (Premium seat) · $125按年計費: $100

所有方案並列比較

每個數值都連到其資料來源的官方頁面。

OpenCode (OpenCode)

方案
Free (free models or your own key)
每月
$0
按年計費
僅按月計費
席位數
1
程式設計代理
已包含
使用限制
A set of free models, or bring your own subscription or API key from 200+ providers.
公布的數字
未公布
每月 API 額度
無
來源
方案
Go
每月
$10
按年計費
僅按月計費
席位數
1
程式設計代理
已包含
使用限制
One allowance shared across Go models, set per model as a monthly dollar limit; the 5-hour limit is 20% and the weekly limit 50% of the monthly allowance. Example monthly limits: GLM-5.3 $500 (raised through 22 Nov 2026), DeepSeek V4.1 Flash $100, most others $15–$60.
公布的數字
Estimated requests per 5 hours and a monthly dollar limit, per model
每月 API 額度
無
來源
方案
Go Plus
每月
$40
按年計費
僅按月計費
席位數
1
程式設計代理
已包含
使用限制
One allowance shared across Go models, set per model as a monthly dollar limit; the 5-hour limit is 20% and the weekly limit 50% of the monthly allowance. Higher limits than Go: GLM-5.3 $1,000 (raised through 22 Nov 2026), DeepSeek V4.1 Flash $200, most others $60–$240.
公布的數字
Estimated requests per 5 hours and a monthly dollar limit, per model
每月 API 額度
無
來源
方案
Go Teams
每月
$20
按年計費
僅按月計費
席位數
2 or more
程式設計代理
已包含
使用限制
Each member gets their own allowance, $5 a month higher than Go on every model.
公布的數字
Per-model monthly dollar limits
每月 API 額度
無
來源
方案
Zen (pay as you go)
每月
客製或按用量計費
按年計費
僅按月計費
席位數
Any
程式設計代理
已包含
使用限制
No plan allowance; you pay per token.
公布的數字
未公布
每月 API 額度
無
來源

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 額度
無
來源

依使用者類型推薦

個人開發者不相上下

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

Go at $10 is half the price of Plus or Pro, but it runs open models. If you want GPT-6.2 or Claude Opus and Sonnet in the agent, the $20 plans are the way in.

每日大量使用者略勝:OpenCode

  • OpenCode: Go Plus · $40/月
  • Codex: Pro 100 · $100/月
  • Claude Code: Max · $100/月

Go Plus costs $40 against $100, with monthly dollar limits per model, for example $200 on DeepSeek V4.1 Flash. The $100 plans buy frontier-model time instead.

團隊略勝:OpenCode

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

Go Teams is $20 a member with a 2-member minimum, against $25 ($20 annual) for Business or Team seats, which add admin controls and frontier models.

學生略勝:OpenCode

  • OpenCode: Free (free models or your own key) · $0/月
  • Codex: Go · $8/月
  • Claude Code: Pro · $20/月

OpenCode's free models need no account. None of the three lists an individual student discount.

預算有限略勝:OpenCode

  • OpenCode: Free (free models or your own key) · $0/月
  • Codex: Free · $0/月
  • Claude Code: Pro · $20/月

OpenCode with free models costs nothing, and the agent can also use a subscription or API key you already pay for.

常見使用情境的費用

Side project, a few sessions a week

Short sessions on evenings or weekends.

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

Daily professional use

The agent is part of your workday.

  • OpenCode: Go Plus · $40/月
  • Codex: Pro 100 · $100/月
  • Claude Code: Max · $100/月

Team of five developers

One bill, per-member limits.

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

CI and scripted runs

Pay per token.

  • OpenCode: Zen (pay as you go) · 客製或按用量計費
  • Codex: API key (pay as you go) · 客製或按用量計費
  • Claude Code: API key (pay as you go) · 客製或按用量計費

各自的優勢

OpenCode

  • Free, open-source agent with free models and no account needed.
  • Cheapest paid plan: Go at $10 a month.
  • Works with 200+ providers, so you can switch models without switching tools.
  • Zen sells models at cost plus a payment fee.

Codex

  • Includes OpenAI's newest models, GPT-6.2 Astra and Sol.
  • Cloud tasks, GitHub code review and Slack on Plus and above.
  • Pro tiers have no five-hour limit for now.

Claude Code

  • Includes Anthropic's Opus, Sonnet and, on Max and Ultra, Fable.
  • Pro can be billed annually at $17 a month.
  • Ultra has no five-hour limit for verified accounts.

達到使用限制後會如何

  • OpenCode Go sets a monthly dollar limit per model; the 5-hour limit is 20% of it and the weekly limit 50%. At the limit you can turn on Extra Usage and pay from Console credits.
  • Codex and Claude Code meter by a five-hour window plus a weekly limit, and both let paid plans keep going on purchased credits.

哪個方案適合你的工作方式?

移動滑桿。結果是根據上方已核實的價格和下方列出的假設估算而得。

OpenCode · 建議方案

Go Plus

每月 $40

透過 API 執行相同工作(DeepSeek V4.1 Flash (Zen))
$6.10

每人每天約處理 65.6 個任務,方案費用即可回本

以這個用量來看,API 可能比方案便宜。

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。

注意事項

  • OpenCode Go and the Codex or Claude plans buy different things: Go mostly covers open models, the others their own vendor's frontier models.
  • Prices are in US dollars and exclude tax. The raised GLM-5.3 limit on Go ends on 22 November 2026.
  • Usage allowances are not fixed message counts on any of the three, so the calculator is an estimate.
  • Go limits are set per model as a monthly dollar amount, so how far $10 goes depends on which model you pick. 來源
  • The raised GLM-5.3 limit applies through 22 November 2026; a 50% Gemini 4 Argon discount runs through 30 November 2026. 來源
  • Go's model list changes as OpenCode tests and adds models; some models are limited to certain regions. 來源
  • OpenCode itself is free and open source; Go and Zen pay for models, not for the agent. 來源
  • 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 OpenCode cheaper than Codex or Claude Code?

Yes on list price. OpenCode itself is free, and its Go plan costs $10 a month against $20 for ChatGPT Plus or Claude Pro. Go mostly covers open models such as GLM-5.3 and DeepSeek V4.1 Flash, while the $20 plans include each vendor's own frontier models.

Is there a $200 OpenCode plan?

Not on OpenCode's own pages as of 18 November 2026. The plans are Go at $10, Go Plus at $40 and Go Teams at $20 a member. The "$200" people mention is a usage limit: OpenCode raised the GLM-5.3 monthly limit on the $10 Go plan, and its Go page now shows $500 through 22 November 2026.

Can I use OpenCode with a model I already pay for?

Yes. OpenCode works with 200+ providers, so you can bring your own subscription or API key instead of buying Go.

Which has the best team plan?

OpenCode Go Teams is the cheapest at $20 a member with a 2-member minimum. ChatGPT Business and Claude Team cost $25 a seat, or $20 billed annually, and add admin controls, single sign-on and their vendors' frontier models.

仍然不確定嗎?

做 2 分鐘的測驗,我們會為你的企業推薦合適的選擇。

進行測驗