You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deployment = "gpt-4o"# required — your deployment name
207
+
208
+
[defaults.routing]
209
+
channel = "azure/gpt-4o"
210
+
worker = "azure/gpt-4o-mini"
211
+
```
212
+
213
+
Important notes:
214
+
-`base_url` must end with `.openai.azure.com`
215
+
-`api_version` and `deployment` are required fields
216
+
- API key authentication is handled automatically via the `api-key` header
217
+
- For Azure AI Foundry (accessing Anthropic, Llama, or other models through Azure's model catalog), use `api_type = "openai_chat_completions"` instead and configure the deployment endpoint accordingly
218
+
198
219
Additional built-in providers include **Kilo Gateway**, **OpenCode Go**, **NVIDIA**, **MiniMax**, **Moonshot AI (Kimi)**, and **Z.AI Coding Plan** — configure with `kilo_key`, `opencode_go_key`, `nvidia_key`, `minimax_key`, `moonshot_key`, or `zai_coding_plan_key` in `[llm]`.
Copy file name to clipboardExpand all lines: docs/content/docs/(configuration)/config.mdx
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -376,6 +376,11 @@ If you define a custom provider with the same ID as a legacy key, your custom co
376
376
|`mistral_key`| string | None | Mistral API key (`secret:NAME`, `env:VAR_NAME`, or literal) |
377
377
|`opencode_zen_key`| string | None | OpenCode Zen API key (`secret:NAME`, `env:VAR_NAME`, or literal) |
378
378
|`opencode_go_key`| string | None | OpenCode Go API key (`secret:NAME`, `env:VAR_NAME`, or literal) |
379
+
|`gemini_key`| string | None | Gemini API key (`secret:NAME`, `env:VAR_NAME`, or literal) |
380
+
|`nvidia_key`| string | None | NVIDIA API key (`secret:NAME`, `env:VAR_NAME`, or literal) |
381
+
|`minimax_key`| string | None | MiniMax API key (`secret:NAME`, `env:VAR_NAME`, or literal) |
382
+
|`moonshot_key`| string | None | Moonshot API key (`secret:NAME`, `env:VAR_NAME`, or literal) |
383
+
|`github_copilot_key`| string | None | GitHub Copilot PAT (`secret:NAME`, `env:VAR_NAME`, or literal) |
379
384
380
385
#### Custom Providers
381
386
@@ -391,10 +396,12 @@ name = "My Provider" # Optional - friendly name for display
391
396
392
397
| Field | Type | Required | Description |
393
398
|-------|------|----------|-------------|
394
-
|`api_type`| string | Yes | API protocol type. One of: `anthropic`, `openai_completions`, `openai_chat_completions`, `openai_responses`, `gemini`, or `kilo_gateway`|
395
-
|`base_url`| string | Yes | Base URL of the API endpoint. Must be a valid URL (including protocol) |
399
+
|`api_type`| string | Yes | API protocol type. One of: `anthropic`, `openai_completions`, `openai_chat_completions`, `openai_responses`, `gemini`, `kilo_gateway`, or `azure`|
400
+
|`base_url`| string | Yes | Base URL of the API endpoint. Must be a valid URL (including protocol). For Azure, must end with `.openai.azure.com`|
396
401
|`api_key`| string | Yes | API key for authentication. Supports `secret:NAME` and `env:VAR_NAME` syntax |
397
402
|`name`| string | No | Optional friendly name for the provider (displayed in logs and UI) |
403
+
|`api_version`| string | Azure only | Azure API version (format: `YYYY-MM-DD` or `YYYY-MM-DD-preview`) |
404
+
|`deployment`| string | Azure only | Azure deployment name (alphanumeric, hyphens, and dots allowed) |
398
405
399
406
> Note:
400
407
> - For `openai_completions`, `openai_chat_completions`, and `openai_responses`, configure `base_url` as the provider root URL (usually without a trailing `/v1`).
Workers and branches are generic. Different tasks benefit from different models. The channel or branch specifies a task type when spawning, and the routing config maps task types to models.
0 commit comments