OpenClaw Nodes 指南:遠端設備管理與指令調用教學
當你需要管理多個遠端裝置或節點時,最頭痛的往往是無法快速確認誰在線上,或是難以統一調用功能。如果能在終端機直接掌握所有節點的配對狀態並執行指令,開發流程會順暢很多。
openclaw nodes
Section titled “openclaw nodes”管理已配對的 nodes(裝置)並調用節點功能。
相關連結:
- Nodes 概覽:Nodes
- Camera:Camera nodes
- Images:Image nodes
常用選項:
--url,--token,--timeout,--json
openclaw nodes listopenclaw nodes list --connectedopenclaw nodes list --last-connected 24hopenclaw nodes pendingopenclaw nodes approve <requestId>openclaw nodes statusopenclaw nodes status --connectedopenclaw nodes status --last-connected 24hnodes list 會印出待處理(pending)與已配對(paired)的表格。已配對的資料列會包含最近一次連線的時間(Last Connect)。
使用 --connected 僅顯示目前連線中的 nodes。使用 --last-connected <duration> 來過濾在特定時間內連線過的 nodes(例如 24h, 7d)。
openclaw nodes invoke --node <id|name|ip> --command <command> --params <json>Invoke 旗標:
--params <json>:JSON 物件字串(預設為{})。--invoke-timeout <ms>:node 調用超時時間(預設為15000)。--idempotency-key <key>:選填的冪等性金鑰。- 這裡封鎖了
system.run和system.run.prepare;如果要執行 shell 指令,請使用exec工具並設定host=node。
要在 node 上執行 shell,請改用 exec 工具搭配 host=node,而不是使用 openclaw nodes run。現在的 nodes CLI 核心在於功能調用:透過 nodes invoke 進行直接 RPC,並處理配對、camera、screen、location、canvas 和 notifications。
想要更快速地完成設定嗎?試試我們的 AI Setup Assistant。
OpenClaw Expert
還是卡住了?
如果這篇文件沒有解決你的情境,直接問 OpenClaw Expert,拿到可執行步驟。