Codex CLI vs Claude Code
Codex CLI is listed under CLI agents, Claude Code under CLI agents. Shared focus: terminal. Each name links to the product's own site.
| Category | CLI agents | CLI agents |
|---|---|---|
| Pricing | Open source | Paid |
| Public code | Yes | Yes |
| Tags | terminal, openai, open-source, sandbox | terminal, anthropic, mcp, subagents |
| Website | github.com | anthropic.com |
What Codex CLI does
Open source coding agent from OpenAI that runs in your terminal. It reads and edits files in the chosen directory and runs commands. Approval modes control what it may do without asking.
What Claude Code does
Terminal-based coding agent from Anthropic. It reads your codebase, edits files, runs commands and works with git. It also runs in IDEs and supports MCP servers, hooks and subagents.
Other options
See all CLI agents, or alternatives to Codex CLI and Claude Code.