openclaw_cli
Read and write OpenClaw configuration via direct file access or CLI. Run doctor for diagnostics, check version, and receive manual restart instructions.
Instructions
OpenClaw CLI operations: read/write config, run doctor, check version, restart instructions.
"config_get": reads openclaw.json directly from filesystem (~16ms, no CLI overhead). Supports dot-paths like "agents.list[0].model".
"config_set": writes via CLI over SSH (slower but safe — CLI handles validation and env var resolution).
"doctor": runs openclaw doctor via SSH.
"version": returns the installed OpenClaw version.
"restart": returns manual restart instructions (gateway cannot be restarted remotely).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | [doctor] If true, runs auto-repair. Remind the user before running this. | |
| key | No | [config_get/config_set] JSON5 dot-path. Examples: "agents.list[0].model", "agents.defaults.heartbeat" | |
| value | No | [config_set] Value to set. Must be valid JSON or JSON5. Examples: '"nvidia-og/model-name"', 'true', '{ every: "1h" }' | |
| command | Yes | CLI command to run. | |
| non_interactive | No | [doctor] Skip confirmation prompts. Default: true. |