openclaw_setup
Persist a named OpenClaw gateway configuration (URL and token) to local storage, supporting multiple instances. Closes current connection to re-handshake with new credentials.
Instructions
Persist a named OpenClaw gateway config (URL + token) to local store. Default instance name is 'default'. Pass instance to manage multiple gateways (e.g. 'perso', 'work') from the same MCP. Env vars (OPENCLAW_GATEWAY_URL/TOKEN) still override everything stored here — leave them unset to use named instances. After saving, the matching client connection is closed so the next tool call re-handshakes with the new credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Instance name (e.g. 'default', 'perso', 'work'). Defaults to 'default'. The first instance configured becomes the default automatically. | |
| gatewayUrl | Yes | WebSocket URL of the gateway, e.g. wss://your-gateway.example.com or ws://127.0.0.1:18789 | |
| makeDefault | No | If true, also set this instance as the active default (for tools that don't pass `instance`). | |
| gatewayToken | Yes | Gateway login token (get it from your Hostinger VPS dashboard or the Control panel after login) | |
| gatewayPassword | No | Optional extra password if your gateway is configured with one |