Skip to main content

openclaw devices

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

命令

INLINE_CODE_6

列出待处理的配对请求和已配对的设备。
openclaw devices list
openclaw devices list --json

INLINE_CODE_7

批准待处理的设备配对请求。
openclaw devices approve <requestId>

INLINE_CODE_8

拒绝待处理的设备配对请求。
openclaw devices reject <requestId>

INLINE_CODE_9

为特定角色轮换设备令牌(可选择更新作用域)。
openclaw devices rotate --device <deviceId> --role operator --scope operator.read --scope operator.write

INLINE_CODE_10

撤销特定角色的设备令牌。
openclaw devices revoke --device <deviceId> --role node

常见选项

  • INLINE_CODE_11: 网关 WebSocket URL(配置时默认为 INLINE_CODE_12)。
  • INLINE_CODE_13: 网关令牌(如果需要)。
  • INLINE_CODE_14: 网关密码(密码认证)。
  • INLINE_CODE_15: RPC 超时。
  • INLINE_CODE_16: JSON 输出(建议用于脚本)。

注意事项

  • 令牌轮换会返回一个新的令牌(敏感信息),请将其视为秘密。
  • 这些命令需要 INLINE_CODE_17(或 INLINE_CODE_18)作用域。