OpenAI Codex CLI · Command Reference
Every command, its core logic
made clear.
Verified against v0.160.0 · 2026-10-02
Install
$ curl -fsSL https://chatgpt.com/codex/install.sh | sh$ brew install --cask codex$ npm install -g @openai/codex