Setup
-
Add the gateway as a provider in
~/.codex/config.toml:~/.codex/config.toml -
Set the key in your shell profile:
-
Open a new terminal and run
codex.
~/.codex/config.toml. A project’s .codex/config.toml can’t set them.
Choose models
Setmodel to an OpenAI model, or an alias that sends to one. You can also start Codex with codex -m <model>. The /model picker shows Codex’s built-in list, not your gateway’s models.

