inf codex routes Codex through https://api.inference.net/v1 using the OpenAI Responses surface. Codex resolves provider credentials through an env var name, so the key lives in $CODEX_HOME/.env, not inline in the config.
Config files
inf writes fields in ~/.codex/config.toml (TOML) and $CODEX_HOME/.env. Both honor CODEX_HOME. inf owns fields in both files, not the whole files.
inf codex on
See Model mapping for supported aliases and limits.
What gets written
TOML owned fields inconfig.toml:
.env owned line:
inf codex status
inf codex off
off restores unchanged owned fields. It keeps fields that you edited after on.
Examples
Select the Fast-tier alias:on or off. See Troubleshooting for drift, recovery, and key revocation.