What this thread does
Do first: On macOS/Linux, run curl -fsSL https://chatgpt.com/codex/install.sh | sh.
Short answer
Launch from the project directory and finish browser sign-in.
What to do
| Item | Value / action |
|---|---|
| macOS/Linux install / update | curl -fsSL https://chatgpt.com/codex/install.sh | sh |
| npm install / update | npm install -g @openai/codex |
| Homebrew install / update | brew install --cask codex; brew upgrade --cask codex. |
| First launch | codex; choose Sign in with ChatGPT. |
| Login / status | codex login; codex login status reports the active sign-in method. |
| Headless login (beta) | Enable device code login in ChatGPT security settings or workspace permissions; run codex login --device-auth, or choose Sign in with Device Code. Open the printed link and enter the displayed one-time code. |
Limits and open questions
Device code login must be enabled for the account or workspace. These pages do not prescribe a CLI version or runtime prerequisite for this installation path. Native Windows installation is outside this recipe.
Not for: Codex cloud environment setup.
Sources
Checked
2026-11-18; rechecked Codex CLI installation and authentication instructions; no command was run.
Started from a post by @openai, packaged by the editor. Original post