1. Write config.toml
File location: ~/.codex/config.toml. base_url must stop at /api/v1; Codex calls /responses per wire_api = "responses". env_key points to an environment variable name — never put the real key in the TOML, and do not add requires_openai_auth = true: with it Codex ignores env_key and demands official OpenAI login instead.
model_provider = "aireiter"
model = "gpt-5.6-luna"
model_reasoning_effort = "high"
disable_response_storage = true
[model_providers.aireiter]
name = "AIReiter"
base_url = "https://aireiter.com/api/v1"
wire_api = "responses"
env_key = "AIREITER_API_KEY"