New-Item -ItemType Directory -Force "$env:USERPROFILE\.codex" | Out-Null%USERPROFILE%\.codex\config.toml. Merge these settings with any existing configuration:model_provider = "anyroute"
model = "gpt-5.6-sol"
model_reasoning_effort = "high"
[model_providers.anyroute]
name = "AnyRoute"
base_url = "https://cc.anyroute.io"
env_key = "OPENAI_API_KEY"
wire_api = "responses"[System.Environment]::SetEnvironmentVariable(
"OPENAI_API_KEY",
"YOUR_API_KEY",
[System.EnvironmentVariableTarget]::User
)~/.codexconfig.toml, authentication data, history, logs, and caches.Never copy or share ~/.codex/auth.json. It can contain official sign-in tokens and must be treated as a secret.
https://cc.anyroute.ioconfig.toml and the model catalog.