Get Codex running on your machine, from the official source.

Pick your system to see OpenAI's own install commands and download pages. We don't host files. We explain the steps, the errors, and what changed in each release.

Commands checked against OpenAI's Codex docs on . Latest release we saw: Codex CLI 0.162.1.

macOS

Codex CLI, official installer

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

Or with Homebrew

 brew install --cask codex

Prefer an app? Codex is built into the ChatGPT desktop app. macOS details

Windows

Codex CLI, official installer (new PowerShell window)

 powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

Desktop app from the Microsoft Store, via winget

 winget install --id 9PLM9XGG6VKS -s msstore

Or open the Microsoft Store listing. Windows details

Linux

Codex CLI, official installer

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

Or with npm

 npm install -g @openai/codex

The desktop app for Linux is in preview for Ubuntu, Debian, Fedora, and Arch. Linux packages and details

Every command above fetches from chatgpt.com, npm, or Homebrew. Not sure which build fits your computer? Run the system check.

Where are you right now?

Common errors and fixes

All error fixes

Free tools

Release alerts

One short email when a new Codex release changes something you'd notice: what changed, what might break, and whether to update now.

Get release alerts

Why this site has no download button of its own

A file from an unofficial mirror can be modified, outdated, or bundled with something you didn't ask for. So we never host, mirror, or repackage Codex. Every download link here goes to OpenAI, the official GitHub repository, npm, Homebrew, or the Microsoft Store, and each one says where it leads before you click.

Read our full policy, or learn how to check you have the real Codex.