openclaw devices

Quản lý các yêu cầu pairing thiết bị và token theo phạm vi thiết bị.

Các lệnh

openclaw devices list

Liệt kê các yêu cầu pairing đang chờ và các thiết bị đã được pairing.

openclaw devices list
openclaw devices list --json

openclaw devices approve <requestId>

Phê duyệt một yêu cầu pairing thiết bị đang chờ.

openclaw devices approve <requestId>

openclaw devices reject <requestId>

Từ chối một yêu cầu pairing thiết bị đang chờ.

openclaw devices reject <requestId>

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

Xoay vòng token thiết bị cho một role cụ thể (có thể cập nhật scope).

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

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

Thu hồi token thiết bị cho một role cụ thể.

openclaw devices revoke --device <deviceId> --role node

Các tùy chọn chung

  • --url <url>: URL WebSocket của Gateway (mặc định là gateway.remote.url khi đã cấu hình).
  • --token <token>: Token của Gateway (nếu cần).
  • --password <password>: Mật khẩu Gateway (xác thực bằng password).
  • --timeout <ms>: Thời gian chờ RPC.
  • --json: Xuất ra dạng JSON (khuyên dùng cho scripting).

Lưu ý

  • Xoay vòng token sẽ trả về một token mới (nhạy cảm). Hãy xử lý nó như một secret.
  • Các lệnh này yêu cầu scope operator.pairing (hoặc operator.admin).