Meet the Three Contenders三位选手登场
Claude Code (by Anthropic) is the terminal-native coding agent: default model Opus 5.5, a 1-million-token context window, and API pricing of $4 input / $20 output per million tokens — it plans and executes multi-file work with minimal hand-holding. OpenAI Codex is OpenAI's coding agent for cloud and CLI workflows, default model GPT-6 Astra, bundled with ChatGPT Plus ($20/month) — it runs long tasks in the cloud, opens pull requests, and iterates on tests. GitHub Copilot (by GitHub/Microsoft) is the incumbent: from $10/month, an Agent mode in the Pro tier, and a free tier with 2,000 completions a month — its strength is completions, chat, and GitHub integration, not long autonomous runs.Claude Code(Anthropic)是终端原生编程 Agent:默认模型 Opus 5.5,100 万 token 上下文,API 定价每百万 token $4 输入 / $20 输出——多文件工作自主规划执行,几乎不用扶。OpenAI Codex 是 OpenAI 的编程 Agent,主攻云端与 CLI 工作流,默认模型 GPT-6 Astra,随 ChatGPT Plus($20/月)附带——云端跑长任务、开 PR、自己迭代测试。GitHub Copilot(GitHub/Microsoft)是老牌选手:$10/月起,Pro 档有 Agent 模式,免费档每月 2000 次补全——强项是补全、对话和 GitHub 集成,不是长自主任务。
Important red-line fact: ChatGPT's Agent mode was discontinued in August 2026. It is not an available feature of any of these three, and it must not be treated as one. The agentic coding role it once played has been absorbed by OpenAI Codex and the agent modes of Claude Code, Cursor, and GitHub Copilot. Do not plan workflows around a discontinued feature.红线事实:ChatGPT 的 Agent 模式已于 2026 年 8 月下线。它不是这三家任何一家的可用功能,也绝不能当作可用功能推荐。它曾经的 Agent 编程角色已被 OpenAI Codex,以及 Claude Code、Cursor、GitHub Copilot 的 Agent 模式吸收。别围绕一个已下线的功能规划任何工作流。
All three are alive and operating in 2026. Honest answer to "which one?": most developers end up running two — Copilot for the daily completion flow, plus Claude Code or Codex for the heavy agentic work. The table below shows why each one earns its slot. All prices are stated as of the official site.三家在 2026 年都正常运营。"到底用哪个"的诚实答案:多数开发者最后都开两个——日常补全流用 Copilot,重型 Agent 活用 Claude Code 或 Codex。下表说明每一家凭什么占一个位置。所有价格以官网为准。
Side-by-Side Comparison对照表:一眼看懂区别
| Claude Code | OpenAI Codex | GitHub Copilot | |
|---|---|---|---|
| 开发商 | Anthropic | OpenAI | GitHub / Microsoft |
| 默认模型 | Opus 5.5 | GPT-6 Astra | 多模型(以官网为准) |
| 上下文 | 100 万 token(最强) | 大上下文(以官网为准) | 大上下文(以官网为准) |
| 价格 | API 计量(见下行) | Plus $20/月附带 | $10/月起;免费档每月 2000 次补全 |
| API 定价 | $4 输入 / $20 输出(每百万 token) | 随订阅(以官网为准) | Pro 档含 Agent 模式(以官网为准) |
| IDE 支持 | 终端原生 + IDE 插件 | CLI + 云端 + IDE 扩展 | VS Code / JetBrains / Neovim 等全覆盖 |
| 适合谁 | 重度自主任务:重构、迁移、长任务 | 云端 ticket:扔出去就不管的任务 | 日常编码流:补全、对话、GitHub 生态 |
On Claude Code: the strongest autonomous coder of the three. The 1M context is not a spec-sheet number — it is the reason Claude Code can hold an entire repo in its head and execute a refactor without losing the thread. If your work is long, fuzzy, and multi-file, nothing else in this comparison comes close. The trade-off is that heavy usage meters through the API, so budget before you delegate.
点评 Claude Code:三家里自主编程最强。100 万上下文不是参数表数字——它是 Claude Code 能把整个仓库装进脑子、执行重构不丢线的根本原因。如果你的活是长、模糊、多文件的,本对比里没有对手。代价是重度使用走 API 计量,委派前先做预算。
— 中国吧 AI Tools Hub Editorial Team
On OpenAI Codex: the best value of the three for anyone already paying for ChatGPT Plus. GPT-6 Astra as default, cloud execution, PRs opened while you're away — it is a teammate that works the night shift. It does not feel like a terminal companion the way Claude Code does, but for well-scoped tickets the fire-and-forget loop is genuinely productive.
点评 OpenAI Codex:对已在交 Plus 会费的人来说三家性价比最高。默认 GPT-6 Astra、云端执行、你不在时自己提 PR——是个上夜班的队友。终端陪伴感不如 Claude Code,但对边界清晰的 ticket,扔出去就不管的循环是真能产出。
— 中国吧 AI Tools Hub Editorial Team
On GitHub Copilot: the incumbent and still the safest default for teams. Completions, chat, and an Agent mode in Pro, plus 2,000 free completions a month for the curious — nothing matches its GitHub integration. It is the least agentic of the three, and that is fine: not every coding task needs an agent, and Copilot wins the 80% of daily work that doesn't.
点评 GitHub Copilot:老牌选手,团队选型最稳的默认项。补全、对话、Pro 档 Agent 模式,好奇的人每月还有 2000 次免费补全——GitHub 集成无人能及。三家里 Agent 化程度最低,没关系:不是每项编码工作都需要 Agent,Copilot 赢的是那 80% 不需要 Agent 的日常工作。
— 中国吧 AI Tools Hub Editorial Team
Who Should Pick Which?谁该选哪一个?
🤖 Pick Claude Code If选 Claude Code 如果你
Do multi-file refactors, migrations, or long autonomous tasks; live in the terminal; want the strongest planner-executor of the three and can budget API usage ($4 in / $20 out per M tokens, prices as of the official site).干多文件重构、迁移、长自主任务;活在终端里;想要三家最强的规划-执行者,且能承担 API 预算(每百万 token $4 输入 / $20 输出,价格以官网为准)。
☁️ Pick OpenAI Codex If选 OpenAI Codex 如果你
Already pay for ChatGPT Plus ($20/month, Codex bundled); want well-scoped tickets resolved in the cloud with PRs opened automatically; prefer fire-and-forget over watching an agent work in your terminal.已在交 ChatGPT Plus($20/月,Codex 附带);想让边界清晰的 ticket 在云端自动解决、自动提 PR;喜欢扔出去就不管,而不是看 Agent 在终端里干活。
⌨️ Pick GitHub Copilot If选 GitHub Copilot 如果你
Want the daily coding flow covered — completions, chat, Agent mode in Pro — from $10/month, with 2,000 free completions a month to try; live in the GitHub ecosystem; your team needs the safest, most boringly reliable default.想把日常编码流全覆盖——补全、对话、Pro 档 Agent 模式——$10/月起,每月 2000 次免费补全先试试;活在 GitHub 生态里;团队需要最稳、最无聊的默认选项。
Getting Started (All Three)快速开始(三家各一行)
Claude Code: install the CLI, run `claude` in your repo, describe the task in plain language安装 CLI,在仓库里运行 `claude`,用自然语言描述任务
OpenAI Codex: open ChatGPT Plus, start Codex, assign it a task — it works in the cloud and opens a PR打开 ChatGPT Plus,启动 Codex,派一个任务——它在云端干活并提 PR
GitHub Copilot: install the extension in your IDE, sign in, and completions start flowing — Agent mode lives in Pro在 IDE 里装插件、登录,补全立刻开始——Agent 模式在 Pro 档
Key Differentiators核心差异点
-
Claude Code: 1M Context AutonomyClaude Code:100 万上下文自主 — Opus 5.5 with a 1-million-token window — whole-repo refactors without losing the thread. API at $4 input / $20 output per M tokens (prices as of the official site).Opus 5.5 配 100 万 token 窗口——整仓库重构不丢线。API 每百万 token $4 输入 / $20 输出(价格以官网为准)。
-
Codex: Cloud Tickets + PRsCodex:云端 ticket + 自动 PR — GPT-6 Astra default, bundled with ChatGPT Plus ($20/month) — long tasks run in the cloud, tests iterate, PRs open themselves.默认 GPT-6 Astra,随 ChatGPT Plus($20/月)附带——长任务云端跑、测试自己迭代、PR 自己开。
-
Copilot: Completions at ScaleCopilot:大规模补全 — From $10/month with a free tier of 2,000 completions/month, Agent mode in Pro — the completion engine the industry standardized on.$10/月起,免费档每月 2000 次补全,Agent 模式在 Pro 档——行业标准化的补全引擎。
-
IDE Support BreadthIDE 支持广度 — Copilot covers VS Code, JetBrains, Neovim and more; Codex spans CLI, cloud and IDE extensions; Claude Code is terminal-native with IDE plugins.Copilot 覆盖 VS Code、JetBrains、Neovim 等;Codex 横跨 CLI、云端、IDE 扩展;Claude Code 终端原生加 IDE 插件。
-
ChatGPT Agent Mode: DiscontinuedChatGPT Agent 模式:已下线 — Discontinued August 2026 — do not plan around it. Its role now lives in Codex and the agent modes above.2026 年 8 月已下线——别围绕它做任何规划。它的角色已由 Codex 和上面的 Agent 模式承接。
Pros & Cons优缺点
✓ Strengths三家各自的强项
- Claude Code: strongest autonomous coding; 1M context; Opus 5.5Claude Code:自主编程最强;100 万上下文;Opus 5.5
- Codex: bundled with Plus $20/mo; GPT-6 Astra; cloud PR loopCodex:Plus $20/月附带;GPT-6 Astra;云端 PR 闭环
- Copilot: best completions; deepest GitHub integration; free tierCopilot:补全最强;GitHub 集成最深;有免费档
- All three: alive and operating in 2026三家共同点:2026 年都在正常运营
✕ Weaknesses三家各自的短板
- Claude Code: terminal-first; heavy usage meters via APIClaude Code:终端优先;重度使用走 API 计量
- Codex: less of a local companion; Plus quotas applyCodex:本地陪伴感弱;Plus 档有额度限制
- Copilot: least agentic; Agent mode needs ProCopilot:Agent 化程度最低;Agent 模式要 Pro 档
Use Cases应用场景
Scenario-by-scenario picks.分场景选型:
🖥️ Big Refactors大型重构
Claude Code: multi-file, ambiguous, long — the 1M context holds the whole picture.选 Claude Code:多文件、模糊、长任务——100 万上下文装得下全貌。
🎫 Tickets While You're Away人不在时的 ticket
OpenAI Codex: assign in Plus, come back to a PR — the night-shift teammate.选 OpenAI Codex:在 Plus 里派活,回来收 PR——上夜班的队友。
⌨️ Daily Coding Flow日常编码流
GitHub Copilot: completions and chat inside your IDE from $10/month, 2,000 free completions to try.选 GitHub Copilot:IDE 里的补全和对话,$10/月起,每月 2000 次免费补全先试。
👥 Team Default团队默认项
Copilot for the safe team-wide baseline; add Claude Code for the engineers doing the heavy refactors.团队基线用 Copilot 最稳;干重型重构的工程师再加 Claude Code。
Similar AI Tools相似 AI 工具
More coding agents and the top-10 ranking these three lead:更多编程 Agent,以及三家领衔的十强榜单: