set_backend
Create, update, or remove a custom LLM backend by specifying its name, base URL, model, protocol, and local or cloud flag.
Instructions
Create, update, or remove a custom backend in custom_backends.json.
Args: name: Backend id, e.g. my_local_qwen. Lowercase letters, numbers, _ or -. base_url: OpenAI-compatible or Anthropic-compatible base URL. default_model: Model id. Empty means auto-resolve from /models where possible. local: 1 for local RAM-guarded backend, 0 for cloud backend. api_key_env: Optional environment variable name for the API key. protocol: openai or anthropic. remove: 1 removes the custom backend.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| local | No | ||
| remove | No | ||
| base_url | No | ||
| protocol | No | openai | |
| api_key_env | No | ||
| default_model | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |