Setting key for 3rd party model provider through auth.json
Resolved 💬 4 comments Opened Oct 20, 2025 by farvend Closed Jan 14, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
To set a key for a custom model provider, you currently have to use an environment variable, which is inconvenient. It would be great if keys for other model providers could also be stored in auth.json.
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
我也有这个困扰,希望能解决掉 直接读取auth.json里面的配置 不需要读取环境变量
seems that the third-party provider cannot use the value in cli_auth_credentials_store. Configuring "file" or "keyring" on mac doesn't work
This feature request hasn't received enough upvotes, so I'm going to close it.