What it is
Codex CLI is OpenAI's open-source terminal coding agent, published as the openai/codex GitHub repository under an Apache-2.0 licence. It runs on the developer's own machine, reading a local repository, proposing edits, and executing shell commands on request, rather than working through a chat window in a browser.
Interface and dependencies
Install it with the official curl (Mac/Linux) or PowerShell (Windows) script, via npm install -g @openai/codex, through a Homebrew cask, or by downloading a binary from GitHub Releases. It runs natively on macOS (Apple Silicon and Intel), Linux (x86_64/arm64) and Windows. To do any work it needs either a ChatGPT account on a Plus, Pro, Business, Edu or Enterprise plan, or an OpenAI API key billed per token; there's no way to run it against OpenAI's models for free indefinitely, since the free ChatGPT tier is rate-limited. OpenAI's docs list GPT-6 Sol and GPT-6 Luna as the current models behind it, alongside sandbox and approval-policy settings that control what commands it can run without asking first.
Where it fits
It's aimed at developers who want an agent operating directly on their filesystem and shell — writing patches, running tests, or working through a defined task list — rather than copying code in and out of a chat UI. The same underlying service also ships as an IDE extension, a cloud environment and a desktop app, and connects to GitHub, GitLab (beta), Slack, Linear and MCP servers, but the CLI is the locally-run entry point aimed at terminal-based workflows.