For OpenAI-compatible clients, sent as Authorization: Bearer <key>. Use the model name default, which always means the loaded model.
Add to opencode
The API's address, as the machine running opencode reaches it:
Then run this there, or send it to whoever you're giving access, with the key. It needs only the API, not this
dashboard: it installs opencode if it's missing, asks for the key (hidden), saves it, and adds this server to
opencode.json, keeping their other settings:
Or set it up by hand
Save the key where the provider reads it (paste it at the prompt; it stays out of your shell history):
Put this in ~/.config/opencode/opencode.json. If the file is empty or missing, paste the whole thing;
if it already has settings, add the entry under "provider" to its own "provider"
(and set "model" only if you want this as the default):