# Claude Code vs Codex: how they differ · Codara Studio

> Claude Code and Codex compared from Anthropic's and OpenAI's own docs: plans, licence, permissions, sandbox, MCP and worktrees, and how to run both at once.

- URL: https://studio.codarasolutions.com/guides/claude-code-vs-codex
- Language: en

# Claude Code or Codex, or both?

Claude Code is Anthropic's coding agent and Codex is OpenAI's. Both run in your terminal, edit your code and run commands. This is where they differ, from each one's own documentation, and how to run them side by side.

Updated 25 November 2026.

## How do Claude Code and Codex differ?

Every row comes from Anthropic's or OpenAI's own documentation or repository, checked on 25 November 2026 (links under Sources). Both ship new versions almost daily: check the link before you rely on a row.

*Claude Code and Codex, from their own docs, checked 25 November 2026*

|   | Claude Code | Codex |
| --- | --- | --- |
| Made by | Anthropic | OpenAI |
| Where it runs | Terminal, IDE extensions, a desktop app and the web; cloud sessions from the Claude app for iOS and Android | Terminal, the IDE extension, the ChatGPT desktop app and Codex cloud; the ChatGPT mobile app |
| Terminal on | macOS 13+, Windows 10 1809+ (natively or in WSL), Ubuntu 20.04+, Debian 10+, Alpine 3.19+ | macOS, Linux, Windows (natively or in WSL2) |
| Licence | Not open source: “All rights reserved” | The CLI is open source (Apache-2.0); the IDE extension and Codex cloud are not |
| How you pay | A Claude Pro, Max, Ultra, Team or Enterprise plan, or an Anthropic API key | A ChatGPT plan (Free and Go in the desktop app; the CLI from Plus), or an OpenAI API key (CLI and IDE extension, no cloud features) |
| Project instructions | `CLAUDE.md`; reads `AGENTS.md` when there is no `CLAUDE.md` | `AGENTS.md`; other file names only if you list them |
| Asking before acting | Permission modes; auto mode is the default, where a second model reviews actions instead of you | Approval policies and sandbox modes; the default mode sandboxes commands |
| OS sandbox for commands | Off by default; `/sandbox` turns it on | On by default, usually limited to the current workspace |
| Turn prompts off | `--dangerously-skip-permissions` (a few protected actions, such as removing critical paths, still prompt) | `--yolo`, short for its bypass-approvals-and-sandbox flag: no sandbox either |
| MCP servers | `claude mcp add`; `~/.claude.json` or the project's `.mcp.json` | `codex mcp add`; `~/.codex/config.toml` or the project's `.codex/config.toml` |
| Hooks, subagents, skills | Yes, yes, yes | Yes, yes, yes |
| Git worktrees | `claude --worktree NAME` | `/worktree` and `codex exec --worktree`; worktrees in the desktop app |
| Without a person | `claude -p` | `codex exec` (read-only sandbox by default) |
| On GitHub | Mention `@claude` through its GitHub Action; managed Code Review on Team and Enterprise | `@codex review` in a pull request; the `openai/codex-action` GitHub Action |
| Models | Defaults to Opus 5.5 on paid plans and the API | The docs suggest starting with GPT-6.2 Sol |

## When is Claude Code or Codex the better pick?

Neither company publishes a head-to-head, and this page makes no benchmark claims. What each one's own docs make plain:

