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.