openclaw qr
从当前网关配置生成 iOS 配对 QR 和设置代码。
用法
openclaw qr
openclaw qr --setup-code-only
openclaw qr --json
openclaw qr --remote
openclaw qr --url wss://gateway.example/ws --token '<token>'
选项
--remote:使用gateway.remote.url加上配置中的远程令牌/密码--url <url>:覆盖有效载荷中使用的网关 URL--public-url <url>:覆盖有效载荷中使用的公共 URL--token <token>:覆盖有效载荷的网关令牌--password <password>:覆盖有效载荷的网关密码--setup-code-only:仅打印设置代码--no-ascii:跳过 ASCII QR 渲染--json:发出 JSON(setupCode、gatewayUrl、auth、urlSource)
注意事项
--token和--password互斥。- 扫描后,使用以下命令批准设备配对:
openclaw devices listopenclaw devices approve <requestId>