Set up Codex on Mac

Codex CLI signed in with project instructions and safe sandbox defaults.

Developer tools · 5-10 min · Updated 2026-05-15

First win

Codex prints its version and login status.

Best for

Codex starters

Needs

Mac, ChatGPT or API access, Node or Homebrew

Example outcome

Codex is installed, signed in, and ready.

The useful setup outcome is a clear terminal receipt: Codex responds, auth is verified, and the next task can start in a real repo.