You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex cli 0.99 uses the default model instead of the one specified in the config.toml #11592
What terminal emulator and version are you using (if applicable)?
No response
What issue are you seeing?
Looks like the codex cli is defaulting to gpt-5 model instead of the specified gpt-5-mini in the config.toml below
sandbox_mode = "workspace-write"
approval_policy = "on-failure"
model = "gpt-5-mini" # Replace with your actual model deployment name
model_provider = "azure"
model_reasoning_effort = "medium"
[model_providers.azure]
name = "Azure OpenAI"
base_url = "http://<custom Azure URL>"
env_key = "OPENAI_API_KEY"
wire_api = "responses"
■ unexpected status 401 Unauthorized: key not allowed to access model. This key
can only access models=['gpt-5-mini']. Tried to access gpt-5, url: https:///responses
What steps can reproduce the bug?
npm i -g !openai/codex@0.99
setup config.toml to use anything other than OPenAI and start codex and ask it a question,
If you're using an Azure endpoint, gpt-5.3-codex is not yet available. We're working with our partners to enable it.
@sameetn, it looks like your issue doesn't involve gpt-5.3-codex. Please use the /feedback slash command to upload your logs and post the thread ID here. That will help me diagnose the issue. You mentioned that you're seeing the problem with 0.99. Does that mean that if you downgrade to 0.98, the problem goes away? I'm trying to determine if this was a client-side regression.
I'm going to close this because we don't have enough information to diagnose. @sameetn, if you can provide answers to the above questions, I can take a closer look.
Activity
github-actions commentedon Feb 12, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
gpt-5.3-codexin Codex shows response.model =gpt-5.2-2025-12-11#10953Powered by Codex Action
picanismajoris commentedon Feb 12, 2026
Please fix, I verified on cyber link, it came back to codex 5.3 for a day then today again back to 5.2
kendonB commentedon Feb 12, 2026
Behaviour I'm seeing is the toml default is 5.3 codex xhigh and 5.3 codex high is what is there as the first default
etraut-openai commentedon Feb 12, 2026
If you're using an Azure endpoint,
gpt-5.3-codexis not yet available. We're working with our partners to enable it.@sameetn, it looks like your issue doesn't involve
gpt-5.3-codex. Please use the/feedbackslash command to upload your logs and post the thread ID here. That will help me diagnose the issue. You mentioned that you're seeing the problem with 0.99. Does that mean that if you downgrade to 0.98, the problem goes away? I'm trying to determine if this was a client-side regression.etraut-openai commentedon Feb 14, 2026
I'm going to close this because we don't have enough information to diagnose. @sameetn, if you can provide answers to the above questions, I can take a closer look.
sameetn commentedon Feb 14, 2026
Yes…when I download to 0.98 the problem went away. So definitely something with the upgrade.
etraut-openai commentedon Feb 14, 2026
OK, thanks for the info. Reopening.