Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

openclaw nodes

จัดการ Node (อุปกรณ์) ที่จับคู่แล้วและเรียกใช้ความสามารถของ Node ที่เกี่ยวข้อง: ตัวเลือกทั่วไป:
  • --url, --token, --timeout, --json

คำสั่งทั่วไป

openclaw nodes list
openclaw nodes list --connected
openclaw nodes list --last-connected 24h
openclaw nodes pending
openclaw nodes approve <requestId>
openclaw nodes reject <requestId>
openclaw nodes remove --node <id|name|ip>
openclaw nodes rename --node <id|name|ip> --name <displayName>
openclaw nodes status
openclaw nodes status --connected
openclaw nodes status --last-connected 24h
nodes list แสดงตารางที่รอดำเนินการ/จับคู่แล้ว แถวที่จับคู่แล้วจะมีอายุการเชื่อมต่อล่าสุด (Last Connect) ใช้ --connected เพื่อแสดงเฉพาะ Node ที่เชื่อมต่ออยู่ในขณะนี้ ใช้ --last-connected <duration> เพื่อ กรองเฉพาะ Node ที่เชื่อมต่อภายในช่วงเวลาหนึ่ง (เช่น 24h, 7d) ใช้ nodes remove --node <id|name|ip> เพื่อลบระเบียนการจับคู่ Node เก่าที่ Gateway เป็นเจ้าของ หมายเหตุการอนุมัติ:
  • openclaw nodes pending ต้องใช้เฉพาะขอบเขตการจับคู่เท่านั้น
  • gateway.nodes.pairing.autoApproveCidrs สามารถข้ามขั้นตอนที่รอดำเนินการได้เฉพาะสำหรับ การจับคู่อุปกรณ์ role: node ครั้งแรกที่เชื่อถืออย่างชัดเจนเท่านั้น โดยค่าเริ่มต้นจะปิดอยู่ และไม่อนุมัติการอัปเกรด
  • openclaw nodes approve <requestId> รับช่วงข้อกำหนดขอบเขตเพิ่มเติมจาก คำขอที่รอดำเนินการ:
    • คำขอที่ไม่มีคำสั่ง: จับคู่เท่านั้น
    • คำสั่ง Node ที่ไม่ใช่ exec: จับคู่ + เขียน
    • system.run / system.run.prepare / system.which: จับคู่ + ผู้ดูแลระบบ

เรียกใช้

openclaw nodes invoke --node <id|name|ip> --command <command> --params <json>
แฟล็กการเรียกใช้:
  • --params <json>: สตริงออบเจ็กต์ JSON (ค่าเริ่มต้น {})
  • --invoke-timeout <ms>: ระยะหมดเวลาการเรียกใช้ Node (ค่าเริ่มต้น 15000)
  • --idempotency-key <key>: คีย์ idempotency ที่ไม่บังคับ
  • system.run และ system.run.prepare ถูกบล็อกที่นี่ ให้ใช้เครื่องมือ exec พร้อม host=node สำหรับการเรียกใช้เชลล์
สำหรับการเรียกใช้เชลล์บน Node ให้ใช้เครื่องมือ exec พร้อม host=node แทน openclaw nodes run ตอนนี้ CLI ของ nodes มุ่งเน้นที่ความสามารถ: RPC โดยตรงผ่าน nodes invoke รวมถึงการจับคู่ กล้อง หน้าจอ ตำแหน่งที่ตั้ง Canvas และการแจ้งเตือน คำสั่ง Canvas ดำเนินการโดย Plugin Canvas แบบทดลองที่รวมมาให้; core คง hook ความเข้ากันได้ไว้ เพื่อให้คำสั่งเหล่านั้นยังคงอยู่ภายใต้ openclaw nodes canvas

ที่เกี่ยวข้อง