[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"blog-claude-code-vs-codex":3,"blog-related-claude-code-vs-codex":42},{"slug":4,"title":5,"description":6,"category":7,"categoryId":8,"keyword":9,"date":10,"minutes":11,"body":12,"html":13,"headings":14},"claude-code-vs-codex","Claude Code vs OpenAI Codex CLI: how to choose","Claude Code vs OpenAI Codex CLI compared from their official docs, November 2026. Plans and usage limits, CLAUDE.md vs AGENTS.md, sandbox and permissions, hooks, subagents, skills and MCP, and how to use both.","Comparisons","comparisons","claude code vs codex","2026-11-28",7,"Claude Code and OpenAI's Codex CLI are the same kind of tool: an agent in your terminal that reads your repository, edits files and runs commands, with IDE extensions, a desktop app and a cloud version around it. They've converged a lot in 2026. Both have project instruction files, hooks, subagents, skills and MCP. The differences that matter are in billing, how each one keeps the agent inside a boundary, and which models it runs. Every fact below comes from Anthropic's [Claude Code docs](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Foverview) and [pricing](https:\u002F\u002Fclaude.com\u002Fpricing), and OpenAI's [Codex docs](https:\u002F\u002Fdevelopers.openai.com\u002Fcodex), read on November 28, 2026. Both change often, so check the linked pages before you decide.\n\n## How do they compare side by side?\n\n| | Claude Code | Codex CLI |\n| --- | --- | --- |\n| Models | Claude | OpenAI's GPT models |\n| Comes with | Claude Pro, Max, Ultra, Team or Enterprise; not the free plan | ChatGPT Free, Go, Plus, Pro, Business, Edu or Enterprise (CLI listed from Plus) |\n| API billing | Anthropic Console, per token | An OpenAI API key, at API pricing |\n| Usage limits | A 5-hour session limit and a weekly limit on subscriptions | Estimated messages per 5 hours on Plus and Business; weekly limits may apply |\n| Project instructions | `CLAUDE.md` (reads `AGENTS.md` when there's no `CLAUDE.md`) | `AGENTS.md` |\n| Settings | JSON: `~\u002F.claude\u002Fsettings.json`, `.claude\u002Fsettings.json` | TOML: `~\u002F.codex\u002Fconfig.toml`, `.codex\u002Fconfig.toml` |\n| Default boundary | Permission prompts; the OS sandbox is off until you turn it on | OS sandbox on: workspace writes, network on approval |\n| Hooks | Yes | Yes, on by default |\n| Subagents | Markdown files in `.claude\u002Fagents\u002F` | TOML files in `.codex\u002Fagents\u002F` |\n| Skills | `SKILL.md` in `.claude\u002Fskills\u002F` | `SKILL.md` in `.agents\u002Fskills\u002F` |\n| MCP | Yes, `claude mcp add` | Yes, `codex mcp add` |\n| Scripting | `claude -p` | `codex exec` |\n| Source | All rights reserved | Apache-2.0 |\n\n## What does each one cost?\n\n**Claude Code** comes with the paid Claude plans. Its setup page says it \"requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access.\" On claude.com\u002Fpricing today: Pro is $20 a month ($17 a month billed yearly), Max is $100 a month with \"5x Pro usage every 5 hours and every week\", and Ultra is $200 a month with \"no 5-hour limit\" for verified accounts and \"10x Pro usage every week\". With a Console account instead, usage is billed per token to your organization.\n\n**Codex** comes with ChatGPT. OpenAI's pricing page says Codex is \"included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan\". The CLI and IDE extension are listed from Plus ($20 a month); Free ($0) and Go ($8) list the desktop app. Pro starts at $100, with plans at $100, $200 or $500 a month, and Business is $20 per user per month billed yearly for two users or more. With an API key, Codex runs in the CLI, SDK or IDE extension, without the cloud features, and \"API-key sessions use separate API pricing, not your ChatGPT allowance.\"\n\nIf you already pay for one of the two subscriptions, that's usually the cheapest way to start with its agent.\n\n## How do the usage limits work?\n\nBoth meter subscriptions in windows, and neither publishes a fixed token count.\n\n- **Claude Code:** the docs describe two messages, \"You've hit your session limit\" and \"You've hit your weekly limit\", for a usage window \"shared across all models\". On Team and Enterprise, each member's usage \"resets on a rolling five-hour window and a weekly window.\" Plans differ by multiples of Pro's usage. More in [Claude Code usage limits](\u002Fblog\u002Fclaude-code-usage-limits).\n- **Codex:** the pricing page gives estimates of local messages per five-hour period for Plus and Business, per model, and adds that \"These estimates are not fixed message limits\" and \"Weekly limits may also apply.\" Pro \"currently\" has no five-hour limit. Local and cloud work share the same allowance. If you hit the limit mid-turn, the agent can finish that turn.\n\nIn both, a long session on a large repository uses the window faster than short questions, so the only real measure is your own work on your own code.\n\n## CLAUDE.md or AGENTS.md?\n\n**Claude Code** reads `CLAUDE.md`: `~\u002F.claude\u002FCLAUDE.md` for you, `.\u002FCLAUDE.md` or `.\u002F.claude\u002FCLAUDE.md` for the project, `CLAUDE.local.md` for what you don't commit, plus files in subdirectories, loaded once Claude works there. A `CLAUDE.md` can pull in other files with `@path\u002Fto\u002Ffile`, and `.claude\u002Frules\u002F` holds rules scoped to paths. It also reads `AGENTS.md`, but \"only when you have no `CLAUDE.md` in your working directory or above it\" (Claude Code v2.1.277 or later).\n\n**Codex** reads `AGENTS.md`. First from your Codex home (`~\u002F.codex`), where an `AGENTS.override.md` wins over `AGENTS.md`. Then, from the project root down to your current folder, at most one file per directory, joined so that files closer to where you work override earlier ones. It stops adding files once they reach `project_doc_max_bytes`, 32 KiB by default.\n\nIf a repository serves both, keep the shared instructions in `AGENTS.md` and make `CLAUDE.md` import it with a line `@AGENTS.md`, adding Claude-only notes below. See [How to write a CLAUDE.md that Claude Code actually follows](\u002Fblog\u002Fclaude-md-guide).\n\n## How do sandbox and permissions differ?\n\nThis is the biggest difference in day-to-day use.\n\n**Codex starts sandboxed.** Its default preset is `--sandbox workspace-write --ask-for-approval on-request`: \"Codex can read files, make edits, and run commands in the workspace. Codex requires approval to edit outside the workspace or to access network.\" The sandbox modes are `read-only`, `workspace-write` and `danger-full-access`; the approval policies are `on-request` and `never` (`untrusted` is retired). On macOS it uses Seatbelt, on Linux and WSL2 bubblewrap, and in PowerShell the native Windows sandbox. An \"Auto-review\" option sends eligible approval requests to a model instead of to you. `--yolo` removes both sandbox and approvals. `codex exec` runs read-only unless you say otherwise.\n\n**Claude Code starts with prompts.** You write rules in `permissions.allow`, `ask` and `deny` (evaluated deny, then ask, then allow), like `Bash(npm run build)` or `Read(.\u002F.env)`, and pick a mode: `default`, `acceptEdits`, `plan`, `auto`, `dontAsk` or `bypassPermissions`. In `auto`, \"A separate classifier model reviews actions before they run.\" The OS sandbox exists too, but \"The sandbox is off by default. To turn it on, run `\u002Fsandbox` in a session.\" It uses Seatbelt on macOS and bubblewrap on Linux and WSL2, sends network traffic through a proxy that allows only the domains you list, and doesn't run on native Windows. See [Claude Code permission modes](\u002Fblog\u002Fclaude-code-permission-modes).\n\nIn practice: Codex out of the box blocks network and writes outside the repository at the OS level. Claude Code out of the box asks you, and gets the same OS-level isolation once you run `\u002Fsandbox`.\n\n## Hooks, subagents, skills and MCP\n\nBoth have all four, and they look alike.\n\n- **Hooks.** Claude Code's run shell commands, HTTP endpoints, MCP tools, prompts or subagents on 34 events, from `SessionStart` and `PreToolUse` to `WorktreeCreate` and `SessionEnd`. Codex's are \"enabled by default\", cover events such as `PreToolUse`, `PermissionRequest`, `PostToolUse` and `Stop`, and hooks that aren't managed by an admin \"must be reviewed and trusted before they run.\" See [Claude Code hooks](\u002Fblog\u002Fclaude-code-hooks).\n- **Subagents.** Claude Code's are Markdown files with YAML front matter in `.claude\u002Fagents\u002F` or `~\u002F.claude\u002Fagents\u002F`. Codex enables subagents by default, ships `default`, `worker` and `explorer`, and takes custom agents as TOML files in `.codex\u002Fagents\u002F` or `~\u002F.codex\u002Fagents\u002F`. See [Claude Code subagents](\u002Fblog\u002Fclaude-code-subagents).\n- **Skills.** Both use a `SKILL.md` folder: `.claude\u002Fskills\u002F\u003Cname>\u002F` for Claude Code, `.agents\u002Fskills\u002F` (scanned from your folder up to the repository root) for Codex. A skill written for one often works in the other with a copy. See [Claude Code skills](\u002Fblog\u002Fclaude-code-skills).\n- **MCP.** `claude mcp add` writes to local, project (`.mcp.json`) or user scope. `codex mcp add` writes `[mcp_servers.\u003Cname>]` tables to `~\u002F.codex\u002Fconfig.toml`, or to `.codex\u002Fconfig.toml` in a trusted project.\n\nClaude Code also has plugins that bundle skills, agents, hooks and MCP servers, installed from marketplaces with `\u002Fplugin`.\n\n## Which one should you pick?\n\nPick **Claude Code** if you already pay for Claude, want Claude models, or want fine-grained permission rules and the larger set of hook events. Pick **Codex** if you already pay for ChatGPT, want GPT models, want the OS sandbox on from the first command, or want to read and change the agent's source (Apache-2.0).\n\nBetter than reading tables: take a one-hour task, run it in each on a fresh branch, and compare the diffs, how often you had to step in, and what each took from your plan. The same test is laid out in [Claude Code vs Cursor](\u002Fblog\u002Fclaude-code-vs-cursor), and for GitHub's agent in [Claude Code vs GitHub Copilot](\u002Fblog\u002Fclaude-code-vs-github-copilot).\n\n## Can you use both?\n\nYes. Many people do: one writes, the other reviews the diff. They don't conflict in one repository, since Claude Code keeps its files in `.claude\u002F` and Codex in `.codex\u002F` and `.agents\u002F`. Share instructions through `AGENTS.md` as above. To move settings across, Claude Code has `claude import codex --dry-run`, which shows what it would bring over without writing anything. Run them in separate [git worktrees](\u002Fblog\u002Fclaude-code-git-worktrees) if both edit at the same time.\n\n## In Relais\n\nRelais is a Mac app that runs Claude Code on the Claude plan you're already signed in to, with no API key. It doesn't run Codex. If Claude Code is your agent, it keeps every repository of a project together, shows which sessions wait for you, switches to your next Claude account at a limit, and adds agents and routines for the work that isn't code. Relais is made by an independent company, not affiliated with Anthropic or OpenAI. More on [features](\u002Ffeatures) and [Compare](\u002Fcompare).","\u003Cp>Claude Code and OpenAI&#39;s Codex CLI are the same kind of tool: an agent in your terminal that reads your repository, edits files and runs commands, with IDE extensions, a desktop app and a cloud version around it. They&#39;ve converged a lot in 2026. Both have project instruction files, hooks, subagents, skills and MCP. The differences that matter are in billing, how each one keeps the agent inside a boundary, and which models it runs. Every fact below comes from Anthropic&#39;s \u003Ca href=\"https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Foverview\">Claude Code docs\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fclaude.com\u002Fpricing\">pricing\u003C\u002Fa>, and OpenAI&#39;s \u003Ca href=\"https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\">Codex docs\u003C\u002Fa>, read on November 28, 2026. Both change often, so check the linked pages before you decide.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-they-compare-side-by-side\">\u003Ca class=\"anchor\" href=\"#how-do-they-compare-side-by-side\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do they compare side by side?\u003C\u002Fh2>\n\u003Cdiv class=\"table-wrap\">\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>\u003C\u002Fth>\u003Cth>Claude Code\u003C\u002Fth>\u003Cth>Codex CLI\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Models\u003C\u002Ftd>\u003Ctd>Claude\u003C\u002Ftd>\u003Ctd>OpenAI&#39;s GPT models\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Comes with\u003C\u002Ftd>\u003Ctd>Claude Pro, Max, Ultra, Team or Enterprise; not the free plan\u003C\u002Ftd>\u003Ctd>ChatGPT Free, Go, Plus, Pro, Business, Edu or Enterprise (CLI listed from Plus)\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>API billing\u003C\u002Ftd>\u003Ctd>Anthropic Console, per token\u003C\u002Ftd>\u003Ctd>An OpenAI API key, at API pricing\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Usage limits\u003C\u002Ftd>\u003Ctd>A 5-hour session limit and a weekly limit on subscriptions\u003C\u002Ftd>\u003Ctd>Estimated messages per 5 hours on Plus and Business; weekly limits may apply\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Project instructions\u003C\u002Ftd>\u003Ctd>\u003Ccode>CLAUDE.md\u003C\u002Fcode> (reads \u003Ccode>AGENTS.md\u003C\u002Fcode> when there&#39;s no \u003Ccode>CLAUDE.md\u003C\u002Fcode>)\u003C\u002Ftd>\u003Ctd>\u003Ccode>AGENTS.md\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Settings\u003C\u002Ftd>\u003Ctd>JSON: \u003Ccode>~\u002F.claude\u002Fsettings.json\u003C\u002Fcode>, \u003Ccode>.claude\u002Fsettings.json\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>TOML: \u003Ccode>~\u002F.codex\u002Fconfig.toml\u003C\u002Fcode>, \u003Ccode>.codex\u002Fconfig.toml\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Default boundary\u003C\u002Ftd>\u003Ctd>Permission prompts; the OS sandbox is off until you turn it on\u003C\u002Ftd>\u003Ctd>OS sandbox on: workspace writes, network on approval\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Hooks\u003C\u002Ftd>\u003Ctd>Yes\u003C\u002Ftd>\u003Ctd>Yes, on by default\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Subagents\u003C\u002Ftd>\u003Ctd>Markdown files in \u003Ccode>.claude\u002Fagents\u002F\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>TOML files in \u003Ccode>.codex\u002Fagents\u002F\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Skills\u003C\u002Ftd>\u003Ctd>\u003Ccode>SKILL.md\u003C\u002Fcode> in \u003Ccode>.claude\u002Fskills\u002F\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>\u003Ccode>SKILL.md\u003C\u002Fcode> in \u003Ccode>.agents\u002Fskills\u002F\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>MCP\u003C\u002Ftd>\u003Ctd>Yes, \u003Ccode>claude mcp add\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Yes, \u003Ccode>codex mcp add\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Scripting\u003C\u002Ftd>\u003Ctd>\u003Ccode>claude -p\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>\u003Ccode>codex exec\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Source\u003C\u002Ftd>\u003Ctd>All rights reserved\u003C\u002Ftd>\u003Ctd>Apache-2.0\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Ch2 id=\"what-does-each-one-cost\">\u003Ca class=\"anchor\" href=\"#what-does-each-one-cost\" aria-label=\"Link to this section\">#\u003C\u002Fa>What does each one cost?\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Claude Code\u003C\u002Fstrong> comes with the paid Claude plans. Its setup page says it &quot;requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access.&quot; On claude.com\u002Fpricing today: Pro is $20 a month ($17 a month billed yearly), Max is $100 a month with &quot;5x Pro usage every 5 hours and every week&quot;, and Ultra is $200 a month with &quot;no 5-hour limit&quot; for verified accounts and &quot;10x Pro usage every week&quot;. With a Console account instead, usage is billed per token to your organization.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Codex\u003C\u002Fstrong> comes with ChatGPT. OpenAI&#39;s pricing page says Codex is &quot;included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan&quot;. The CLI and IDE extension are listed from Plus ($20 a month); Free ($0) and Go ($8) list the desktop app. Pro starts at $100, with plans at $100, $200 or $500 a month, and Business is $20 per user per month billed yearly for two users or more. With an API key, Codex runs in the CLI, SDK or IDE extension, without the cloud features, and &quot;API-key sessions use separate API pricing, not your ChatGPT allowance.&quot;\u003C\u002Fp>\n\u003Cp>If you already pay for one of the two subscriptions, that&#39;s usually the cheapest way to start with its agent.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-the-usage-limits-work\">\u003Ca class=\"anchor\" href=\"#how-do-the-usage-limits-work\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do the usage limits work?\u003C\u002Fh2>\n\u003Cp>Both meter subscriptions in windows, and neither publishes a fixed token count.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Claude Code:\u003C\u002Fstrong> the docs describe two messages, &quot;You&#39;ve hit your session limit&quot; and &quot;You&#39;ve hit your weekly limit&quot;, for a usage window &quot;shared across all models&quot;. On Team and Enterprise, each member&#39;s usage &quot;resets on a rolling five-hour window and a weekly window.&quot; Plans differ by multiples of Pro&#39;s usage. More in \u003Ca href=\"\u002Fblog\u002Fclaude-code-usage-limits\">Claude Code usage limits\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Codex:\u003C\u002Fstrong> the pricing page gives estimates of local messages per five-hour period for Plus and Business, per model, and adds that &quot;These estimates are not fixed message limits&quot; and &quot;Weekly limits may also apply.&quot; Pro &quot;currently&quot; has no five-hour limit. Local and cloud work share the same allowance. If you hit the limit mid-turn, the agent can finish that turn.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>In both, a long session on a large repository uses the window faster than short questions, so the only real measure is your own work on your own code.\u003C\u002Fp>\n\u003Ch2 id=\"claude-md-or-agents-md\">\u003Ca class=\"anchor\" href=\"#claude-md-or-agents-md\" aria-label=\"Link to this section\">#\u003C\u002Fa>CLAUDE.md or AGENTS.md?\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Claude Code\u003C\u002Fstrong> reads \u003Ccode>CLAUDE.md\u003C\u002Fcode>: \u003Ccode>~\u002F.claude\u002FCLAUDE.md\u003C\u002Fcode> for you, \u003Ccode>.\u002FCLAUDE.md\u003C\u002Fcode> or \u003Ccode>.\u002F.claude\u002FCLAUDE.md\u003C\u002Fcode> for the project, \u003Ccode>CLAUDE.local.md\u003C\u002Fcode> for what you don&#39;t commit, plus files in subdirectories, loaded once Claude works there. A \u003Ccode>CLAUDE.md\u003C\u002Fcode> can pull in other files with \u003Ccode>@path\u002Fto\u002Ffile\u003C\u002Fcode>, and \u003Ccode>.claude\u002Frules\u002F\u003C\u002Fcode> holds rules scoped to paths. It also reads \u003Ccode>AGENTS.md\u003C\u002Fcode>, but &quot;only when you have no \u003Ccode>CLAUDE.md\u003C\u002Fcode> in your working directory or above it&quot; (Claude Code v2.1.277 or later).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Codex\u003C\u002Fstrong> reads \u003Ccode>AGENTS.md\u003C\u002Fcode>. First from your Codex home (\u003Ccode>~\u002F.codex\u003C\u002Fcode>), where an \u003Ccode>AGENTS.override.md\u003C\u002Fcode> wins over \u003Ccode>AGENTS.md\u003C\u002Fcode>. Then, from the project root down to your current folder, at most one file per directory, joined so that files closer to where you work override earlier ones. It stops adding files once they reach \u003Ccode>project_doc_max_bytes\u003C\u002Fcode>, 32 KiB by default.\u003C\u002Fp>\n\u003Cp>If a repository serves both, keep the shared instructions in \u003Ccode>AGENTS.md\u003C\u002Fcode> and make \u003Ccode>CLAUDE.md\u003C\u002Fcode> import it with a line \u003Ccode>@AGENTS.md\u003C\u002Fcode>, adding Claude-only notes below. See \u003Ca href=\"\u002Fblog\u002Fclaude-md-guide\">How to write a CLAUDE.md that Claude Code actually follows\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-sandbox-and-permissions-differ\">\u003Ca class=\"anchor\" href=\"#how-do-sandbox-and-permissions-differ\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do sandbox and permissions differ?\u003C\u002Fh2>\n\u003Cp>This is the biggest difference in day-to-day use.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Codex starts sandboxed.\u003C\u002Fstrong> Its default preset is \u003Ccode>--sandbox workspace-write --ask-for-approval on-request\u003C\u002Fcode>: &quot;Codex can read files, make edits, and run commands in the workspace. Codex requires approval to edit outside the workspace or to access network.&quot; The sandbox modes are \u003Ccode>read-only\u003C\u002Fcode>, \u003Ccode>workspace-write\u003C\u002Fcode> and \u003Ccode>danger-full-access\u003C\u002Fcode>; the approval policies are \u003Ccode>on-request\u003C\u002Fcode> and \u003Ccode>never\u003C\u002Fcode> (\u003Ccode>untrusted\u003C\u002Fcode> is retired). On macOS it uses Seatbelt, on Linux and WSL2 bubblewrap, and in PowerShell the native Windows sandbox. An &quot;Auto-review&quot; option sends eligible approval requests to a model instead of to you. \u003Ccode>--yolo\u003C\u002Fcode> removes both sandbox and approvals. \u003Ccode>codex exec\u003C\u002Fcode> runs read-only unless you say otherwise.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Claude Code starts with prompts.\u003C\u002Fstrong> You write rules in \u003Ccode>permissions.allow\u003C\u002Fcode>, \u003Ccode>ask\u003C\u002Fcode> and \u003Ccode>deny\u003C\u002Fcode> (evaluated deny, then ask, then allow), like \u003Ccode>Bash(npm run build)\u003C\u002Fcode> or \u003Ccode>Read(.\u002F.env)\u003C\u002Fcode>, and pick a mode: \u003Ccode>default\u003C\u002Fcode>, \u003Ccode>acceptEdits\u003C\u002Fcode>, \u003Ccode>plan\u003C\u002Fcode>, \u003Ccode>auto\u003C\u002Fcode>, \u003Ccode>dontAsk\u003C\u002Fcode> or \u003Ccode>bypassPermissions\u003C\u002Fcode>. In \u003Ccode>auto\u003C\u002Fcode>, &quot;A separate classifier model reviews actions before they run.&quot; The OS sandbox exists too, but &quot;The sandbox is off by default. To turn it on, run \u003Ccode>\u002Fsandbox\u003C\u002Fcode> in a session.&quot; It uses Seatbelt on macOS and bubblewrap on Linux and WSL2, sends network traffic through a proxy that allows only the domains you list, and doesn&#39;t run on native Windows. See \u003Ca href=\"\u002Fblog\u002Fclaude-code-permission-modes\">Claude Code permission modes\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>In practice: Codex out of the box blocks network and writes outside the repository at the OS level. Claude Code out of the box asks you, and gets the same OS-level isolation once you run \u003Ccode>\u002Fsandbox\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"hooks-subagents-skills-and-mcp\">\u003Ca class=\"anchor\" href=\"#hooks-subagents-skills-and-mcp\" aria-label=\"Link to this section\">#\u003C\u002Fa>Hooks, subagents, skills and MCP\u003C\u002Fh2>\n\u003Cp>Both have all four, and they look alike.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Hooks.\u003C\u002Fstrong> Claude Code&#39;s run shell commands, HTTP endpoints, MCP tools, prompts or subagents on 34 events, from \u003Ccode>SessionStart\u003C\u002Fcode> and \u003Ccode>PreToolUse\u003C\u002Fcode> to \u003Ccode>WorktreeCreate\u003C\u002Fcode> and \u003Ccode>SessionEnd\u003C\u002Fcode>. Codex&#39;s are &quot;enabled by default&quot;, cover events such as \u003Ccode>PreToolUse\u003C\u002Fcode>, \u003Ccode>PermissionRequest\u003C\u002Fcode>, \u003Ccode>PostToolUse\u003C\u002Fcode> and \u003Ccode>Stop\u003C\u002Fcode>, and hooks that aren&#39;t managed by an admin &quot;must be reviewed and trusted before they run.&quot; See \u003Ca href=\"\u002Fblog\u002Fclaude-code-hooks\">Claude Code hooks\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Subagents.\u003C\u002Fstrong> Claude Code&#39;s are Markdown files with YAML front matter in \u003Ccode>.claude\u002Fagents\u002F\u003C\u002Fcode> or \u003Ccode>~\u002F.claude\u002Fagents\u002F\u003C\u002Fcode>. Codex enables subagents by default, ships \u003Ccode>default\u003C\u002Fcode>, \u003Ccode>worker\u003C\u002Fcode> and \u003Ccode>explorer\u003C\u002Fcode>, and takes custom agents as TOML files in \u003Ccode>.codex\u002Fagents\u002F\u003C\u002Fcode> or \u003Ccode>~\u002F.codex\u002Fagents\u002F\u003C\u002Fcode>. See \u003Ca href=\"\u002Fblog\u002Fclaude-code-subagents\">Claude Code subagents\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Skills.\u003C\u002Fstrong> Both use a \u003Ccode>SKILL.md\u003C\u002Fcode> folder: \u003Ccode>.claude\u002Fskills\u002F&lt;name&gt;\u002F\u003C\u002Fcode> for Claude Code, \u003Ccode>.agents\u002Fskills\u002F\u003C\u002Fcode> (scanned from your folder up to the repository root) for Codex. A skill written for one often works in the other with a copy. See \u003Ca href=\"\u002Fblog\u002Fclaude-code-skills\">Claude Code skills\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>MCP.\u003C\u002Fstrong> \u003Ccode>claude mcp add\u003C\u002Fcode> writes to local, project (\u003Ccode>.mcp.json\u003C\u002Fcode>) or user scope. \u003Ccode>codex mcp add\u003C\u002Fcode> writes \u003Ccode>[mcp_servers.&lt;name&gt;]\u003C\u002Fcode> tables to \u003Ccode>~\u002F.codex\u002Fconfig.toml\u003C\u002Fcode>, or to \u003Ccode>.codex\u002Fconfig.toml\u003C\u002Fcode> in a trusted project.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Claude Code also has plugins that bundle skills, agents, hooks and MCP servers, installed from marketplaces with \u003Ccode>\u002Fplugin\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"which-one-should-you-pick\">\u003Ca class=\"anchor\" href=\"#which-one-should-you-pick\" aria-label=\"Link to this section\">#\u003C\u002Fa>Which one should you pick?\u003C\u002Fh2>\n\u003Cp>Pick \u003Cstrong>Claude Code\u003C\u002Fstrong> if you already pay for Claude, want Claude models, or want fine-grained permission rules and the larger set of hook events. Pick \u003Cstrong>Codex\u003C\u002Fstrong> if you already pay for ChatGPT, want GPT models, want the OS sandbox on from the first command, or want to read and change the agent&#39;s source (Apache-2.0).\u003C\u002Fp>\n\u003Cp>Better than reading tables: take a one-hour task, run it in each on a fresh branch, and compare the diffs, how often you had to step in, and what each took from your plan. The same test is laid out in \u003Ca href=\"\u002Fblog\u002Fclaude-code-vs-cursor\">Claude Code vs Cursor\u003C\u002Fa>, and for GitHub&#39;s agent in \u003Ca href=\"\u002Fblog\u002Fclaude-code-vs-github-copilot\">Claude Code vs GitHub Copilot\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"can-you-use-both\">\u003Ca class=\"anchor\" href=\"#can-you-use-both\" aria-label=\"Link to this section\">#\u003C\u002Fa>Can you use both?\u003C\u002Fh2>\n\u003Cp>Yes. Many people do: one writes, the other reviews the diff. They don&#39;t conflict in one repository, since Claude Code keeps its files in \u003Ccode>.claude\u002F\u003C\u002Fcode> and Codex in \u003Ccode>.codex\u002F\u003C\u002Fcode> and \u003Ccode>.agents\u002F\u003C\u002Fcode>. Share instructions through \u003Ccode>AGENTS.md\u003C\u002Fcode> as above. To move settings across, Claude Code has \u003Ccode>claude import codex --dry-run\u003C\u002Fcode>, which shows what it would bring over without writing anything. Run them in separate \u003Ca href=\"\u002Fblog\u002Fclaude-code-git-worktrees\">git worktrees\u003C\u002Fa> if both edit at the same time.\u003C\u002Fp>\n\u003Ch2 id=\"in-relais\">\u003Ca class=\"anchor\" href=\"#in-relais\" aria-label=\"Link to this section\">#\u003C\u002Fa>In Relais\u003C\u002Fh2>\n\u003Cp>Relais is a Mac app that runs Claude Code on the Claude plan you&#39;re already signed in to, with no API key. It doesn&#39;t run Codex. If Claude Code is your agent, it keeps every repository of a project together, shows which sessions wait for you, switches to your next Claude account at a limit, and adds agents and routines for the work that isn&#39;t code. Relais is made by an independent company, not affiliated with Anthropic or OpenAI. More on \u003Ca href=\"\u002Ffeatures\">features\u003C\u002Fa> and \u003Ca href=\"\u002Fcompare\">Compare\u003C\u002Fa>.\u003C\u002Fp>\n",[15,18,21,24,27,30,33,36,39],{"id":16,"text":17},"how-do-they-compare-side-by-side","How do they compare side by side?",{"id":19,"text":20},"what-does-each-one-cost","What does each one cost?",{"id":22,"text":23},"how-do-the-usage-limits-work","How do the usage limits work?",{"id":25,"text":26},"claude-md-or-agents-md","CLAUDE.md or AGENTS.md?",{"id":28,"text":29},"how-do-sandbox-and-permissions-differ","How do sandbox and permissions differ?",{"id":31,"text":32},"hooks-subagents-skills-and-mcp","Hooks, subagents, skills and MCP",{"id":34,"text":35},"which-one-should-you-pick","Which one should you pick?",{"id":37,"text":38},"can-you-use-both","Can you use both?",{"id":40,"text":41},"in-relais","In Relais",[43,49,55],{"slug":44,"title":45,"description":46,"category":7,"categoryId":8,"keyword":47,"date":10,"minutes":48},"conductor-alternatives","Conductor alternatives for Claude Code on Mac (2026)","Conductor alternatives for running Claude Code in parallel on a Mac, compared after Meta bought Conductor. T3 Code, Claude Code alone with git worktrees, and Relais, each with where it fits and where it doesn't.","conductor alternatives",6,{"slug":50,"title":51,"description":52,"category":7,"categoryId":8,"keyword":53,"date":54,"minutes":11},"best-claude-code-apps","The best Claude Code apps for Mac in 2026","Six Mac apps that run Claude Code, checked on November 27, 2026: the Claude desktop app, T3 Code, Conductor, Nimbalyst, Zed and Relais, with who each one is for, what it costs and where your data goes.","best claude code apps","2026-11-27",{"slug":56,"title":57,"description":58,"category":7,"categoryId":8,"keyword":59,"date":60,"minutes":48},"relais-vs-claude-cowork","Relais vs Claude Cowork: two ways to put your Claude plan to work","Relais vs Claude Cowork compared fairly. Cowork is Anthropic's agent for knowledge work, now running in Anthropic's cloud; Relais runs Claude Code sessions and agents on your Mac. Both use the same Claude plan. Where each one fits.","claude cowork alternative","2026-11-26",1795902784159]