跳转到内容

devices

管理设备配对请求和设备范围的令牌。

列出待处理的配对请求和已配对的设备。

openclaw devices list
openclaw devices list --json

批准待处理的设备配对请求。

openclaw devices approve <requestId>

拒绝待处理的设备配对请求。

openclaw devices reject <requestId>

openclaw devices rotate --device <id> --role <role> [--scope <scope...>]

Section titled “openclaw devices rotate --device <id> --role <role> [--scope <scope...>]”

轮换特定角色的设备令牌 (可选地更新范围)。

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

openclaw devices revoke --device <id> --role <role>

Section titled “openclaw devices revoke --device <id> --role <role>”

撤销特定角色的设备令牌。

openclaw devices revoke --device <deviceId> --role node
  • --url <url>: 网关 WebSocket URL (配置时默认为 gateway.remote.url)。
  • --token <token>: 网关令牌 (如果需要)。
  • --password <password>: 网关密码 (密码认证)。
  • --timeout <ms>: RPC 超时。
  • --json: JSON 输出 (推荐用于脚本)。
  • 令牌轮换返回一个新令牌 (敏感)。像对待秘密一样对待它。
  • 这些命令需要 operator.pairing (或 operator.admin) 范围。