OpenClawSkills
GitHub
CLI Reference • TutorialHeader.readTime

Devices

CLI reference for openclaw devices (device pairing + token rotation/revocation).

Manage device pairing requests and device-scoped tokens.

Tutorial.step

Commands

#

Tutorial.step

`openclaw devices list`

List pending pairing requests and paired devices.

Terminal
openclaw devices list
openclaw devices list --json

#

Tutorial.step

`openclaw devices approve <requestId>`

Approve a pending device pairing request.

Terminal
openclaw devices approve <requestId>

#

Tutorial.step

`openclaw devices reject &lt;requestId&gt;`

Reject a pending device pairing request.

Terminal
openclaw devices reject <requestId>

#

Tutorial.step

`openclaw devices rotate --device &lt;id&gt; --role &lt;role&gt; [--scope &lt;scope...&gt;]`

Rotate device token for a specific role (optionally update scopes).

Terminal
openclaw devices rotate --device <deviceId> --role operator --scope operator.read --scope operator.write

#

Tutorial.step

`openclaw devices revoke --device &lt;id&gt; --role &lt;role&gt;`

Revoke device token for a specific role.

Terminal
openclaw devices revoke --device <deviceId> --role node
Tutorial.step

Common options

- ''--url <url>'': Gateway WebSocket URL (defaults to ''gateway.remote.url'' when configured).

- ''--token <token>'': Gateway token (if required).

- ''--password <password>'': Gateway password (password auth).

- ''--timeout <ms>'': RPC timeout.

- ''--json'': JSON output (recommended for scripting).

Tutorial.step

Notes

- Token rotation returns a new token (sensitive). Treat it as a secret.

- These commands require ''operator.pairing'' (or ''operator.admin'') scope.