Pick the version you need
| You want | Get this | Official source |
|---|---|---|
| Codex in your terminal | Codex CLI | Codex CLI docs |
| A desktop app with projects, a review pane, and a built-in terminal | ChatGPT desktop app, then choose Codex | Download ChatGPT |
| Codex inside VS Code, Cursor, or Windsurf | Codex IDE extension | VS Code Marketplace listing |
| Codex inside JetBrains IDEs or Xcode | The IDE’s own Codex integration | Codex IDE docs |
| Codex running tasks in the cloud | Codex Web (no download) | chatgpt.com/codex |
If you’re not sure, start with the CLI. It is the smallest install and works the same way on every operating system. You can add the app or the editor extension later. They share the same configuration and sign-in cache. See Install Codex for a side-by-side comparison.
Download by operating system
- macOS: CLI via the official installer or Homebrew, plus the ChatGPT desktop app.
- Windows: CLI via the official PowerShell installer, plus the desktop app from the Microsoft Store.
- Linux: CLI via the official installer or npm, plus the desktop app preview packages for Ubuntu, Debian, Fedora, and Arch.
The official places Codex comes from
These are the only sources we link to for Codex files:
chatgpt.com/codex/install.shandchatgpt.com/codex/install.ps1. These are the official standalone CLI installers. The README says they download fromreleases.openai.com/codexand fall back to GitHub Releases.- The openai/codex GitHub releases page, which has prebuilt CLI binaries.
- The
@openai/codexpackage on npm. - The
codexcask on Homebrew. - chatgpt.com/download and the Microsoft Store listing for the desktop app.
- OpenAI’s Linux package links on
persistent.oaistatic.com, published in the Linux app docs.
If a site offers a “Codex.exe” or “Codex.dmg” from anywhere else, don’t run it. Here’s how to check what you have.
“CODEX” is also the name of an unrelated group known for distributing cracked games. This site is only about OpenAI’s coding agent, and we don’t link to or discuss pirated software.