If you encounter API_KEY_REQUIRED / 401 Unauthorized after updating, it is because the new version no longer allows custom providers to automatically inherit authentication from auth.json when requires_openai_auth=false.
Please modify your configuration file:
* macOS: ~/.codex/config.toml
* Windows: %USERPROFILE%\.codex\config.toml
Ensure your configuration is set to:
model_provider = "codex"
model = "gpt-5.6-sol"
[model_providers.codex]
name = "codex"
base_url = "https://api.metartr.com/v1"
wire_api = "responses"
requires_openai_auth = true
supports_websockets = false
And retain auth.json:
{
"OPENAI_API_KEY": "YOUR_METARTR_API_KEY"
}Save and restart Codex. You can also re-run the latest install script to apply the fix automatically.
Note: Do not rely on auth.json while keeping requires_openai_auth=false; this is the root cause of the 401 error in 0.149.0.