OpenAI Codex CLI
VerifiedOpenAI's open-source agentic coding agent for the terminal
Released
2025-04
Country
United States
API
N/A
Self-Host
Yes
GitHub Stars
18,000
Last Reviewed
2025-06
About OpenAI Codex CLI
Our Verdict
A strong open-source CLI coding agent β Codex CLI brings OpenAI models to your terminal with flexible autonomy, ideal for developers who want control over cost and model choice.
Features
Detailed Ratings
Pros & Cons
Pros
- Open source
- Multiple autonomy levels
- Backed by OpenAI models
- No per-seat license
Cons
- CLI-only
- Requires OpenAI API spend
- Newer, less mature than rivals
Use Cases
Who Is It For?
Developers who want an open-source, terminal-native coding agent powered by OpenAI models with full control over autonomy and cost
Pricing Plans
Free (BYOK)
- Open-source CLI
- Bring your own OpenAI API key
- All autonomy modes
- Local execution
- Community support
Frequently Asked Questions
Is Codex CLI free?
Yes, Codex CLI is open source and free to use. You pay only for the underlying OpenAI API calls via your own API key.
Codex CLI vs Claude Code?
Both are terminal coding agents. Codex CLI is open-source and uses OpenAI models with configurable autonomy modes, while Claude Code uses Anthropic's Claude models and requires an Anthropic plan. Codex CLI gives more control over model cost.
Related Agents
Claude Code
Agentic coding tool by Anthropic for the terminal
Aider
AI pair programming in your terminal
Cline
Autonomous AI coding agent for VS Code
Commonly
Commonly - Connect and chat with others
Top Alternatives
Compare with these similar tools