Claude Code vs Codex
Claude Code and Codex are each one lab's coding agent, and each comes with that lab's own cloud: Claude Code on the web, included in Claude plans, and Codex cloud, included in paid ChatGPT plans. In the cloud they work much alike: a VM per task, GitHub repositories, and you turn the finished work into a pull request yourself. The choice mostly comes down to which plan your team already pays for, how your engineers work locally, and whether an open-source CLI matters to you.
Checked against both vendors' docs and pricing as of November 9, 2026. This site is operated by Replicas, which runs both of these agents.
Pick Claude Code if
- Your team already pays for Claude Pro, Max, Team or Enterprise seats: cloud sessions are included at no extra charge.
- Your engineers already pair with Claude Code in the terminal or IDE and want to hand a session to the cloud and pull it back with --teleport.
- You want a bigger machine on entry plans: Anthropic documents about 4 vCPU and 16 GB per cloud session, where Codex cloud on ChatGPT Plus gets 2 vCPU and 8 GiB.
- You want GitHub issues and PR comments to start work: claude-code-action responds to @claude in GitHub Actions.
Pick Codex if
- Your team already pays for ChatGPT Plus, Pro, Business, Enterprise or Edu: Codex cloud is included.
- You want an open-source agent locally: the Codex CLI is Apache-2.0 and runs anywhere, while Claude Code is proprietary.
- You want an agent reviewing pull requests: @codex review on a GitHub PR asks Codex for a review.
- Your engineers work in the ChatGPT desktop app or the Codex IDE extension and want cloud tasks from the same place.
Feature by feature
| Criterion | Claude Code | Codex |
|---|---|---|
| Environment | ||
| Isolated cloud VM per task | YesClaude Code on the web runs each session in an Anthropic-managed Ubuntu VM (about 4 vCPU, 16 GB) | YesCodex cloud runs tasks in OpenAI VMs (2 vCPU/8 GiB on Plus, 4 vCPU/16 GiB on Pro and Business) |
| Workflow | ||
| Pull request output | PartlyCloud sessions push a branch; you create the PR from the session | PartlyYou open the PR from the finished task |
| Local IDE workflow | YesTerminal CLI and IDE extensions; --teleport pulls a cloud session into your terminal | YesCLI, IDE extension and ChatGPT desktop app |
| Where work starts | ||
| Start from Slack | CheckConfirm current Slack support with Anthropic | CheckConfirm current Slack support with OpenAI |
| Start from Linear | CheckConfirm with Anthropic | CheckConfirm with OpenAI |
| Start from GitHub | YesGitHub repositories; @claude in issues and PRs through claude-code-action | YesGitHub repositories; @codex review on pull requests |
| Start from GitLab | PartlyGitLab repos can be sent as a bundle, but cloud sessions can't push back | NoGitHub only for now; GitLab is on OpenAI's roadmap |
| Models and billing | ||
| Bring your own model keys | PartlyCloud sessions need a Claude plan; API keys and Bedrock aren't supported there (the CLI takes them) | PartlyCodex cloud requires a ChatGPT sign-in; API keys work only in the CLI |
| Use your Claude or ChatGPT plan | YesPro, Max, Team and eligible Enterprise seats | YesChatGPT Plus, Pro, Business, Enterprise and Edu |
| Usage-based compute pricing | NoSeat-based plans from $20/mo; no separate VM charge | NoSeat-based ChatGPT plans from $20/mo |
| Nothing new to buy | YesIncluded in Claude Pro, Max, Team and eligible Enterprise seats | YesIncluded in paid ChatGPT plans |
| Security and governance | ||
| SOC 2 report | CheckCheck Anthropic's Trust Center | CheckCheck OpenAI's Trust Portal |
| SCIM provisioning | CheckCheck the Claude Enterprise plan | CheckCheck the ChatGPT Enterprise plan |
| Audit log | CheckCheck the Claude Enterprise plan | CheckCheck the ChatGPT Enterprise plan |
| Self-hosted or dedicated deployment | PartlyCloud sessions are Anthropic-hosted; the CLI can run on servers you control | PartlyCodex cloud is OpenAI-hosted; the Apache-2.0 CLI runs anywhere |
| Scale | ||
| Parallel runs | YesSeveral cloud sessions at once | YesSeveral cloud tasks at once |
| Scheduled and event-driven runs | PartlyThrough GitHub Actions or your own scheduler | PartlyThrough codex-action in GitHub workflows |
| Agents | ||
| Open source | NoProprietary | PartlyThe CLI is Apache-2.0; Codex cloud is not |
Sources: Claude Code on the web, Claude Code GitHub Actions, Claude pricing, Codex cloud, Codex pricing, Codex authentication.
Or run both
Both labs' clouds stop at the same places: GitHub only, a branch rather than an opened pull request, a plan sign-in rather than an API key, and one agent each. Replicas, which operates this site, runs Claude Code and Codex in an isolated VM per task, on your Claude or ChatGPT plans or your own Anthropic, OpenAI, Bedrock or Foundry credentials. The agent opens the pull request itself, GitLab works too, and tasks start from Slack, Linear, GitHub or GitLab. You can send the same task to both agents and compare the pull requests. If your team will only ever use one of the two, on GitHub, the lab's own cloud included in your plan is the simpler choice.
Replicas compared criterion by criterion: Replicas vs Claude Code on the web and Replicas vs Codex cloud.
Still deciding?
The comparison above is the same for everyone. The chooser weights it by your team size, the agents you use, where work starts, how you pay for models and what your security review needs, and tells you which of the two, or something else, fits.
Take the chooserCommon questions
Is Claude Code or Codex better?
Neither wins everywhere, and the lead changes as each lab ships new models. What matters is how each does on your codebase. The fairest test is to give both the same few tickets from your backlog and review the pull requests side by side. Both clouds are included in plans from $20 a month; check claude.com/pricing and Codex's pricing page for current plans and limits.
Can I run Claude Code or Codex in the cloud on an API key?
Not in either lab's own cloud. Anthropic's docs say Claude Code on the web needs a Claude Pro, Max, Team or eligible Enterprise seat, and OpenAI's say Codex cloud requires a ChatGPT sign-in. Both CLIs accept API keys on your own machines. Replicas runs Claude Code on an Anthropic key, Bedrock or Foundry, and Codex on an OpenAI key or Foundry, as well as on Claude and ChatGPT plans.
Do they work with GitLab?
Codex cloud is GitHub only for now, with GitLab on OpenAI's roadmap. Claude Code on the web can take a GitLab repository as a bundle, but the session can't push back to it. Both CLIs work with any git remote on your own machine.
Can Claude Code or Codex start work from Slack or Linear?
We couldn't confirm current Slack or Linear support for either lab's cloud from their public docs, so check with Anthropic and OpenAI. Replicas starts both agents from Slack mentions and Linear issues.
What will our security review need?
Both are covered by their makers' company-wide programmes: check Anthropic's Trust Center and OpenAI's Trust Portal for current SOC 2 reports, and the Claude Enterprise and ChatGPT Enterprise plans for SCIM and audit logs.
Get a second opinion on your shortlist
Tell us what you're weighing and an engineer from the Replicas team, who operate this site, will reply by email. We'll point you to whichever option fits, including when that isn't Replicas.