OpenAI's open-source terminal coding agent, powered by GPT-5 and the codex-* model family with full MCP support.
OpenAI's open-source terminal coding agent, powered by GPT-5 and the codex-* model family with full MCP support.
OpenAI's Codex CLI is the open-source terminal-native counterpart to ChatGPT Codex — the same coding-tuned GPT-5 family, but running in your local shell with full file, git, and tool access. Codex CLI is written in Rust, ships as a single binary, and can operate in three modes: interactive (you approve each command), auto-edit (it applies file changes but stops before running shell commands), and full-auto (headless, sandboxed via sandbox-exec on macOS or landlock on Linux). Because it is genuinely open source (Apache 2.0), teams can vendor it, audit it, and swap the model backend for any OpenAI-compatible endpoint, including Azure OpenAI or self-hosted vLLM.
The 2026 releases turned Codex CLI into a first-class MCP client. You register MCP servers in ~/.codex/config.toml, and the agent can call them alongside its built-in file, shell, and web tools. It also supports session resumption, structured planning, and background sub-agents that fan out work across the repo. Pricing lives in your OpenAI or ChatGPT subscription rather than a Codex-specific SKU: ChatGPT Plus, Pro, Business, and Enterprise all include a monthly Codex usage allowance, and API users pay the standard per-token GPT-5 rate. It is the natural pick if you already live in the OpenAI ecosystem and want an OSS alternative to Cursor or Claude Code without giving up frontier model access.
Was this helpful?
Feature information is available on the official website.
View Features →Free
$20/month
$200/month
GPT-5 token rates
Ready to get started with OpenAI Codex CLI?
View Pricing Options →Weekly insights on the latest AI tools, features, and trends delivered to your inbox.
No reviews yet. Be the first to share your experience!
Get started with OpenAI Codex CLI and see if it's the right fit for your needs.
Get Started →Take our 60-second quiz to get personalized tool recommendations
Find Your Perfect AI Stack →Explore 20 ready-to-deploy AI agent templates for sales, support, dev, research, and operations.
Browse Agent Templates →