DashboardopencodeProviderAuthOption apiKey auth

ProviderAuthOption apiKey auth

Category: preference
Confidence: 1.00
ID: 01a08428-4a63-7fd6-aedc-096849d93716
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 1
Source session: 16od9eLodujFsAeYb
Created: 2026-09-09 03:13:48
Updated: 2026-09-09 03:13:48

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 2 2d ago

Content

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.

Move to: