Claude Code (Anthropic) vs OpenAI Codex CLI

Claude Code (Anthropic) vs OpenAI Codex CLI: side-by-side comparison of two agent ides & coding harnesses systems — architecture, taxonomy, license, pricing, MCP/A2A support, and direct edges.

Claude Code (Anthropic) · OpenAI Codex CLI

Compare any two systems →

Cost & capability

Claude Code (Anthropic)OpenAI Codex CLI
Capability bandfrontierfrontier
Capability composite8880
Cost tiermidfree
$/Mtok input—0
$/Mtok output—0
Use casesCode Generation Focused, Long Running Session, Scoped AgenticCode Generation Focused, Scoped Agentic, Long Running Session

Where they differ (16)

Rows where both sides have data and the values disagree — the shortlist of dimensions that actually distinguish these two systems.

Claude Code (Anthropic)OpenAI Codex CLI
Capability composite8880
Cost tiermidfree
Use casesCode Generation Focused, Long Running Session, Scoped AgenticCode Generation Focused, Scoped Agentic, Long Running Session
TypeTerminal-native agentic coding harnessTerminal-native agentic coding harness (OpenAI)
Created2024-102025-04
Latest releasev2.1.310 (2026-10-23)v0.165.0 (2026-10-27)
Licenseproprietary — © Anthropic PBC, use subject to Anthropic Commercial Terms (repo public, not OSS)Apache-2.0
GitHubanthropics/claude-code — ~153k stars, last commit 2026-10openai/codex — ~128k stars, last commit 2026-10
PricingNo free tier; included in Pro ($20/mo, $17 annual), Max (from $100/mo), Team ($25/seat/mo, $20 annual), Enterprise; or API pay-per-token via ConsoleCLI free (Apache-2.0); usage via ChatGPT plans (Free/Go limited, Plus $20/mo, Pro $100–200/mo, Business $25/user/mo) or API-key per-token billing
FundingAnthropic (parent) — $65B Series H at $965B post-money (2026-05-28); S-1 filed for a proposed IPO (2026-10-26)OpenAI (parent) — $40B Series I 2025-03 $300B val
Backend storagelocal CLAUDE.md + ~/.claude state + gitlocal ~/.codex/ + git
DeploymentBoth (self-hosted + managed cloud) — local CLI/IDE/desktop client plus cloud sessions on web; models via Anthropic API (or Bedrock/Vertex)Self-hosted only — local CLI (npm/Homebrew); model calls go to OpenAI via ChatGPT sign-in or API key
API surfaceCLI (Node.js); subagents; hooks; MCPCLI (Rust); MCP support
MCPyes — MCP client (claude mcp add; stdio and HTTP servers)yes — MCP client (mcp_servers in ~/.codex/config.toml); documented in Codex MCP docs
Optimised forAnthropic Claude as a long-running coding agent; MCP + skills + hooks composable surfaceOpenAI o-series + Codex model as long-running coding agent
Anti-fitAnthropic-only (no GPT, Gemini); terminal-only — no GUIOpenAI-model-only; CLI-only

At a glance

Claude Code (Anthropic)OpenAI Codex CLI
SectionAgent IDEs & coding harnesses Agent IDEs & coding harnesses
TierT1 T1
TypeTerminal-native agentic coding harness Terminal-native agentic coding harness (OpenAI)
Created2024-10 2025-04
Latest releasev2.1.310 (2026-10-23) v0.165.0 (2026-10-27)
Licenseproprietary — © Anthropic PBC, use subject to Anthropic Commercial Terms (repo public, not OSS) Apache-2.0
GitHubanthropics/claude-code — ~153k stars, last commit 2026-10 openai/codex — ~128k stars, last commit 2026-10
PricingNo free tier; included in Pro ($20/mo, $17 annual), Max (from $100/mo), Team ($25/seat/mo, $20 annual), Enterprise; or API pay-per-token via Console CLI free (Apache-2.0); usage via ChatGPT plans (Free/Go limited, Plus $20/mo, Pro $100–200/mo, Business $25/user/mo) or API-key per-token billing
FundingAnthropic (parent) — $65B Series H at $965B post-money (2026-05-28); S-1 filed for a proposed IPO (2026-10-26) OpenAI (parent) — $40B Series I 2025-03 $300B val
Backend storagelocal CLAUDE.md + ~/.claude state + git local ~/.codex/ + git
DeploymentBoth (self-hosted + managed cloud) — local CLI/IDE/desktop client plus cloud sessions on web; models via Anthropic API (or Bedrock/Vertex) Self-hosted only — local CLI (npm/Homebrew); model calls go to OpenAI via ChatGPT sign-in or API key
API surfaceCLI (Node.js); subagents; hooks; MCP CLI (Rust); MCP support
Multi-tenancyper-user (terminal-local) per-user (terminal-local)
MCPyes — MCP client (claude mcp add; stdio and HTTP servers) yes — MCP client (mcp_servers in ~/.codex/config.toml); documented in Codex MCP docs
A2Asearched not found searched not found
OpenTelemetrysearched not found searched not found
Optimised forAnthropic Claude as a long-running coding agent; MCP + skills + hooks composable surface OpenAI o-series + Codex model as long-running coding agent
Anti-fitAnthropic-only (no GPT, Gemini); terminal-only — no GUI OpenAI-model-only; CLI-only

Pros & cons

Claude Code (Anthropic)

Pros: Reference harness for Claude; richest extensibility surface in the field (subagents, skills, hooks, MCP) — the others copy it.

Cons: Anthropic-only model lock; CLI-first UX is a barrier vs IDE chat panes; pricing rides Anthropic API usage rather than seat tiers.

OpenAI Codex CLI

Pros: OSS Apache-2.0 means hackable by community; first-party OpenAI distribution + auto-routing to Codex / o-series.

Cons: OpenAI-only model lock; younger than Claude Code with less ecosystem (skills/hooks); naming collision with deprecated old Codex API and ChatGPT "Codex" cloud agent.

Rows last verified 2026-10-28 / 2026-10-29. Data is CC-BY-4.0 — see how to read this.