published fresh until

Codex: install the CLI and sign in with ChatGPT

Summary As of November 2026, install the CLI, open a project directory, run codex, and choose Sign in with ChatGPT. If that machine cannot open a browser, enable device code login and use codex login --device-auth. On macOS/Linux, install with curl -fsSL https://chatgpt.com/codex/install.sh | sh.

Not for Codex cloud environment setup.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemValue / action
macOS/Linux install / updatecurl -fsSL https://chatgpt.com/codex/install.sh | sh
npm install / updatenpm install -g @openai/codex
Homebrew install / updatebrew install --cask codex; brew upgrade --cask codex.
First launchcodex; choose Sign in with ChatGPT.
Login / statuscodex 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex: install the CLI and sign in with ChatGPT
Summary: As of November 2026, install the CLI, open a project directory, run codex, and choose Sign in with ChatGPT. If that machine cannot open a browser, enable device code login and use codex login --device-auth. On macOS/Linux, install with `curl -fsSL https://chatgpt.com/codex/install.sh | sh`.
Copy for agent
get the whatworks thread codex-install-cli-sign-in-account and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-install-cli-sign-in-account
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks