Download Codex for macOS

On a Mac, install the Codex CLI by running the official installer with curl -fsSL https://chatgpt.com/codex/install.sh | sh, or with brew install --cask codex. For a desktop app, download the ChatGPT desktop app from chatgpt.com/download and choose Codex inside it. Both are free to install. Using them requires a ChatGPT sign-in or an API key.

Applies to: macOS, Codex CLI, ChatGPT desktop app

Option 1: Codex CLI with the official installer

Open Terminal and run:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Run the same command again later to update. Then start Codex from a project folder:

cd path/to/your/project
codex

The first time, choose Sign in with ChatGPT. A browser window opens to finish the sign-in.

Option 2: Codex CLI with Homebrew

brew install --cask codex

Update with brew upgrade --cask codex.

Option 3: The ChatGPT desktop app, with Codex inside

OpenAI’s docs now describe the desktop experience as the ChatGPT desktop app. You choose Codex from the mode menu for software work.

  1. Download it from chatgpt.com/download.
  2. Open the app and sign in.
  3. Add a project folder, then choose Codex and start a new chat.

If you already have the CLI installed, the README notes that codex app opens the desktop app experience too.

Apple Silicon or Intel?

Click the Apple menu, then About This Mac. “Chip: Apple M…” means Apple Silicon. “Processor: Intel…” means Intel. In Terminal, uname -m prints arm64 for Apple Silicon or x86_64 for Intel.

The CLI installers pick the right build automatically. If you download a binary by hand from GitHub Releases, choose codex-aarch64-apple-darwin.tar.gz for Apple Silicon or codex-x86_64-apple-darwin.tar.gz for Intel. Then rename the extracted file to codex.

Requirements for the CLI

RequirementDetail
macOS12 or later
Memory4 GB minimum, 8 GB recommended
GitOptional. 2.23 or later recommended for built-in PR helpers
AccountChatGPT plan with Codex access, or an OpenAI API key

Questions people ask

Does Codex work on Intel Macs?

The Codex CLI does. OpenAI publishes a separate x86_64 macOS build alongside the Apple Silicon one on GitHub Releases. For the desktop app, check the requirements on chatgpt.com/download before installing, because desktop app hardware support can differ from the CLI.

Which macOS version do I need for the CLI?

The system requirements page in the openai/codex repository lists macOS 12 or later, 4 GB of RAM minimum (8 GB recommended), and optionally Git 2.23 or later.

Sources

We link to the official source for every instruction on this page. If anything here disagrees with them, trust the official source and tell us.