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_

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #5144
  • #4484
  • #4278
  • #4558
  • #5212

Powered by Codex Action

RoterLong · 10 months ago

我也有这个困扰,希望能解决掉 直接读取auth.json里面的配置 不需要读取环境变量

optionals · 9 months ago

seems that the third-party provider cannot use the value in cli_auth_credentials_store. Configuring "file" or "keyring" on mac doesn't work

etraut-openai contributor · 7 months ago

This feature request hasn't received enough upvotes, so I'm going to close it.