opencode_auth
Configure provider authentication by setting an API key, OAuth token, or well-known credential for a specified provider, so AI coding agents can access that provider.
Instructions
Set provider authentication. Action: set (configure API key for a provider)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"providerId": "<providerId>",
"type": "<type>",
"key": "<key>"
},
"name": "opencode_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | API key | |
| type | Yes | Auth type | |
| action | Yes | ||
| providerId | Yes | Provider ID (e.g. 'cerebras') |