· Harness/ Head to head

Claude Code vs Codex CLI

Codex CLI is open source and Claude Code is not, so the question is whether you want source access and the option to fork, or would rather have a vendor accountable for it.

Claude Code

Anthropic's coding agent — terminal, IDE and SDK, with hooks, skills and MCP built in.

Proprietary · paid · hosted service only

Configure via .claude/settings.json; drop reusable procedures in .claude/skills/.

Codex CLI

OpenAI's terminal coding agent.

Open source · paid · hosted service only

· Side by side/ 3 of 6 differ
Claude CodeCodex CLI
LicenceProprietaryOpen source
Pricingpaidpaid
Self-hostableNoNo
LanguagesAny languageAny language
Installnpm install -g @anthropic-ai/claude-codenpm install -g @openai/codex
Keys requiredANTHROPIC_API_KEYOPENAI_API_KEY
· Common questions/ FAQ

What is the difference between Claude Code and Codex CLI?

Codex CLI is open source and Claude Code is not, so the question is whether you want source access and the option to fork, or would rather have a vendor accountable for it. Claude Code: Anthropic's coding agent — terminal, IDE and SDK, with hooks, skills and MCP built in. Codex CLI: OpenAI's terminal coding agent.

Can Claude Code and Codex CLI be self-hosted?

Claude Code is a hosted service only. Codex CLI is a hosted service only.

Are Claude Code and Codex CLI open source?

Claude Code is proprietary (paid). Codex CLI is open source (paid).

Build a stack with Claude CodeAll harness options
· For agents/ This page, machine-readable

Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.

curl -s -H "Accept: text/markdown" https://newagent.build/compare/claude-code-vs-codex-cli