乐于分享
好东西不私藏

效率翻10倍!OpenClaw 命令速查表,看这一篇就够了

效率翻10倍!OpenClaw 命令速查表,看这一篇就够了


如果你刚接触 OpenClaw,可能会被它 80+ 个命令吓到。这份清单按场景分类,帮你快速找到需要的那一个。建议收藏,随时查阅。整理日期:2026年5月8日 | 适用版本:OpenClaw 2026.x(兼容旧名 Clawdbot / Moltbot)


一、新手入门

命令
作用
备注
openclaw onboard
交互式初始化向导
首次使用推荐
openclaw onboard --install-daemon
安装系统守护进程
后台常驻运行
openclaw doctor
一键健康检查+自动修复
支持 --deep 深度检查
openclaw configure
交互式配置向导
模型、通道、凭据

二、Gateway 网关管理

命令
作用
备注
openclaw gateway status
查看网关服务状态
openclaw gateway start
启动网关服务
openclaw gateway stop
停止网关服务
openclaw gateway restart
重启网关服务
配置变更后必用
openclaw gateway run
前台运行网关
调试用
openclaw gateway health
获取网关健康信息

三、状态与诊断

命令
作用
备注
openclaw status
查看当前运行状态
含健康度与上下文
openclaw health
健康检查
检测 core、依赖、运行环境
openclaw logs
查看日志
openclaw logs --follow
实时日志
支持 --json/--plain
openclaw dashboard
打开网页控制面板

四、配置管理

命令
作用
备注
openclaw config file
显示配置文件路径
openclaw config get <path>
读取配置项
JSON Path
openclaw config set <path> <value>
修改配置项
openclaw config unset <path>
清除配置项
openclaw config validate
校验配置文件

五、通道管理(聊天平台)

命令
作用
备注
openclaw channels list
列出已登录通道
WhatsApp/Telegram/Discord
openclaw channels add --channel telegram
添加 Telegram
需 Bot Token
openclaw channels add --channel discord
添加 Discord
需 Bot Token
openclaw channels add --channel slack
添加 Slack
需 Bot Token
openclaw channels status --probe
通道健康检查
openclaw channels login
登录新通道账号
扫码或授权

六、技能(Skills)管理

命令
作用
备注
openclaw skills list
列出已安装技能
openclaw skills info <skill>
技能详情
参数、版本信息
openclaw skills search <keyword>
搜索技能
clawhub install <slug>
从 ClawHub 安装技能
官方技能市场
clawhub update --all
批量更新技能
clawhub search "关键词"
搜索 ClawHub 技能

七、插件管理

命令
作用
备注
openclaw plugins list
列出已加载插件
openclaw plugins install <id>
安装插件
如 @openclaw/voice-call
openclaw plugins enable <id>
启用插件
需重启 Gateway
openclaw plugins disable <id>
禁用插件
openclaw plugins uninstall <id>
卸载插件

八、模型管理

命令
作用
备注
openclaw models list
列出可用模型
含鉴权状态
openclaw models status
模型状态
当前可用性
openclaw models set <model>
切换模型
openclaw models auth setup-token
模型鉴权配置

九、记忆管理

命令
作用
备注
openclaw memory search "关键词"
搜索长期记忆
向量搜索
openclaw memory index
重建记忆索引
修复 memory 异常
openclaw memory status
查看记忆状态

十、浏览器控制

命令
作用
备注
openclaw browser start
启动浏览器代理
自动化能力
openclaw browser screenshot
网页截图
openclaw browser open <url>
打开网址
openclaw browser navigate <url>
导航到页面
openclaw browser tabs
查看标签页
openclaw browser close
关闭浏览器

十一、定时任务与自动化

命令
作用
备注
openclaw cron list
列出定时任务
openclaw cron run <id>
执行定时任务
openclaw cron add
添加定时任务
openclaw cron enable <id>
启用定时任务
openclaw cron disable <id>
禁用定时任务
openclaw hooks list
列出 Hook 列表
事件钩子机制
openclaw hooks info <hook>
查看 Hook 详情

十二、子代理管理

命令
作用
备注
openclaw subagents list
列出子代理
openclaw subagents info <name>
子代理详情

十三、卸载

命令
作用
备注
openclaw uninstall
交互式卸载
openclaw uninstall --all --yes --non-interactive
全自动卸载
状态/workspace/插件
openclaw uninstall --workspace
删除工作区
agent/workspace 数据
openclaw uninstall --state
删除状态文件
不删除 workspace
openclaw uninstall --service
仅卸载系统服务
不删除数据
openclaw uninstall --dry-run
模拟卸载
仅展示结果

十四、聊天内斜杠命令

命令
作用
备注
/status
健康+上下文
/model <m>
切换模型
/new
全新会话
/stop
中止当前运行
/compact
释放窗口空间
/tts on|off
切换语音
/think
切换推理模式
/context list
上下文贡献者

十五、全局标志

标志
作用
--dev
将状态隔离在 ~/.openclaw-dev 下并偏移默认端口
--profile <name>
将状态隔离在 ~/.openclaw-<name> 下
--no-color
禁用 ANSI 颜色
-V

--version
打印版本并退出
--json
输出 JSON 格式(禁用样式)

十六、重要别名

别名
指向
capability infer
chat

 / terminal
tui --local
daemon
Gateway 网关服务
clawbot
命名空间

使用建议

日常高频使用的是 前四大类:Gateway管理、状态诊断、配置管理、通道管理,遇到问题时再查其他分类。

改完配置后记得运行 openclaw gateway restart 让改动生效。

往期精选: