1. Symvibe
  2. Compare
  3. Codex vs Claude Code

Codex vs Claude Code

OpenAI's Codex and Anthropic's Claude Code are the two coding agents most people end up weighing against each other. Both run in your terminal, read the repo, edit files and run commands; they differ in what you pay for, how they keep you safe and which files they read. Every row below was checked against both vendors' docs and the CLIs themselves on 27 October 2026.

The short answer

  • Pick Codex if you already pay for ChatGPT, want commands boxed in by the operating system without configuring anything, or want an open-source CLI you can read and build.
  • Pick Claude Code if you already pay for Claude, want the most places to plug in (hooks, plugins, marketplaces, Claude Code as an MCP server), or prefer permission rules and auto mode to a sandbox.
  • Use both if you can: they keep separate homes and logins, both can read one AGENTS.md, and a second agent reviewing the first one's diff catches what the first one missed.

At a glance

CodexClaude Code
Made byOpenAIAnthropic
Runs inThe terminal, VS Code, Cursor and Windsurf, the ChatGPT desktop app, the web, iOS and GitHubThe terminal, VS Code and JetBrains, the Claude desktop app, the web, mobile and GitHub
SourceThe CLI is open source (Apache-2.0, written in Rust); the IDE extension and the cloud are notClosed source
Comes withChatGPT Plus at $20 a month and upClaude Pro at $20 a month and up
Pay per token insteadAn OpenAI API key, without the cloud featuresA Claude Console account or API key
Default modelGPT-6.1 Sol, the recommended model since CLI 0.161.0Opus 5.5
Safety by defaultAn OS sandbox: writes stay in the workspace, the network is off, and it asks before going furtherAuto mode: a classifier runs routine actions and blocks destructive ones; a sandbox is optional
Project instructionsAGENTS.mdCLAUDE.md, or AGENTS.md when there is none
Settings~/.codex/config.toml~/.claude/settings.json
One-shot runscodex execclaude -p
Bring over the other/import reads a Claude Code setupclaude import codex

Plans, prices and limits

Both come with a chat subscription you may already have, and both can bill an API key instead. US prices as listed on 27 October 2026:

Codex, on ChatGPT plansClaude Code, on Claude plans
Free plansFree, and Go at $8 a month, offer Codex in the desktop app with GPT-6 LunaNot included
Entry planPlus, $20 a month: the CLI, the IDE extension, the web and iOSPro, $20 a month or $17 billed yearly
Heavy usePro at $100, $200 or $500 a monthMax 5x at $100 a month, Max 20x at $200
TeamsBusiness, $25 per user a month or $20 billed yearlyTeam, $25 or $125 per seat a month, less billed yearly
How limits workPer five hours on Plus and Business, and weekly limits may also apply; Pro has no five-hour limitA five-hour session limit and a weekly limit on every plan, shared with the Claude app
What is publishedRanges per model, such as 15 to 160 local messages per five hours with GPT-6.1 Sol on PlusMultiples of Pro per session: 5 and 20 times on Max
Past the limitPlus and Pro can buy ChatGPT creditsUsage credits at API prices, or wait for the reset

Neither vendor turns its limits into a token count you can plan against. OpenAI at least publishes message ranges per model; Anthropic publishes multiples of Pro. The Claude side in full, with API prices and a calculator for subscription or API, is in Claude Code pricing.

Sandbox, approvals and permissions

This is the deepest difference between the two, and the one that decides how much you can leave them alone.

Codex: a sandbox first

Codex runs commands inside a sandbox the operating system enforces, Seatbelt on macOS. By default writes stay in the workspace and the network is off, and an approval policy decides when Codex stops to ask. You set the reach with --sandbox read-only, workspace-write or danger-full-access, and the asking with --ask-for-approval on-request or never. codex exec starts read-only. --dangerously-bypass-approvals-and-sandbox removes both, and its own help calls it extremely dangerous. The skip-permissions guide lines it up with Claude Code's flag.

Claude Code: rules and a classifier first

Claude Code decides per tool call. Allow, ask and deny rules such as Bash(git push *) are checked deny first, then ask, then allow. Since version 2.1.283 interactive sessions start in auto mode: a classifier lets routine actions run and blocks anything irreversible, destructive or aimed outside your environment, and your deny and ask rules still come first. The other modes are default, which asks, acceptEdits, plan, dontAsk and bypassPermissions; print mode starts in default. A sandbox for shell commands, Seatbelt on macOS as well, stays off until you run /sandbox.

Put simply, Codex limits what a command can reach and Claude Code judges whether to run it. With defaults, Codex is the stricter of the two for an agent you leave alone; /sandbox gives Claude Code's shell commands a similar boundary.

Instructions and config files

CodexClaude Code
InstructionsAGENTS.mdCLAUDE.md or .claude/CLAUDE.md, plus CLAUDE.local.md for private notes
Where it looks~/.codex/AGENTS.md (or AGENTS.override.md), then each folder from the repo root down to where you started, up to 32 KiB~/.claude/CLAUDE.md, then the project and the folders above it
Reads the other's fileOnly if you list CLAUDE.md in project_doc_fallback_filenamesReads AGENTS.md when there is no CLAUDE.md, since version 2.1.277
Settings~/.codex/config.toml, and .codex/config.toml in trusted projects~/.claude/settings.json, .claude/settings.json and .claude/settings.local.json
Home folder~/.codex, moved with CODEX_HOME~/.claude, moved with CLAUDE_CONFIG_DIR

One file for both. Keep what both agents should know in AGENTS.md. Codex reads it natively and Claude Code reads it as long as the repo has no CLAUDE.md. When you also need Claude-only instructions, add a CLAUDE.md whose first line is @AGENTS.md, which imports the shared file, and write the rest below it.

Extending them

CodexClaude Code
MCPA client over stdio and streamable HTTP, set up with codex mcp add. The codex mcp-server command was removed in September.A client over stdio, SSE, HTTP and WebSocket, with project servers in .mcp.json. claude mcp serve runs Claude Code as an MCP server.
Hooks12 events, and a hook has to be trusted before it runs33 events
SubagentsOn by default; custom agents in ~/.codex/agents/In .claude/agents/ or --agents, plus experimental agent teams
SkillsSKILL.md files in .agents/skills; custom prompts are deprecated in their favor.claude/skills/; custom commands were merged into skills
Pluginscodex plugin, not available in the IDE extensionPlugins and marketplaces with claude plugin

Scripts, CI and sessions

CodexClaude Code
One-shot runcodex exec "task", or codex e, prints the final messageclaude -p "task" prints the answer
For programs--json for newline-delimited events, --output-schema for an answer that matches a JSON Schema, -o to write the last message to a file--output-format json or stream-json, --json-schema for structured output, --max-budget-usd to cap spend
Resumecodex resume with a picker or --last, codex fork, and codex exec resume --lastclaude -c for the latest in this folder, -r by name or ID, --fork-session
Worktrees--worktree on new and forked runs-w creates one under .claude/worktrees/
CloudCodex Cloud, from the CLI with codex cloud exec and apply; needs ChatGPT sign-inCloud sessions on claude.ai/code, or from the CLI with --cloud, counted against your plan's usage
GitHubAutomatic pull request review and the openai/codex-action@v1 actionThe anthropics/claude-code-action@v1 action, and Code Review on Team and Enterprise

Which one for which job

  • You live in ChatGPT already. Codex is in the plan you pay for, across the desktop app, the CLI and the IDE.
  • You want guardrails without setup. Codex's default sandbox keeps commands in the workspace and off the network.
  • You want fewer prompts on a repo you trust. Claude Code's auto mode runs routine actions without asking and still stops the destructive ones.
  • You want to wire the agent into everything. Claude Code has more hook events, plugin marketplaces and an MCP server mode.
  • You want to read or patch the agent itself. The Codex CLI is open source; Claude Code is not.

For code quality, run both on the same task and compare the diffs. Default models change every few weeks (Codex moved to GPT-6.1 Sol on 7 October, Claude Code to Opus 5.5 on 22 September), and your own repo is the benchmark that matters.

Run both on one Mac

The two never collide outside the working tree: separate homes, separate logins, separate sessions. Give each its own git worktree, or let one write while the other reviews its diff. Running Claude Code, Codex and Gemini CLI side by side walks through the setup.

Symvibe, which we make, is a board for exactly this. Codex and Claude Code each get a console that is the real CLI in a real terminal, signed in with your account. With live agent status on, both report working, ready or needs you through their own hooks. Saying "pass this to codex" summarizes the Claude Code session and hands the brief to the Codex console, and when you reopen the app each console offers its CLI's own resume.

Questions people ask

Is Codex better than Claude Code?

Neither wins everywhere. Codex is ahead on default sandboxing and has an open-source CLI; Claude Code is ahead on extensibility and permission controls. Model quality moves too fast for a ranking to last, so test both on your own repo.

Do Codex and Claude Code cost the same?

The entry plans do: $20 a month for ChatGPT Plus or Claude Pro. The heavy plans differ: ChatGPT Pro at $100, $200 or $500 a month against Claude Max at $100 or $200.

Can Codex read CLAUDE.md?

Not by default. List it in project_doc_fallback_filenames in ~/.codex/config.toml, or keep shared instructions in AGENTS.md, which Claude Code also reads when a repo has no CLAUDE.md.

Can I move my setup from one to the other?

Yes, in both directions. claude import codex brings a Codex setup into Claude Code; add --dry-run to preview it. In Codex, /import brings in a Claude Code setup: instructions, settings, skills, MCP servers, hooks and up to 50 chats from the last 30 days.

Which one is safer to leave running?

With defaults, Codex: its sandbox keeps commands in the workspace and off the network. Claude Code's auto mode blocks destructive actions by judgment rather than by a boundary; turn on /sandbox to add one.

Can I use both in the same repo?

Yes. Give each its own git worktree so they never write the same files, or let one write and the other review. A shared AGENTS.md keeps their instructions in step.

Codex and Claude Code on one board

Symvibe runs both CLIs as real terminals on one canvas, with live status for each, handoffs between them and resume on reopen. Your logins, your plans, your Mac.

macOS 14 or later · Apple Silicon · USD 19 a month or USD 190 a year