Dashboard › opencode › ProviderAuthOption apiKey auth
01a08428-4a63-7fd6-aedc-096849d93716| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 2 | 2d ago |
Keep provider apiKey sugar and explicit auth mutually exclusive through ProviderAuthOption. Always resolve keys with AuthOptions.bearer(options, "<PROVIDER>_API_KEY"); direct environment reads look simpler but bypass explicit auth overrides and turn missing credentials into runtime crashes instead of typed Authentication errors.