Skip to content

Codex CLI

Source URL: https://developers.openai.com/codex/cli

Codex CLI is OpenAI’s coding agent that you can run locally from your terminal. It can read, change, and run code on your machine in the selected directory. It’s open source and built in Rust for speed and efficiency.

Codex is included with ChatGPT Plus, Pro, Business, Edu, and Enterprise plans. Learn more about what’s included.

The Codex CLI is available on macOS and Linux. Windows support is experimental. For the best Windows experience, use Codex in a WSL workspace and follow our Windows setup guide.


Run codex to start an interactive terminal UI (TUI) session.

Use /model to switch between GPT-5.3-Codex and other available models, or adjust reasoning levels.

Attach screenshots or design specs so Codex reads them alongside your prompt.

Get your code reviewed by a separate Codex agent before you commit or push your changes.

Enable experimental multi-agent collaboration and parallelize complex tasks.

Use Codex to search the web and get up-to-date information for your task.

Launch a Codex Cloud task, choose environments, and apply the resulting diffs without leaving your terminal.

Automate repeatable workflows by scripting Codex with the exec command.

Give Codex access to additional third-party tools and context with Model Context Protocol (MCP).

Choose the approval mode that matches your comfort level before Codex edits or runs commands.