Codex vs Claude Code
Codex is OpenAI's coding agent. Claude Code is Anthropic's. Both work in the terminal, in editors, in a desktop app and on the web. Two differences matter most: Codex comes with every ChatGPT plan, the Free plan included, and its CLI is open source. Claude Code comes with Claude's paid plans and runs Anthropic's Claude models.
Published by HIPS. Not affiliated with OpenAI or Anthropic. Every fact below is from each vendor's own pages, read December 1, 2026.
curl -fsSL https://hips.com/hi.sh | shhi loginhi codexhi claudeCodex
Claude Code
curl -fsSL https://hips.com/hi.sh | shhi loginhi codexhi claudeCodex vs Claude Code, side by side
| Codex | Claude Code | |
|---|---|---|
| Made by | OpenAI | Anthropic |
| In its maker's words | "Codex CLI is a coding agent from OpenAI that runs locally on your computer." | "Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools." |
| Where it runs | "Codex on the web, in the CLI, in the IDE extension, and on iOS" (Plus), and the desktop app | "the terminal, IDE extensions, a desktop app, and the web" |
| Source code | The CLI is open source, "Apache-2.0 license" | Not stated on the Anthropic pages read |
| Models on its plans | "GPT-6.1 Sol and GPT-6 Luna" on Plus; "GPT-6 Luna at Standard speed in the desktop app, subject to rollout" on Free and Go | Anthropic's Claude models: Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 |
| Free plan | Included: "Explore Codex capabilities on quick coding tasks." ($0) | Not included in Claude's Free plan ($0) |
| Paid plans, per month | Go $8; Plus $20; Pro "Plans at $100, $200, or $500 USD per month"; Business $20 a user billed annually, 2+ users ($25 billed monthly); Enterprise and Edu through sales | Pro $20 ($17 billed annually); Max $100; Ultra $200; Team $20 or $100 a seat billed annually ($25 or $125 monthly); Enterprise "US$20/seat/month + tax, billed annually, 20 seat minimum" plus usage at API rates |
| Pay per token | With an API key: "Pay for Codex usage based on API pricing", with "No cloud-based features (GitHub code review, Slack, etc.)" | With a Console account: "Claude Code consumes API tokens at standard API pricing" |
| Limits | "local messages per five-hour period" on Plus and Standard Business; "Pro plans currently have no five-hour limit"; "Weekly limits may also apply." | "a session limit that resets every five hours, and weekly limits that reset once every week"; verified Ultra accounts have no five-hour limit |
| Shared with | "ChatGPT Work and Codex share pricing, credits, and usage limits." | "your usage of all different Claude product surfaces (claude.ai, Claude Code, Claude Desktop) counts towards the same usage limit" |
| Past the limit | "Eligible plans can extend usage with credits or USD usage-based billing." | Usage credits, "billed at standard API rates" |
| Training on business data | Business: "No training on your business data by default." | "Anthropic does not train generative models using code or prompts sent to Claude Code under commercial terms" |
Sources, all read December 1, 2026: Codex's pricing page and GitHub repository; Anthropic's pricing page, Claude Code overview, Claude Code product page, data usage page and help article on limits. Prices are in US dollars and change; each vendor's page is the authority.
Claude Code vs Codex: the differences that matter
- Getting started.
- Codex is on ChatGPT's Free plan. Claude Code is not on Claude's Free plan; it starts with Pro, or a Console account billed per token.
- Models.
- Each runs its own maker's models on its maker's plans: OpenAI's GPT models in Codex, Claude in Claude Code. With an API key, Codex's "Model availability follows the API models available to your key".
- Source.
- You can read and change the Codex CLI's code. The Anthropic pages read do not say the same of Claude Code.
- Limits.
- Both meter use in five-hour windows. Claude adds weekly limits, and Codex says weekly limits may also apply. Both have a top plan without the five-hour window: Codex's Pro plans and Claude's verified Ultra accounts.
- Automation.
- Both can run on a pay-per-token key. OpenAI calls the API key route "Great for automation in shared environments like CI." Anthropic's Claude Code overview says: "Pipe logs into it, run it in CI, or chain it with other tools".
Run both on open models
hi, HIPS's command line, starts either one on open models such as DeepSeek, Kimi, Qwen and GLM, signed in to HIPS for one session, with no API key. HIPS bills the tokens.
| Command | Agent | Its program |
|---|---|---|
hi codex | Codex | codex |
hi claude | Claude Code | claude |
"Each agent talks to HIPS in its own protocol, which the gateway serves: Anthropic's Messages API for Claude Code, the Responses API for Codex, chat completions for the rest."
curl -fsSL https://hips.com/hi.sh | shhi loginhi codexhi claudeThe releases HIPS has tested. From HIPS's signed list of tested versions, issued December 1, 2026: Claude Code 2.1.314 to 2.1.333 on macOS, 2.1.319 to 2.1.333 on Linux and 2.1.322 to 2.1.333 on Windows; Codex 0.162.1 to 0.172.0 on macOS, 0.167.0 to 0.172.0 on Linux and 0.167.1 to 0.172.0 on Windows. hi starts a release outside those with a one-line notice.
The models each one passed. "Tested" means: "A test of the agent passed on this model's current version: it called a tool, sent the tool's result back and answered with it." It is not a score of the code.
| Model | Claude Code | Codex |
|---|---|---|
| DeepSeek V4 Pro | Tested | Tested |
| DeepSeek V4.1 Flash | Tested | Tested |
| Kimi K3.1 Pro | Tested | Tested |
| Kimi K3 | Tested | Tested |
| GLM 5.3 | Tested | Tested |
| GLM 5.3 Flash | Tested | Tested |
| Qwen3.6 35B A3B | Tested | Tested |
| Qwen3 30B A3B Instruct 2507 FP8 | Tested | Tested |
| gpt oss 120b | Tested | Tested |
| North Mini Code 1.0 | Meets the requirements, not tested yet | Tested |
| NVIDIA Nemotron 3.5 Lightning | Meets the requirements, not tested yet | Tested |
| Qwen3.5 9B | Meets the requirements, not tested yet | Failed its test |
From HIPS's catalog, revision 611, and its signed test record, sequence 76 (Claude Code 2.1.333, Codex 0.172.0), both December 1, 2026. Prices and today's results are on the model catalog.
Together. With --team, agents you start on one computer work as one team, "for example a Claude Code session leading Codex, OpenCode and DeepSeek Harness builders". Codex joins a team from hi 0.1.20. "Nothing of a team is sent to HIPS."
What you give up. These are not OpenAI's or Anthropic's models, and results differ by model. Anthropic "doesn’t support routing Claude Code to non-Claude models through any gateway." The OpenAI pages read say nothing either way about Codex on other models. Run Claude Code with any model says more.
Where each fits
Codex fits when you already pay for ChatGPT, since Codex comes with it; when you want to read or change your agent's source; and when you run agents in CI on an API key.
Claude Code fits when you want Anthropic's Claude models with Anthropic's own support; when your company already runs Claude Team or Enterprise; and when you want one usage pool across Claude chat and coding.
Both, through hi, fit when you want either agent on open models with one per-token bill, or a Claude Code session leading Codex builders.
Questions
Which should I choose, Codex or Claude Code?
This page names no winner. They differ in plans, models and source code, and the right one is the one that does your work. Try both on a task of your own.
Is Codex free? Is Claude Code free?
Codex is on ChatGPT's Free plan: "Explore Codex capabilities on quick coding tasks." Claude Code is not on Claude's Free plan; see Is Claude Code free?.
How do Codex and Claude Code prices compare?
Both have a $20 monthly plan: ChatGPT Plus and Claude Pro. Above that, Codex's Pro plans are $100, $200 or $500 a month, and Claude's Max and Ultra are $100 and $200. Both can bill per token instead. Every Claude price is on Claude Code pricing.
Do Codex and Claude Code have usage limits?
Yes, both. Codex estimates "local messages per five-hour period" on Plus and Standard Business, and "Weekly limits may also apply." Claude has "a session limit that resets every five hours, and weekly limits that reset once every week".
Can Codex use Claude models, or Claude Code use GPT models?
Not on their own plans: each runs its maker's models there, and Anthropic supports Claude Code on Claude models only. Through hi, both run on the same open models, listed above.
Can I use Codex and Claude Code together?
Yes. Under hi, a Claude Code session can lead Codex in one team on your computer. GitHub also offers both: its Copilot Pro plan lists "Access to 3rd party agents (Claude Code and Codex)".
Do I need an API key?
Not on a plan: Codex signs in with ChatGPT, and Claude Code with a Claude account. Each takes an API key for per-token billing. Under hi, neither needs one: hi signs them in to HIPS for the session.