- Claude Code, if you want the most complete terminal tool of Anthropic's: its docs call the CLI “the most complete surface for terminal-native work” ([platforms](https://code.claude.com/docs/en/platforms)), with hooks, subagents, skills and a classifier that approves safe actions for you.
- Claude Code, if you want Anthropic's own browser link: `claude --chrome` drives Chrome or Edge through the Claude in Chrome extension ([Chrome docs](https://code.claude.com/docs/en/chrome)).
- Codex, if you want the source: the CLI is Apache-2.0 ([repository](https://github.com/openai/codex)), while Claude Code's licence reserves all rights.
- Codex, if you want a sandbox from the start: it limits commands with an OS-enforced sandbox by default ([security](https://learn.chatgpt.com/docs/agent-approvals-security)); Claude Code's sandbox is off until you run `/sandbox`.
- Either, if you already pay for one company's plan: Claude Code comes with Claude's paid plans, the Codex CLI with ChatGPT Plus and up.

## Why run both?

Different models make different mistakes, so a second agent is a cheap second opinion. Common splits:

- One writes the change, the other reviews the diff before you open the pull request.
- Each takes a different task in its own worktree, so they never edit the same files.
- When one hits a plan's usage limit, the other carries on.

One file can brief both: Claude Code reads `AGENTS.md` when a folder has no `CLAUDE.md`, and Codex reads `AGENTS.md` first.

## How do I run Claude Code and Codex side by side in Codara Studio?

1. Install both CLIs and sign in to each, as usual or in Studio's Settings, Accounts. With several Claude or ChatGPT accounts there, new terminals use the Active one.
2. Create isolated worktree… for each task, so the two agents never share a checkout.
3. Start Claude Code in one and Codex in the other from the + menu, or type `claude` and `codex` in a zsh, bash or PowerShell pane.
4. Get on with your own work: the rail shows each agent as working, done, needs you or idle, and a desktop notification tells you when one needs you.
5. Review each diff, commit and open the pull request from Source control.

Both get Studio's MCP server on their command line, so both can drive the built-in browser ([browser MCP](https://studio.codarasolutions.com/browser-mcp)). The + menu starts Claude Code with `--dangerously-skip-permissions` and Codex with `--yolo`, so they work through a task without stopping to ask (for Claude Code, a few protected actions, such as removing critical paths, still prompt) and Codex runs without its sandbox; type `claude` or `codex` yourself in a zsh, bash or PowerShell pane to keep the prompts: it still gets Studio's MCP server, but no skip flag.

## Questions

### Is Codex open source?

The Codex CLI is, under the Apache-2.0 licence; OpenAI says its IDE extension and Codex cloud are not. Claude Code is not open source: its licence reserves all rights to Anthropic.

### Do Claude Code and Codex read the same instruction file?

They can. Codex reads AGENTS.md. Claude Code reads CLAUDE.md, and reads AGENTS.md when a folder has no CLAUDE.md.

### Which one sandboxes commands by default?

Codex: it runs commands in an OS-enforced sandbox by default. Claude Code's sandbox is off until you turn it on with /sandbox; its default auto mode has a second model review actions instead.

### Can I use both in Codara Studio at the same time?

Yes. Start each from the + menu or type claude and codex in zsh, bash or PowerShell panes, ideally each in its own worktree. Studio is free and open source under the MIT license.

## Sources

- [Claude Code docs: Overview](https://code.claude.com/docs/en/overview), checked 25 November 2026
- [Claude Code docs: Set up Claude Code](https://code.claude.com/docs/en/setup), checked 25 November 2026
- [Claude Code docs: Platforms and integrations](https://code.claude.com/docs/en/platforms), checked 25 November 2026
- [Claude Code docs: Feature availability](https://code.claude.com/docs/en/feature-availability), checked 25 November 2026
- [Claude Code licence: “All rights reserved”](https://github.com/anthropics/claude-code/blob/main/LICENSE.md), checked 25 November 2026
- [Claude Code docs: Memory (CLAUDE.md and AGENTS.md)](https://code.claude.com/docs/en/memory), checked 25 November 2026
- [Claude Code docs: Permission modes](https://code.claude.com/docs/en/permission-modes), checked 25 November 2026
- [Claude Code docs: Sandboxing](https://code.claude.com/docs/en/sandboxing), checked 25 November 2026
- [Claude Code docs: MCP](https://code.claude.com/docs/en/mcp), checked 25 November 2026
- [Claude Code docs: Run parallel sessions with worktrees](https://code.claude.com/docs/en/worktrees), checked 25 November 2026
- [Claude Code docs: Run Claude Code programmatically](https://code.claude.com/docs/en/headless), checked 25 November 2026
- [Claude Code docs: GitHub Actions](https://code.claude.com/docs/en/github-actions), checked 25 November 2026
- [Claude Code docs: Model configuration](https://code.claude.com/docs/en/model-config), checked 25 November 2026
- [Claude Code docs: Use Claude Code with Chrome](https://code.claude.com/docs/en/chrome), checked 25 November 2026
- [Codex CLI on GitHub (Apache-2.0)](https://github.com/openai/codex), checked 25 November 2026
- [Codex docs: Codex CLI](https://learn.chatgpt.com/docs/codex/cli), checked 25 November 2026
- [Codex docs: Open source](https://learn.chatgpt.com/docs/open-source), checked 25 November 2026
- [Codex docs: Pricing](https://learn.chatgpt.com/docs/pricing), checked 25 November 2026
- [Codex docs: AGENTS.md](https://learn.chatgpt.com/docs/agent-configuration/agents-md), checked 25 November 2026
- [Codex docs: Agent approvals and security](https://learn.chatgpt.com/docs/agent-approvals-security), checked 25 November 2026
- [Codex docs: Sandboxing](https://learn.chatgpt.com/docs/sandboxing), checked 25 November 2026
- [Codex docs: MCP](https://learn.chatgpt.com/docs/extend/mcp), checked 25 November 2026
- [Codex docs: Commands (/worktree)](https://learn.chatgpt.com/docs/developer-commands?surface=cli), checked 25 November 2026
- [Codex docs: Git worktrees](https://learn.chatgpt.com/docs/environments/git-worktrees), checked 25 November 2026
- [Codex docs: Non-interactive mode](https://learn.chatgpt.com/docs/non-interactive-mode), checked 25 November 2026
- [Codex docs: GitHub code review](https://learn.chatgpt.com/docs/third-party/github), checked 25 November 2026
- [Codex docs: Choosing a model](https://learn.chatgpt.com/docs/model-selection), checked 25 November 2026
- [Codara Studio source: the + menu's launch commands](https://github.com/Codara-Solutions/codara-studio/blob/main/src/renderer/src/workers/launch-commands.ts), checked 25 November 2026
- [Codara Studio docs: Accounts](https://github.com/Codara-Solutions/codara-studio/blob/main/docs/accounts.md), checked 25 November 2026
- [Codara Studio docs: MCP tools (with Startup flags)](https://github.com/Codara-Solutions/codara-studio/blob/main/docs/mcp-tools.md), checked 25 November 2026

Claude Code is Anthropic's, Codex is OpenAI's; Codara Studio is not affiliated with any of them.

Read next:

- [Browser MCP](https://studio.codarasolutions.com/browser-mcp): What a browser MCP server is, how Claude Code and Codex drive a browser through one, the main options compared, and what Codara Studio's browser tools reach.
- [Cursor vs Claude Code](https://studio.codarasolutions.com/guides/cursor-vs-claude-code): Cursor is an AI code editor; Claude Code is a terminal agent with apps. How they differ, from Cursor's and Anthropic's own docs, and how to use both together.
- [Parallel agents with git worktrees](https://studio.codarasolutions.com/guides/parallel-agents-git-worktrees): Why parallel Claude Code and Codex sessions need git worktrees, how to set one up by hand, how Codara Studio does it, and how to merge and clean up.
- [Download Codara Studio](https://studio.codarasolutions.com/download): free and open source, for macOS and Windows.
