"auth_mode" in auth.json will change to "oauth" automically
Open 💬 0 comments Opened Jun 22, 2026 by cyk2018
What version of Codex CLI is running?
codex-cli 0.140.0
What subscription do you have?
chatgpt
Which model were you using?
_No response_
What platform is your computer?
Linux 6.8.0-124-generic x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
vscode
Codex doctor report
What issue are you seeing?
When I upgrade to this version and use codex-cli as usual, I found it often fails start with log: "unknown variant oauth, expected one of apikey, chatgpt, chatgptAuthTokens, agentIdentity, personalAccessToken, bedrockApiKey at line 2 column 22".
First I think this bug because of I use both codex-cli and vscode expandation, however I uninstall the expandation and it still change automatically, So I submit this issue.
What steps can reproduce the bug?
- use vscode bash and upgrade codex to the newest version
- login with auth-device
What is the expected behavior?
_No response_
Additional information
_No response_