One command covers OpenAI's ChatGPT desktop app and the Codex CLI — both read the same settings file. The AI Reserve CLI signs you in through your browser, connects every coding agent on the machine, and keeps Codex on short-lived tokens instead of a key sitting in a config file.
ChatGPT desktop app
The everyday choice. Download it from OpenAI, open it once, and come back here.
Either one creates the .codex settings folder the next step updates. Already installed? Skip ahead — your existing settings are kept.
curl -fsSL https://get.aireserve.com/install.sh | sh
Your browser opens to approve — no key to copy. Undo anytime: aireserve unconfigure.
AIRESERVE-CLI-KEY) — revoke it in your API keys any time. Usage bills to your organization's AI Reserve wallet.~/.codex/config.toml that authenticates with a command, not a pasted key: each time Codex or the ChatGPT app starts, the helper exchanges the machine's key for a gateway session token that expires within the hour. The key itself never sits in config.toml, and anything that captures a request header holds a credential that is already worthless.codex exec --skip-git-repo-check "Reply with exactly: PONG"
Should print PONG, served through the AI Reserve gateway.
Escape hatches
codex --profile original runs one session on the setup that existed before the CLI touched anything. aireserve unconfigure restores every value the CLI changed, deletes the machine's key file, and revokes its live session tokens.
Can't install the CLI on this machine? Create a personal API key from your API Keys page and choose Configure Codex in the setup that appears. It exports the key as AIRESERVE_API_KEY in your shell profile and points config.toml at AI Reserve with env_key, so the key still never lands in the config file.
Trade-offs: the key is long-lived (rotate it from the API Keys page), Codex only shows the model you pinned in its picker, and GUI launches that skip your shell profile need the variable set another way. The developer docs carry the same snippet with the details.
New to all this? The plain-language walkthrough lives at Getting Started with ChatGPT Work. Trouble connecting? Ask your administrator to confirm your account is active, or see the Codex developer docs.