Sign up or log in
Click “Get my installer”. If you are not logged in you will be taken to sign-up first, then brought back here; the source tag in your link is kept.
Download an installer with your API key already embedded and double-click it: it installs the Codex desktop app, writes the ~/.codex/config.toml shared with the CLI, and backs up before overwriting. Then open the app. Pay as you go, balance never expires.
Sign up or log in first — you will be brought back to the install step automatically. Already have an account? Log in
The installer is generated for your account and contains one API key. Do not share it.
Click “Get my installer”. If you are not logged in you will be taken to sign-up first, then brought back here; the source tag in your link is kept.
You get PrimeRouter-CodexDesktop-Installer.zip. Unzip it and double-click PrimeRouter-CodexDesktop-Installer.command. It downloads the DMG from the PrimeRouter mirror, installs it, then writes the config.
You get PrimeRouter-CodexDesktop-Installer.bat. Double-click it: it installs the desktop app from the Microsoft Store (winget) and writes the config.
Codex Desktop has no official Linux build yet — use Codex CLI on Linux. Codex CLI install page →
On macOS the current package may show up as ChatGPT.app (the bundle id is still Codex); the script prints the actual path when it finishes. Open it and go; if it asks you to sign in or the model list looks wrong, check the troubleshooting page first.
No web login needed: the script asks for your API key interactively and never writes it into the command or your shell history.
curl -fsSL https://primerouter.ai/install/codex-desktop.sh | bash
irm https://primerouter.ai/install/codex-desktop.ps1 | iex
Codex Desktop has no official Linux build yet — use Codex CLI on Linux. Codex CLI install page →
What it does: on macOS, downloads the DMG from the PrimeRouter mirror (falling back to the official URL) and installs it into Applications → asks for your API key → backs up and writes ~/.codex/config.toml and auth.json. On Windows the script installs the desktop app from the Microsoft Store (winget) and writes the config.
Script source: codex-desktop.sh · codex-desktop.ps1
No key yet? Create one on the API keys page.
Top up what you need — no subscription, no monthly reset.
Local payment methods, or USDT / USDC on multiple chains.
Requests bill against the service's procurement quota, fully isolated from any account you hold with OpenAI.
The same key also works with Claude Code, Gemini CLI, Cursor and any OpenAI- or Anthropic-protocol client.
~/.codex/auth.json), so the PrimeRouter key replaces the ChatGPT login. The original is backed up as auth.json.bak.<timestamp>; run codex login to switch back any time. Troubleshooting page →codex resume keeps listing your old sessions; no file is touched. Troubleshooting page →codex login (which replaced the key), or the key was deleted or disabled in the console. Re-run the installer to restore it, or write it back by hand: printf '%s' "sk-your-key" | codex login --with-api-key. Troubleshooting page →config.toml is not enabled for your group. The installer picks an available default model for your group, so re-running it is enough; or check the console models page and edit model = "…" yourself (keep it above [model_providers]). Troubleshooting page →~/.codex/config.toml, so one setup serves both. If you only want the command line, use the Codex CLI install page. Codex CLI install page →One API key that also works with Claude Code, Gemini CLI and every OpenAI- or Anthropic-protocol client.