Update the delegate configuration
set_delegate_configChange active delegation settings at runtime to dynamically switch cheap model or provider without reinstalling. Only passed fields update; returns updated config.
Instructions
Change the active delegation settings at runtime — this is how you dynamically switch the cheap model or provider without reinstalling. Only the fields you pass are updated. Returns the updated config.
Args (all optional):
default_model (string): provider/model used when a call omits one, e.g. "openrouter/minimax/minimax-m2.5".
default_agent (string): default OpenCode agent.
default_variant (string): default reasoning-effort variant.
auto_approve (boolean): auto-approve tool permissions for delegations.
timeout_ms (number): per-delegation timeout in milliseconds.
default_directory (string): default working directory.
opencode_bin (string): path/name of the opencode binary.
profiles (object): map of name -> { model?, agent?, variant?, autoApprove? }. Profiles are MERGED, not replaced — existing ones are kept unless you name them. To ADD or UPDATE a profile, give it a value; to REMOVE one, set its value to null: { "profiles": { "tests": null } }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profiles | No | Named presets to merge in; set a name's value to null to remove that profile | |
| timeout_ms | No | ||
| auto_approve | No | ||
| opencode_bin | No | ||
| default_agent | No | ||
| default_model | No | provider/model default | |
| default_variant | No | ||
| default_directory | No |