Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Codex CLI

Codex CLI is OpenAI’s command-line coding assistant.

Features

  • Full Automation — Executes code autonomously
  • 272K Context — Extended context window
  • GPT-5.2-Codex — OpenAI’s latest coding model

Models

ModelBest For
GPT-5.2-CodexCode generation, analysis, and execution

Automation Mode

Codex runs in full automation mode, executing actions without confirmation prompts.

Tools Available

Similar capabilities to Claude Code:

  • File reading and writing
  • Shell command execution
  • Code search and analysis

Installation

Follow the official installation guide.

Configuration

Ensure Codex is in your PATH, or configure the path:

[tools]
codex = "/path/to/codex"