Not able to login into and use codex link to

Resolved 💬 2 comments Opened Dec 10, 2025 by ddaunay Closed Dec 10, 2025

NOT A BUG ( configuration issue) found solution from:
https://github.com/openai/codex/blob/main/docs/config.md#azure-model-provider-example

____________________________________________________________________________________

What version of Codex is running?

v 0.66.0

What subscription do you have?

AZURE_OPENAI

Which model were you using?

gpt-5.1-codex-mini medium but any model has the same bahavior

What platform is your computer?

MAC OSX : Sequoia 15.7.2

What issue are you seeing?

I am not able to use Codex anymore, it was working fine before, but suddenly it gave me this error :

<img width="1546" height="347" alt="Image" src="https://github.com/user-attachments/assets/f339a8ad-a741-4adb-839d-eef9b6601726" />

The only change I am thinking of is about a change in my Sudo environment

What steps can reproduce the bug?

1) Login into Codex
2) Insert any command
Noticed the error message

<img width="1546" height="347" alt="Image" src="https://github.com/user-attachments/assets/bf923613-aa3d-4e61-8a8a-36f15c968d21" />

What is the expected behavior?

Using Codex ...

Additional information

I try the CLI command sudo codex --config preferred_auth_method='AZURE_OPENAI_API_KEY'
but same behavior, I also tried export AZURE_OPENAI_API_KEY="env_key" and/ or AZURE_OPENAI_API_KEY="AZURE_OPENAI_API_KEY" but same behavior

Note : thread ID 019b076d-e3c8-76e2-b52a-2650de58d954

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