Check that you have the real Codex

Your Codex install is genuine if it came from an official source: OpenAI's chatgpt.com installers, the openai/codex GitHub releases, the @openai/codex npm package, the Homebrew codex cask, the Microsoft Store, or OpenAI's Linux packages. Then check which binary runs with 'which codex' or 'where codex', and confirm the version with 'codex --version'.

1. Check where it came from

Write down how you installed Codex. These are the sources OpenAI documents:

Install methodWhere files come from
install.sh / install.ps1 from chatgpt.com/codex/releases.openai.com/codex, falling back to GitHub Releases
npm install -g @openai/codexThe @openai/codex package on npm
brew install --cask codexThe Homebrew codex cask
Manual binarygithub.com/openai/codex/releases
Desktop appchatgpt.com/download, the Microsoft Store, or OpenAI’s Linux packages

If you can’t place your install in this table, uninstall it and reinstall from one of these sources.

2. Check which binary actually runs

You might have more than one copy installed, for example one from npm and one from Homebrew. See which one your shell runs:

# macOS / Linux
which -a codex
# Windows
where.exe codex

The path should match your install method. For example, a Homebrew path for brew, or your npm global prefix for npm.

3. Check the version

codex --version

Compare it with the latest release on GitHub or with our release tracker. Being a release or two behind is normal. A version that doesn’t exist on GitHub at all is a red flag.

For the copy bundled inside the macOS desktop app, OpenAI’s troubleshooting page gives this path:

/Applications/Codex.app/Contents/Resources/codex --version

4. Check where sign-in goes

When you sign in, Codex opens your browser to ChatGPT. If a “Codex” program asks you to type your OpenAI password into its own window, or asks for your API key in a web form that isn’t on platform.openai.com, stop. Treat your ~/.codex/auth.json file like a password. It contains access tokens.

What about checksums?

GitHub Releases for openai/codex list the assets for each version. If you download a binary by hand, take it only from that page and over HTTPS. We’ll add a step-by-step checksum walkthrough here once we’ve tested it end to end. We won’t publish hashes ourselves, because a copied hash is only as trustworthy as the page it’s copied from.

Questions people ask

Someone sent me a Codex installer as a zip or .exe. Is it safe?

Don't run it. OpenAI's documented install paths are shell or PowerShell installers fetched from chatgpt.com, package managers, GitHub Releases, the Microsoft Store, and its own Linux packages. Delete the file and install from one of those sources instead.

Why do my CLI and desktop app show different Codex versions?

OpenAI notes the desktop app and the CLI can bundle different Codex versions, so a feature may reach one before the other. That is expected and not a sign of a fake install.

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.