Command Line
CLI 参考
openclaw CLI 是管理安装、向导、Gateway、渠道、模型、会话和调试的核心入口。真正高频的命令并不多,但知道它们怎么分组会显著减少排障时间。
命令分组
安装与初始化
setup、onboard、configure、doctor、update、uninstall
服务与状态
gateway、status、health、logs、system
聊天入口管理
channels、pairing、message、nodes、devices
模型、工具与权限
models、sandbox、approvals、skills、plugins
全局 flag
--dev:将状态隔离到 ~/.openclaw-dev 下,并自动调整默认端口。
--profile <name>:把状态隔离到 ~/.openclaw-<name> 下,适合 rescue / staging 等多实例场景。
--no-color:输出更适合日志或脚本消费。
-V / --version:快速查看当前版本。
高频命令
初始化与修复
openclaw onboard
openclaw configure
openclaw doctor Gateway 运维
openclaw gateway status
openclaw gateway start
openclaw gateway stop
openclaw gateway restart 状态与日志
openclaw status
openclaw health
openclaw logs --follow 模型与渠道
openclaw models status
openclaw channels login
openclaw channels status --probe