CLI Installation & Authentication in AI

From the OpenAI Codex cheat sheet ยท Installation & Setup ยท verified Jul 2026

CLI Installation & Authentication

Install with the standalone installer, verify the CLI, and sign in.

bash
# Standalone installer: macOS and Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh

# Standalone installer: Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

# Verify the installed release
codex --version

# Start Codex and choose Sign in with ChatGPT
codex
๐ŸŸข The official quickstart leads with the standalone installers
โšก Rerun the standalone installer to update Codex
๐Ÿ“Œ npm and Homebrew remain supported alternatives
๐Ÿ” Run codex and choose Sign in with ChatGPT on first launch
installationauthenticationclistandalone

Continue with OpenAI Codex

Save the full cheat sheet or work through every related task.

More AI tasks

Back to the full OpenAI Codex cheat sheet