摘要:
OpenClaw 命令大全涵盖全局选项、各功能模块命令及使用示例等内容。关键要点包括:
全局选项:提供输出版本号、显示帮助信息、禁用颜色、设置日志级别等选项。
服务管理:可对 Gateway 服务进行启动、停止、重启等操作,还能查看状态、健康信息等。
会话管理:支持列出、查看、清理会话,以及在 Web UI 进行新建、重置会话等操作。
模型管理:能列出、查看、配置模型,在 Web UI 可查看和切换模型。
消息管理:可进行消息的发送、读取、编辑、删除等操作,还有互动、频道与成员管理功能。
定时任务:可对定时任务进行增删改查、启用禁用等操作,Web UI 也有相应快捷命令。
配置管理:能查看、修改配置,还有交互式配置向导和初始化操作。
全局选项
一、Gateway 服务管理
1.1 服务控制
1.2 状态与探测
1.3 Gateway 启动选项
二、会话管理
2.1 CLI 命令
三、模型管理
3.1 模型查看
3.2 模型配置
四、通道管理(Channels)
五、消息管理(Message)
5.1 基础消息操作
5.2 互动操作
5.3 频道与成员管理
六、定时任务(Cron)
6.1 CLI 命令
6.2 Web UI 快捷命令
七、Agent 管理
八、设备与节点管理
8.1 设备管理(Devices)
8.2 节点管理(Nodes)
8.3 节点远程操作
九、配置管理(Config)
9.1 配置查看
9.2 配置修改
9.3 交互式配置
十、技能管理(Skills)
十一、插件管理(Plugins)
十二、Hooks 管理
十三、记忆管理(Memory)
十四、安全与审计
14.1 安全审计(Security)
14.2 密钥管理(Secrets)
14.3 执行审批(Approvals)
十五、沙箱管理(Sandbox)
十六、备份管理(Backup)
十七、更新管理(Update)
十八、联系人目录(Directory)
十九、MCP 管理
二十、ACP 管理
ACP 选项
二十一、DNS 与 Webhooks
二十二、系统诊断与工具
22.1 诊断命令
22.2 日志与文档
二十三、浏览器控制
二十四、其他命令
附录 A:命令速查表(按使用频率)
日常高频命令
openclaw status # 查看整体状态
openclaw gateway status # 查看 Gateway 状态
openclaw gateway restart # 重启 Gateway
openclaw sessions # 查看会话列表
openclaw models list # 查看模型
openclaw channels status # 查看通道状态
openclaw message send # 发送消息
openclaw cron list # 查看定时任务
openclaw doctor # 健康检查
openclaw logs # 查看日志Web UI 高频命令
/status 查看会话状态
/new 新建会话
/reset 重置会话
/models 查看模型
/thinking on 开启深度思考
/cron list 查看定时任务
/help 显示帮助附录 B:常用命令组合示例
完整部署流程
openclaw setup # 初始化
openclaw configure # 交互式配置
openclaw gateway install # 安装服务
openclaw gateway start # 启动服务
openclaw channels login --channel whatsapp # 连接 WhatsApp
openclaw channels add --channel telegram --token <tok> # 连接 Telegram
openclaw status --all # 验证状态
openclaw doctor # 健康检查
openclaw security audit # 安全审计日常运维流程
openclaw status --deep # 检查状态
openclaw gateway health # 检查 Gateway
openclaw update --dry-run # 预览更新
openclaw update # 执行更新
openclaw backup create # 创建备份
openclaw security audit --fix # 安全审计并修复故障排查流程
openclaw status --all # 快速诊断
openclaw doctor --fix # 自动修复
openclaw logs --tail 100 # 查看日志
openclaw channels logs # 查看通道日志
openclaw gateway probe # 探测 Gateway
openclaw channels status --deep # 深度检查通道
openclaw sandbox list # 检查沙箱
openclaw gateway restart # 重启 Gateway
openclaw sandbox recreate --all # 重建沙箱