Claude Code vs OpenAI Codex CLI

Claude Code and OpenAI Codex CLI are both AI coding agents that work from your terminal: you describe a change, and the agent reads your code, edits files and runs commands. Here's how they differ on the basics.

Claude CodeOpenAI Codex CLI
Made byAnthropicOpenAI
Open sourceNoYes (github.com/openai/codex)
Pricing label in our directoryPaidOpen source. Per its README, you use it with a ChatGPT plan or an OpenAI API key.
Where it runsTerminalTerminal
Official linkanthropic.com/claude-codegithub.com/openai/codex

When each one fits

Things to check on the official sites

Current pricing and plan limits, supported operating systems, and data and privacy terms for your code. Both tools change quickly, and we link to the source rather than repeating details that go stale.

Other terminal agents

Aider (open source, git-aware) · Gemini CLI (Google, open source) · Codex CLI vs Every Code · Claude Code vs Gemini CLI · All terminal agents compared · More comparisons

This comparison isn't sponsored.