The command `codex --yolo -m gpt-5.1-codex-max` unable to use gpt-5.1-codex-max model.
Resolved 💬 3 comments Opened Nov 20, 2025 by doggy8088 Closed Nov 21, 2025
💡 Likely answer: A maintainer (lionel-oai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.61.0
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5.1-codex-max
What platform is your computer?
Windows
What issue are you seeing?
I can't use the model.
unexpected status 400 Bad Request: {
"error": {
"message": "The requested model 'gpt-5.1-codex-max' does not exist.",
"type": "invalid_request_error",
"param": "model",
"code": "model_not_found"
}
What steps can reproduce the bug?
Uploaded thread: 019aa288-e230-7441-943d-109dbe675f0d
What is the expected behavior?
I expected to use this model.
Additional information
_No response_
3 Comments
Hi @doggy8088 just tried on a sample repository with the same cli version and it worked:
https://github.com/user-attachments/assets/f1db5ef0-c46f-4d5f-8421-2543dc9d085a
Could you share your
config.toml? It might be that you have switched to an API key usage and the model is not yet available in the APIYep.. You can use it in the CLI if you use your subscription. But not using the API.
<img width="665" height="96" alt="Image" src="https://github.com/user-attachments/assets/80868e4a-4afb-4a35-ae54-f5c07344c0c3" />
It works now after I
codex loginagain.