openclaw devices
デバイスペアリングリクエストとデバイススコープのトークンを管理します。
コマンド
openclaw devices list
保留中のペアリングリクエストとペアリングされたデバイスを一覧表示します。
openclaw devices list
openclaw devices list --json
openclaw devices approve <requestId>
保留中のデバイスペアリングリクエストを承認します。
openclaw devices approve <requestId>
openclaw devices reject <requestId>
保留中のデバイスペアリングリクエストを拒否します。
openclaw devices reject <requestId>
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>
特定のロールのデバイストークンを取り消します。
openclaw devices revoke --device <deviceId> --role node
共通オプション
- --url <url>: Gateway WebSocket URL(設定されている場合はgateway.remote.urlがデフォルト)。
- --token <token>: Gatewayトークン(必要な場合)。
- --password <password>: Gatewayパスワード(パスワード認証)。
- --timeout <ms>: RPCタイムアウト。
- --json: JSON出力(スクリプト用に推奨)。
注意事項
- トークンローテーションは新しいトークン(機密情報)を返します。秘密として扱ってください。
- これらのコマンドにはoperator.pairing(またはoperator.admin)スコープが必要です。