--- summary: "CLI reference for `openclaw devices` (device pairing + token rotation/revocation)" read_when: - You are approving device pairing requests - You need to rotate or revoke device tokens title: "devices" --- # `openclaw devices` Manage device pairing requests and device-scoped tokens. ## Commands ### `openclaw devices list` List pending pairing requests and paired devices. ``` openclaw devices list openclaw devices list --json ``` ### `openclaw devices approve ` Approve a pending device pairing request. ``` openclaw devices approve ``` ### `openclaw devices reject ` Reject a pending device pairing request. ``` openclaw devices reject ``` ### `openclaw devices rotate --device --role [--scope ]` Rotate a device token for a specific role (optionally updating scopes). ``` openclaw devices rotate --device --role operator --scope operator.read --scope operator.write ``` ### `openclaw devices revoke --device --role ` Revoke a device token for a specific role. ``` openclaw devices revoke --device --role node ``` ## Common options - `--url `: Gateway WebSocket URL (defaults to `gateway.remote.url` when configured). - `--token `: Gateway token (if required). - `--password `: Gateway password (password auth). - `--timeout `: RPC timeout. - `--json`: JSON output (recommended for scripting). Note: when you set `--url`, the CLI does not fall back to config or environment credentials. Pass `--token` or `--password` explicitly. Missing explicit credentials is an error. ## Notes - Token rotation returns a new token (sensitive). Treat it like a secret. - These commands require `operator.pairing` (or `operator.admin`) scope.