无论你是刚开始用 OpenClaw,还是常用来自动化操作,肯定都遇到过命令记不清的情况。与其每次用都去翻官方文档或零散教程,不如直接收藏这份基于官方文档完整的命令清单——聊天会话、Gateway 运维、消息发送、技能管理,所有操作命令都列在这里,方便随时查找,省时省力。

一、OpenClaw 聊天命令速查
- `/new` – 开启新会话,清空上下文(支持 `/new <描述>` 带目标启动)
- `/reset` – 重置对话,同 `/new`
- `/status` – 查看会话状态(模型、用量、费用)
- `/reasoning` – 开启/关闭深度推理模式(支持 `/reasoning on/off/low/medium/high` 调整级别)
- `/model <名称>` – 切换模型(如 `/model gpt-4`)
- `/help` – 查看帮助(或 `/commands`)
- `/skills` – 查看已安装技能(支持 `/skill <name> [input]` 直接运行技能)
- `/agents` – 查看可用 Agent
- `/compact` – 压缩上下文,节省 Token 消耗
- `/think <级别>` – 设置思考级别(如 `/think high`)
- `/verbose on/off` – 开启/关闭详细输出
- `/deliver` – 交付当前任务结果
二、OpenClaw CLI 命令速查
🌐 Gateway 控制
- `openclaw gateway` – 启动 Gateway(前台运行)
- `openclaw gateway status` – 查看 Gateway 状态
- `openclaw gateway start` – 启动 Gateway 服务(后台)
- `openclaw gateway stop` – 停止 Gateway 服务
- `openclaw gateway restart` – 重启 Gateway 服务
- `openclaw gateway install` – 安装为系统服务
- `openclaw gateway uninstall` – 卸载系统服务
- `openclaw gateway run` – 前台调试模式(可加 `–verbose` 看详细日志)
- `openclaw gateway health` – 健康检查
- `openclaw gateway probe` – 网络探活
- `openclaw gateway call <method> –params ‘{“k”:”v”}’` – 调试用原始方法调用
🛠️ 常用工具
- `openclaw setup` – 初始化配置
- `openclaw configure` – 交互式配置向导
- `openclaw doctor` – 健康检查 + 快速修复
- `openclaw status` – 查看通道健康状态
- `openclaw logs` – 查看 Gateway 日志(支持 `–follow` 实时追踪、`–start/–end` 时间范围、`–search` 关键词过滤)
- `openclaw dashboard` – 打开控制面板
- `openclaw memory` – 内存管理
📨 消息发送
- `openclaw message send –target <号码> –message 内容`
- `openclaw message send –channel telegram –target @用户 –message 内容`
🚪 通道管理
- `openclaw channels login` – 登录通道(WhatsApp 等)
- `openclaw channels` – 查看通道列表
🧩 其他实用
- `openclaw –dev gateway` – 开发模式启动 Gateway
- `openclaw gateway –force` – 强制杀掉占用端口并启动
- `openclaw gateway –port <端口>` – 指定端口(默认 18789)
- `openclaw gateway –verbose` – 详细日志
- `openclaw gateway –timeout <ms>` – 设置命令超时时间
- `openclaw skills` – 技能管理(支持 `search/install/uninstall`)
- `openclaw agents` – Agent 管理
- `openclaw browser` – 浏览器管理
- `openclaw cron` – 定时任务管理(`list/add/edit/rm/run`)
- `openclaw security audit` – 安全审计
- `openclaw secrets reload` – 刷新敏感密钥
- `openclaw backup create` – 创建系统备份
- `openclaw reset` – 重置系统状态(谨慎使用)
🔧 全局基础命令
- `openclaw –version` / `-v` – 查看版本
- `openclaw –help` – 查看所有命令帮助
- `openclaw tui` – 打开终端 UI(TUI)
- `openclaw update` – 更新 OpenClaw
- `openclaw uninstall –all –yes` – 彻底卸载
—
上面这些就是 OpenClaw 从入门到进阶的所有命令,每一条都可以直接复制使用。平时使用时,不用死记硬背,把这篇文章保存好,需要哪个查哪个。如果遇到命令错误、参数不明白的情况,也可以直接运行 `openclaw –help`,快速读取官方帮助。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...




