openclaw node
启动一个节点实例。
概要
bash
openclaw node [选项]描述
openclaw node 命令用于启动一个 OpenClaw 节点实例。节点是 OpenClaw 分布式架构中的执行单元,不同类型的节点提供不同的能力(如音频处理、摄像头接入、移动设备控制等)。节点启动后会自动连接到网关,注册自身能力并接受任务调度。
节点类型
| 类型 | 说明 |
|---|---|
audio | 音频处理节点,支持语音识别和合成 |
camera | 摄像头节点,支持图像采集和视觉分析 |
mobile | 移动设备节点,支持手机自动化操作 |
compute | 计算节点,提供额外计算资源 |
custom | 自定义节点类型 |
选项
| 选项 | 缩写 | 说明 | 默认值 |
|---|---|---|---|
--type <type> | -t | 节点类型 | compute |
--name <name> | -n | 节点名称 | 自动生成 |
--gateway <url> | -g | 网关地址 | localhost:3000 |
--port <port> | -p | 节点监听端口 | 自动分配 |
--token <token> | 认证令牌 | - | |
--config <path> | 节点配置文件路径 | - | |
--detach | -d | 后台运行 | false |
示例
bash
# 启动默认计算节点
openclaw node
# 启动音频处理节点
openclaw node --type audio
# 启动摄像头节点并指定名称
openclaw node --type camera --name "office-cam"
# 连接到远程网关
openclaw node --type compute --gateway "192.168.1.100:3000"
# 使用配置文件启动
openclaw node --config ./node-config.yaml
# 后台运行节点
openclaw node --type audio --detach
# 使用认证令牌连接
openclaw node --gateway "remote.server:3000" --token "your-token"相关命令
openclaw nodes- 查看节点列表openclaw status- 系统状态查看openclaw setup- 安装配置
