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).
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 |