📖 命令简介
OpenClaw 提供了丰富的命令系统,分为以下几类:
对话命令
终端命令
技能命令
代理命令
系统命令
本指南将详细介绍所有命令的使用方法和示例。
💬 对话命令
在聊天通道中使用的命令,以 / 开头
| 命令 | 描述 | 用法 | 示例 |
|---|---|---|---|
| /new | 开始新对话 | /new | /new |
| /help | 显示帮助信息 | /help [命令] | /help skill |
| /skill | 使用技能 | /skill [技能名] [参数] | /skill websearch "OpenClaw" |
| /agent | 切换代理 | /agent [代理名] | /agent sandbox |
| /clear | 清空对话历史 | /clear | /clear |
| /history | 查看对话历史 | /history [数量] | /history 10 |
| /settings | 查看或修改设置 | /settings [选项] [值] | /settings language zh-CN |
| /info | 显示系统信息 | /info | /info |
| /ping | 测试系统响应 | /ping | /ping |
🖥️ 终端命令
在终端中使用的命令,以 openclaw 开头
| 命令 | 描述 | 用法 | 示例 |
|---|---|---|---|
| openclaw gateway | Gateway 管理 | openclaw gateway [start|stop|restart|status] | openclaw gateway start |
| openclaw dashboard | 打开管理界面 | openclaw dashboard | openclaw dashboard |
| openclaw skill | 技能管理 | openclaw skill [install|uninstall|list|update] | openclaw skill install Tongyu-Yan/turix-cua |
| openclaw doctor | 系统诊断 | openclaw doctor | openclaw doctor |
| openclaw onboard | 引导配置 | openclaw onboard [--install-daemon] | openclaw onboard --install-daemon |
| openclaw config | 配置管理 | openclaw config [get|set|list] | openclaw config set language zh-CN |
| openclaw version | 查看版本 | openclaw version | openclaw version |
| openclaw update | 更新 OpenClaw | openclaw update | openclaw update |
🧩 技能命令
与技能相关的命令
| 命令 | 描述 | 用法 | 示例 |
|---|---|---|---|
| openclaw skill install | 安装技能 | openclaw skill install [用户名/技能名] | openclaw skill install Tongyu-Yan/turix-cua |
| openclaw skill uninstall | 卸载技能 | openclaw skill uninstall [技能名] | openclaw skill uninstall turix-cua |
| openclaw skill list | 列出已安装技能 | openclaw skill list | openclaw skill list |
| openclaw skill update | 更新技能 | openclaw skill update [技能名] | openclaw skill update turix-cua |
| openclaw skill search | 搜索技能 | openclaw skill search [关键词] | openclaw skill search web |
| openclaw skill info | 查看技能信息 | openclaw skill info [技能名] | openclaw skill info turix-cua |
🤖 代理命令
与代理相关的命令
| 命令 | 描述 | 用法 | 示例 |
|---|---|---|---|
| /agent default | 切换到默认代理 | /agent default | /agent default |
| /agent sandbox | 切换到沙箱代理 | /agent sandbox | /agent sandbox |
| /agent multi | 切换到多代理模式 | /agent multi | /agent multi |
| openclaw agent list | 列出可用代理 | openclaw agent list | openclaw agent list |
| openclaw agent info | 查看代理信息 | openclaw agent info [代理名] | openclaw agent info sandbox |
⚙️ 系统命令
系统管理相关的命令
| 命令 | 描述 | 用法 | 示例 |
|---|---|---|---|
| openclaw gateway start | 启动 Gateway | openclaw gateway start | openclaw gateway start |
| openclaw gateway stop | 停止 Gateway | openclaw gateway stop | openclaw gateway stop |
| openclaw gateway restart | 重启 Gateway | openclaw gateway restart | openclaw gateway restart |
| openclaw gateway status | 查看 Gateway 状态 | openclaw gateway status | openclaw gateway status |
| openclaw doctor | 系统诊断 | openclaw doctor | openclaw doctor |
| openclaw config get | 获取配置 | openclaw config get [选项] | openclaw config get language |
| openclaw config set | 设置配置 | openclaw config set [选项] [值] | openclaw config set language zh-CN |
| openclaw config list | 列出所有配置 | openclaw config list | openclaw config list |
📝 命令示例
💬
对话命令示例
你: /new
已开始新对话
你好!我是 OpenClaw,有什么可以帮助你的?
你: /skill websearch "OpenClaw 官网"
正在搜索...
找到以下结果:
1. OpenClaw 官方网站 - openclaw.ai
2. GitHub 仓库 - github.com/openclaw/openclaw
你: /agent sandbox
已切换到沙箱代理
注意:沙箱代理提供更安全的环境,但可能功能受限
🖥️
终端命令示例
Terminal
# 启动 Gateway
openclaw gateway start
# 安装技能
openclaw skill install Tongyu-Yan/turix-cua
# 查看状态
openclaw gateway status
# 运行诊断
openclaw doctor
# 打开管理界面
openclaw dashboard
💡
实用命令组合
快速启动 OpenClaw
Terminal
# 启动 Gateway 并打开管理界面
openclaw gateway start && openclaw dashboard
技能管理
Terminal
# 安装多个技能
openclaw skill install Tongyu-Yan/turix-cua && openclaw skill install user/websearch
# 更新所有技能
openclaw skill list | grep -E '^[^ ]+' | xargs -I {} openclaw skill update {}