跳转到主要内容

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

管理已配对的节点(设备)并调用节点能力。 相关内容: 常用选项:
  • --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 仅显示当前已连接的节点。使用 --last-connected <duration> 可筛选在某个时间段内连接过的节点(例如 24h7d)。 使用 nodes remove --node <id|name|ip> 可删除过时的、由 Gateway 网关拥有的节点配对记录。 批准说明:
  • openclaw nodes pending 仅需要配对作用域。
  • gateway.nodes.pairing.autoApproveCidrs 仅会对显式信任的、首次配对的 role: node 设备跳过待处理步骤。它默认关闭,且不会批准升级请求。
  • openclaw nodes approve <requestId> 会继承待处理请求的额外作用域要求:
    • 无命令请求:仅配对
    • 非 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>:节点调用超时时间(默认 15000)。
  • --idempotency-key <key>:可选的幂等键。
  • 此处会阻止 system.runsystem.run.prepare;如需执行 shell,请使用 host=nodeexec 工具。
如需在节点上执行 shell,请使用 host=nodeexec 工具,而不是 openclaw nodes runnodes CLI 现在专注于能力调用:通过 nodes invoke 进行直接 RPC,以及配对、相机、屏幕、位置、画布和通知。

相关