Codex CLI with idapt
A TOML provider block with command-based auth points Codex at idapt and pulls the live model catalog.
- 1
Install
bashnpm i -g @openai/codex - 2
Point it at idapt
toml# ~/.codex/config.toml model_provider = "idapt" model = "openai/gpt-5.6-luna" model_reasoning_effort = "high" [model_providers.idapt] name = "idapt" base_url = "https://idapt.app/api/openai/v1" wire_api = "chat" [model_providers.idapt.auth] command = "sh" args = ["-c", "echo $IDAPT_API_KEY"]Command-based auth also triggers the model-catalog refresh, so non-OpenAI ids get real metadata instead of the Unknown model fallback. Windows: use command = "powershell" with Write-Output $env:IDAPT_API_KEY. model_reasoning_effort takes low, medium, high, xhigh, or max.
GOOD TO KNOW
API keys and scopesOpenAI-compatible API referenceOpenRouter-compatible API referenceRate limits and errors