--- read_when: - 正在管理配对节点(摄像头、屏幕、画布) - 需要批准请求或调用节点命令 summary: 管理配对节点(列表/状态/批准/调用,摄像头/画布/屏幕)的 `openclaw nodes` CLI 参考 title: nodes x-i18n: generated_at: "2026-02-01T20:21:19Z" model: claude-opus-4-5 provider: pi source_hash: 23da6efdd659a82dbbc4afd18eb4ab1020a2892f69c28d610f912c8a799f734c source_path: cli/nodes.md workflow: 14 --- # `openclaw nodes` 管理配对节点(设备)并调用节点功能。 相关内容: - 节点概述:[节点](/nodes) - 摄像头:[摄像头节点](/nodes/camera) - 图像:[图像节点](/nodes/images) 常用选项: - `--url`、`--token`、`--timeout`、`--json` ## 常用命令 ```bash openclaw nodes list openclaw nodes list --connected openclaw nodes list --last-connected 24h openclaw nodes pending openclaw nodes approve openclaw nodes status openclaw nodes status --connected openclaw nodes status --last-connected 24h ``` `nodes list` 输出待处理/已配对的表格。已配对的行包含最近一次连接的时间间隔(Last Connect)。 使用 `--connected` 仅显示当前已连接的节点。使用 `--last-connected ` 筛选在指定时间段内连接过的节点(例如 `24h`、`7d`)。 ## 调用 / 运行 ```bash openclaw nodes invoke --node --command --params openclaw nodes run --node openclaw nodes run --raw "git status" openclaw nodes run --agent main --node --raw "git status" ``` 调用标志: - `--params `:JSON 对象字符串(默认 `{}`)。 - `--invoke-timeout `:节点调用超时时间(默认 `15000`)。 - `--idempotency-key `:可选的幂等键。 ### Exec 风格的默认行为 `nodes run` 模拟模型的 exec 行为(默认值 + 审批): - 读取 `tools.exec.*`(以及 `agents.list[].tools.exec.*` 的覆盖配置)。 - 在调用 `system.run` 之前使用 exec 审批(`exec.approval.request`)。 - 当设置了 `tools.exec.node` 时,可以省略 `--node`。 - 需要一个声明支持 `system.run` 的节点(macOS 伴侣应用或无头节点主机)。 标志: - `--cwd `:工作目录。 - `--env `:环境变量覆盖(可重复使用)。 - `--command-timeout `:命令超时时间。 - `--invoke-timeout `:节点调用超时时间(默认 `30000`)。 - `--needs-screen-recording`:要求屏幕录制权限。 - `--raw `:运行 shell 字符串(`/bin/sh -lc` 或 `cmd.exe /c`)。 - `--agent `:智能体范围的审批/白名单(默认为已配置的智能体)。 - `--ask `、`--security `:覆盖选项。