OpenAI's agentic coding CLI โ a software engineer in your terminal that writes, runs, and tests code on your behalf.
Codex CLI is OpenAI's take on the agentic coding assistant โ and it runs in your terminal. Point it at a repo, tell it what to build or fix, and it proposes a diff, runs it in a sandboxed environment, executes tests, and shows you the result. It's open-source, so you bring your own OpenAI API key.
Who it's for: Engineers who want an autonomous coding agent they can run locally and review, without leaving the terminal.
Codex plans, edits, and verifies multi-file changes, running builds and tests in a sandbox before it reports back.
No IDE plugin required. Works anywhere you have a terminal and an API key.
The CLI is open-source under Apache 2.0 โ audit it, self-host it, extend it.
Paste a screenshot of a UI bug or a design spec and Codex works from it.
Codex CLI is the most 'agentic' of OpenAI's coding tools and a great fit if you want autonomy in the terminal. Pair it with Cursor or Windsurf for a complete setup โ use Codex for big autonomous refactors, your editor for everyday edits.