Set OpenClaw Config Value
clawops_config_setSet a single OpenClaw gateway configuration value (e.g., model provider, channel auth, port) and optionally restart the gateway to apply it. Use for auditable one-key edits.
Instructions
Set a configuration value on the remote OpenClaw gateway. Optionally restarts the gateway after.
Use when: the user wants to change OpenClaw configuration (model provider, channel auth, gateway port).
Do NOT use when: the user is reading config — use clawops_config_get. Do NOT bulk-edit; one key at a time so changes are auditable (R21).
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": {
"key": "<key>",
"value": "<value>"
},
"name": "clawops_config_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Dotted path into the gateway config, e.g. models.provider or channels.slack.enabled | |
| value | Yes | Stringified; JSON for complex values | |
| restart | No | Restart the gateway so the change takes effect. Without it the value is written and the running gateway keeps the old one | |
| stackName | No | Which stack's gateway config to write. Omitted = the default stack in ~/.clawops/config.json |