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 this machine reaches it:
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):