Skip to content

Codex

Codex can use an OpenAI-compatible gateway. Configure the OpenAI base URL as UURoute and use your UURoute API key.

Terminal window
export UUROUTE_API_KEY="<UUROUTE_API_KEY>"
export OPENAI_BASE_URL="https://api.stag.uuroute.net/"
export OPENAI_API_KEY="$UUROUTE_API_KEY"

Use an OpenAI-compatible model available through UURoute:

Terminal window
codex --model gpt-5-codex

If you want Codex to proceed without additional prompts, use:

Terminal window
codex --model gpt-5-codex --full-auto

For a one-shot prompt:

Terminal window
codex --model gpt-5-codex "Review this repository and summarize the main risks."

Add the variables to your shell profile:

Terminal window
export UUROUTE_API_KEY="<UUROUTE_API_KEY>"
export OPENAI_BASE_URL="https://api.stag.uuroute.net/"
export OPENAI_API_KEY="$UUROUTE_API_KEY"

Restart your shell after updating the profile.

SymptomCheck
Authentication errorConfirm OPENAI_API_KEY is set to your UURoute API key.
Model not foundConfirm gpt-5-codex or your selected model is available in UURoute.
Requests use the default OpenAI endpointConfirm OPENAI_BASE_URL is exported before starting Codex.