Add an AI provider
colliedesk_ai_provider_addAdd a provider with the workspace's own key: anthropic (the Claude API, no base_url) or openai_compatible (OpenAI, OpenRouter, vLLM, Ollama; base_url with its version path, for example https://openrouter.ai/api/v1, public https unless the server operator allows private addresses). On OpenRouter, routing keeps the requests on providers that do not store or train on data (data_collection deny) or keep nothing (zdr). The key is checked with one small billed request to the first model and saved only when it works; it is sealed on the server and never shown again. It passes through this conversation, so use a key you can revoke at the provider. A failed check saves nothing and says why (ai_check_failed with check_error_code). At most 5 providers; adding one turns no feature on.
Needs: ai_settings:manage_credentials.
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": {
"kind": "<kind>",
"label": "<label>",
"models": "<models>"
},
"name": "colliedesk_ai_provider_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| label | Yes | ||
| models | Yes | ||
| api_key | No | ||
| routing | No | ||
| base_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes |