PR #20098 breaks project configs for model_providers
What version of Codex CLI is running?
codex-cli 0.130.0
What subscription do you have?
API & Pro
Which model were you using?
5.4
What platform is your computer?
Linux 6.6.114.1-microsoft-standard-WSL2 x86_64 x86_64 (Using WSL)
What terminal emulator and version are you using (if applicable)?
Windows Terminal
What issue are you seeing?
⚠ Ignored unsupported project-local config keys in /home/.../.../.../{repo}/.codex/config.toml: model_provider, model_providers. If you want these settings to apply, manually set them in your user-level config.toml.
Caused by PR: https://github.com/openai/codex/pull/20098
What steps can reproduce the bug?
Run codex within a repo with local .codex/config.toml setup.
What is the expected behavior?
To use repo specific LiteLLM model, but instead it errors and then falls back to default openai route
Additional information
This affects many local repo configurations. These should remain as a project configuration -- especially for people who work at multiple companies and use multiple configurations. At a bare minimum, we should be able to specify what provider to use in the project otherwise, this configuration is useless and should be removed from the documentation.
6 Comments
Wow Issue #22222 -- nice.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
A working fix: https://github.com/Austinhs/codex/commit/49c4a01ec3f8d9763f13ef35d3f58f812f6491fc
Mentioning the contributors to PR #20098 to provide context on why this should be excluded.
@owenlin0 @bolinfest
Related issues open from a quick scan #22205 , #21769 , also seeing many issues open that are showing model_providers likely in repo-specific configurations, I imagine those people are experiencing issues as well with latest update
Confirmed on plain Codex CLI on Windows with Azure OpenAI custom providers.
In my case this affects repo-local
profile/profilesas well asmodel_provider/model_providers.Environment
codex-cli 0.130.0Microsoft Windows NT 10.0.26100.0 x64PowerShell 7.6.0in the VS Code integrated terminalAZURE_OPENAI_API_KEYRepro
.codex/config.tomllike this:AZURE_OPENAI_API_KEYto a valid Azure OpenAI key and run:Actual behavior
https://api.openai.com/v1/responsesinstead of the configured Azure base URL.codex -p azure-gpt54 ....Expected behavior
.codex/config.tomlshould be able to control provider selection for that repo.Additional note
-p azure-gpt54.