# 附录E：命令速查手册

本附录汇总 OpenClaw 的终端 CLI 命令与聊天斜杠命令，供日常操作时快速查阅。命令参数可能随版本演进，建议以 `openclaw <命令> --help` 的实际输出为准。

## E.1 基础操作与服务管理

| 命令                                 | 说明                 | 关联章节                                                                                                             |
| ---------------------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------- |
| `openclaw --version`               | 查看当前版本号            | [2.1](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.1_requirements)              |
| `openclaw --help`                  | 查看所有可用命令与用法        | —                                                                                                                |
| `openclaw tui`                     | 打开终端交互对话界面         | [2.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                |
| `openclaw dashboard`               | 打开网页控制台（Dashboard） | [3.1](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.1_control_ui_webchat) |
| `openclaw gateway restart`         | 重启网关服务（改完配置后常用）    | [4.1](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.1_config_system)     |
| `openclaw gateway stop`            | 停止网关服务             | —                                                                                                                |
| `openclaw update`                  | 更新到最新版本            | [2.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.2_installation)              |
| `openclaw update --channel stable` | 切换到稳定版通道并更新        | [2.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.2_installation)              |
| `openclaw update --channel beta`   | 切换到测试版通道并更新        | [2.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.2_installation)              |

## E.2 安装、初始化与配置

| 命令                                  | 说明                  | 关联章节                                                                                                         |
| ----------------------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------ |
| `openclaw setup`                    | 初始化配置文件、工作区与会话目录    | [2.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)            |
| `openclaw onboard`                  | 启动交互式配置向导           | [2.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)            |
| `openclaw setup --wizard`           | 从 `setup` 入口进入交互式向导 | [2.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)            |
| `openclaw onboard --install-daemon` | 配置向导 + 安装为系统后台服务    | [2.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)            |
| `openclaw configure`                | 重新进入配置向导（可随时修改设置）   | [2.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)            |
| `openclaw config file`              | 查看当前配置文件路径          | [4.1](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.1_config_system) |
| `openclaw config get <路径>`          | 读取指定配置项的当前值         | [4.1](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.1_config_system) |
| `openclaw config set <路径> <值>`      | 非交互式更新指定配置项         | [4.1](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.1_config_system) |

## E.3 诊断与排障

| 命令                               | 说明                         | 关联章节                                                                                                                 |
| -------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `openclaw doctor`                | 全面健康检查（配置、端口、依赖）           | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)            |
| `openclaw doctor --repair`       | 健康检查 + 应用推荐修复（`--fix` 为别名） | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)            |
| `openclaw health --json`         | 健康探针（适合自动化）                | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)            |
| `openclaw status`                | 查看运行状态（Gateway 是否在线、端口等）   | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)            |
| `openclaw status --deep`         | 详细状态（含网关健康探测）              | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)            |
| `openclaw logs`                  | 查看最近日志                     | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)            |
| `openclaw logs --follow --json`  | 实时跟踪结构化日志                  | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)            |
| `openclaw security audit`        | 安全基线审计（谁能对话、在哪执行、能触及什么）    | [8.5](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/08_automation_ops/8.5_security_baseline) |
| `openclaw security audit --deep` | 深度安全审计                     | [8.5](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/08_automation_ops/8.5_security_baseline) |
| `openclaw security audit --fix`  | 安全审计 + 自动修复                | [8.5](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/08_automation_ops/8.5_security_baseline) |

> 遇到问题时的推荐排查顺序：`doctor` → `logs` → `status` → `gateway restart` → `doctor --repair`。旧资料里常见的 `doctor --fix` 仍会在部分迁移/兼容文档中出现；实际以本地 `openclaw doctor --help` 为准。详见[附录C](https://yeasy.gitbook.io/openclaw_guide/fu-lu/appendix/troubleshooting_checklist)。

## E.4 模型管理

| 命令                                                  | 说明                  | 关联章节                                                                                                           |
| --------------------------------------------------- | ------------------- | -------------------------------------------------------------------------------------------------------------- |
| `openclaw models list`                              | 列出所有已配置的模型          | [4.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.3_model_selection) |
| `openclaw models set <供应商/模型名>`                     | 切换默认模型              | [4.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.3_model_selection) |
| `openclaw models status --check`                    | 模型接口连通性验证           | [4.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.2_provider_access) |
| `openclaw models auth add --provider <供应商>`         | 交互式添加供应商认证档案        | [4.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.2_provider_access) |
| `openclaw models auth setup-token --provider <供应商>` | 为指定供应商生成 Token 录入流程 | [4.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.2_provider_access) |
| `openclaw models auth paste-token --provider <供应商>` | 粘贴 API Token 认证     | [4.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.2_provider_access) |

## E.5 渠道管理

| 命令                                                         | 说明                   | 关联章节                                                                                                              |
| ---------------------------------------------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `openclaw channels list`                                   | 列出已配置的渠道             | [7.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.1_telegram_whatsapp) |
| `openclaw channels status`                                 | 查看所有渠道状态             | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)         |
| `openclaw channels capabilities`                           | 渠道能力、配置与联调入口         | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)         |
| `openclaw channels add`                                    | 添加新渠道（交互式向导）         | [7.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.1_telegram_whatsapp) |
| `openclaw channels add --channel telegram --token <TOKEN>` | 非交互式添加 Telegram 渠道   | [7.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.1_telegram_whatsapp) |
| `openclaw channels add --channel feishu`                   | 添加飞书渠道               | [7.2](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.2_lark_integration)  |
| `openclaw channels remove --channel <名称>`                  | 移除渠道                 | [7.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.1_telegram_whatsapp) |
| `openclaw channels logs`                                   | 查看渠道日志               | [3.2](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.2_diagnostics)         |
| `openclaw channels login`                                  | 登录渠道（如 WhatsApp Web） | [7.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.1_telegram_whatsapp) |
| `openclaw channels logout`                                 | 登出渠道                 | [7.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.1_telegram_whatsapp) |

常见渠道类型包括：`whatsapp`、`telegram`、`discord`、`slack`、`googlechat`、`signal`、`bluebubbles`、`irc`、`matrix`、`nextcloud-talk`、`nostr`、`qqbot`、`synology-chat`、`twitch`、`openclaw-weixin`、`zalo`、`zalouser`、`feishu`、`mattermost`、`msteams`。`webchat` 更适合作为内部 UI 渠道理解，而不是常规出站 channel 类型；`imessage` 目前属于 legacy 路径。完整列表以当前版本 CLI 与官方渠道文档为准。

## E.6 插件与技能

**插件管理**

| 命令                               | 说明          | 关联章节                                                                                                                                                  |
| -------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `openclaw plugins list`          | 列出所有插件      | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |
| `openclaw plugins install <插件名>` | 安装插件        | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |
| `openclaw plugins enable <插件名>`  | 启用插件        | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |
| `openclaw plugins disable <插件名>` | 禁用插件        | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |
| `openclaw plugins inspect <插件名>` | 查看单个插件详情与来源 | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |
| `openclaw plugins doctor`        | 检查插件加载错误    | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |

**技能管理**

| 命令                              | 说明         | 关联章节                                                                                                            |
| ------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------- |
| `openclaw skills search <关键词>`  | 在技能仓库中搜索技能 | [5.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.3_skills_plugins) |
| `openclaw skills list`          | 列出已安装的技能   | [5.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.3_skills_plugins) |
| `openclaw skills install <技能名>` | 安装技能       | [5.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.3_skills_plugins) |

## E.7 网关管理

| 命令                                 | 说明         | 关联章节                                                                                                                                    |
| ---------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `openclaw gateway start`           | 启动网关       | [2.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.4_gateway_service)                                  |
| `openclaw gateway --port <端口>`     | 指定端口启动     | [2.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.4_gateway_service)                                  |
| `openclaw gateway --verbose`       | 启动并显示详细日志  | [2.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.4_gateway_service)                                  |
| `openclaw gateway status`          | 查看网关的当前状态  | [2.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.4_gateway_service)                                  |
| `openclaw gateway restart`         | 重启网关       | [2.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.4_gateway_service)                                  |
| `openclaw gateway --token <token>` | 带 token 启动 | [9.3](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/09_gateway_protocol/9.3_ws_handshake) |

## E.8 沙箱与浏览器

**沙箱管理**

| 命令                                        | 说明            | 关联章节                                                                                                                                        |
| ----------------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `openclaw sandbox explain`                | 查看当前沙箱配置状态    | [11.4](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/11_reliability_security/11.4_guardrails) |
| `openclaw sandbox explain --json`         | JSON 格式查看沙箱配置 | [11.4](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/11_reliability_security/11.4_guardrails) |
| `openclaw sandbox list`                   | 列出所有沙箱容器      | [11.4](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/11_reliability_security/11.4_guardrails) |
| `openclaw sandbox list --browser`         | 只列出浏览器容器      | [11.4](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/11_reliability_security/11.4_guardrails) |
| `openclaw sandbox recreate --all`         | 重建所有容器        | [11.4](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/11_reliability_security/11.4_guardrails) |
| `openclaw sandbox recreate --all --force` | 强制重建（跳过确认）    | [11.4](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/11_reliability_security/11.4_guardrails) |

**浏览器控制**

| 命令                                | 说明         | 关联章节                                                                                                           |
| --------------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------- |
| `openclaw browser open <URL>`     | 打开网页       | [5.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.4_browser_nodes) |
| `openclaw browser snapshot`       | 截取当前页面快照   | [5.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.4_browser_nodes) |
| `openclaw browser screenshot`     | 截图         | [5.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.4_browser_nodes) |
| `openclaw browser click <元素>`     | 点击页面元素     | [5.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.4_browser_nodes) |
| `openclaw browser type <元素> <文字>` | 在输入框中输入文字  | [5.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.4_browser_nodes) |
| `openclaw browser close`          | 关闭浏览器      | [5.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.4_browser_nodes) |
| `openclaw browser console`        | 查看浏览器控制台日志 | [5.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.4_browser_nodes) |

## E.9 消息与配对

| 命令                                                   | 说明            | 关联章节                                                                                                                                     |
| ---------------------------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `openclaw message send --target <号码> --message "内容"` | 向指定目标发送消息     | [7.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.1_telegram_whatsapp)                        |
| `openclaw agent --message "任务内容"`                    | 直接给 Agent 发任务 | [7.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.3_routing_basics)                           |
| `openclaw agent --message "任务" --thinking high`      | 发任务（高思考深度）    | [7.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.3_routing_basics)                           |
| `openclaw pairing approve <渠道> <配对码>`                | 批准私聊配对码       | [9.5](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/09_gateway_protocol/9.5_pairing_trust) |

## E.10 聊天斜杠命令

以下命令在 OpenClaw 的聊天窗口中使用（WebChat、飞书、Telegram 等通用）。

**会话管理**

| 命令                    | 说明                      | 关联章节                                                                                                                  |
| --------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `/new`                | 开始新会话（清除上下文）            | [6.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.1_sessions)           |
| `/new <任务描述>`         | 开始新会话并附带任务              | [6.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.1_sessions)           |
| `/compact`            | 压缩当前上下文（保留要点，减少 Token）  | [6.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.4_compaction_pruning) |
| `/btw <问题>`           | 针对当前上下文的旁路提问，不影响后续会话上下文 | —                                                                                                                     |
| `/status`             | 查看当前会话状态（Token 用量、模型等）  | [6.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.1_sessions)           |
| `/help` 或 `/commands` | 查看所有可用斜杠命令              | —                                                                                                                     |

**模型切换**

| 命令             | 说明        | 关联章节                                                                                                           |
| -------------- | --------- | -------------------------------------------------------------------------------------------------------------- |
| `/model`       | 查看当前使用的模型 | [4.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.3_model_selection) |
| `/model <模型名>` | 切换到指定模型   | [4.3](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.3_model_selection) |

**会话历史**

| 命令                           | 说明        | 关联章节                                                                                                                   |
| ---------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------- |
| `/sessions list`             | 列出所有会话    | [6.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.1_sessions)            |
| `/sessions history`          | 查看会话历史    | [6.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.1_sessions)            |
| `/sessions send <会话ID> <消息>` | 向指定会话发消息  | [6.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.1_sessions)            |
| `/sessions spawn <任务>`       | 创建子会话执行任务 | [7.4](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/07_multi_agent/7.4_collaboration_patterns) |

**工具与执行控制**

| 命令         | 说明          | 关联章节                                                                                                         |
| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------ |
| `/approve` | 批准待确认的操作    | [5.2](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.2_tool_policy) |
| `/deny`    | 拒绝待确认的操作    | [5.2](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.2_tool_policy) |
| `/cancel`  | 取消当前正在执行的任务 | —                                                                                                            |
| `/undo`    | 撤销上一步操作     | —                                                                                                            |

**技能、插件与记忆**

| 命令                                                   | 说明                                        | 关联章节                                                                                                                                                  |
| ---------------------------------------------------- | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/skill <名称> [输入]`                                   | 按名称运行指定技能                                 | [5.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.3_skills_plugins)                                       |
| `/plugins list\|show\|get\|install\|enable\|disable` | 插件/扩展发现、安装与启停（需 `commands.plugins: true`） | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |
| `/plugin ...`                                        | `/plugins` 的别名                            | [12.1](https://yeasy.gitbook.io/openclaw_guide/di-san-bu-fen-shi-xian-yuan-li-yu-gong-cheng-luo-di/12_extension_engineering/12.1_plugin_architecture) |
| `/memory`                                            | 查看记忆内容                                    | [6.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.3_memory_mechanism)                                   |
| `/forget <内容>`                                       | 删除指定记忆                                    | [6.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.3_memory_mechanism)                                   |

**信息查询**

| 命令            | 说明               | 关联章节                                                                                                                                   |
| ------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `/usage cost` | 查看 Token 消耗与费用估算 | [14.3](https://yeasy.gitbook.io/openclaw_guide/di-si-bu-fen-shi-zhan-yu-you-hua-shen-du-zhi-nan/14_performance_cost/14.3_usage_budget) |
| `/version`    | 查看版本信息           | —                                                                                                                                      |
| `/ping`       | 测试连接是否正常         | —                                                                                                                                      |

## E.11 关键文件路径速查

| 路径                                   | 说明                 | 关联章节                                                                                                                |
| ------------------------------------ | ------------------ | ------------------------------------------------------------------------------------------------------------------- |
| `~/.openclaw/openclaw.json`          | 主配置文件              | [4.1](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/04_config_models/4.1_config_system)        |
| `~/.openclaw/workspace/`             | 默认工作区（含引导文件）       | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/workspace/AGENTS.md`    | 工作区主页与启动清单         | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/workspace/SOUL.md`      | 智能体人格定义            | [3.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/03_minimal_loop/3.3_agent_persona)       |
| `~/.openclaw/workspace/USER.md`      | 用户偏好与画像            | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/workspace/IDENTITY.md`  | 智能体元数据（名称、形象）      | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/workspace/TOOLS.md`     | 环境级工具备忘            | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/workspace/HEARTBEAT.md` | 心跳巡检清单             | [8.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/08_automation_ops/8.3_heartbeat)        |
| `~/.openclaw/workspace/BOOT.md`      | Gateway 启动期的可选自检清单 | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/workspace/BOOTSTRAP.md` | 首次运行入职脚本           | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/workspace/MEMORY.md`    | 可选长期记忆索引           | [6.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.3_memory_mechanism) |
| `~/.openclaw/workspace/memory/`      | 按日期分片的工作区记忆        | [6.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.3_memory_mechanism) |
| `~/.openclaw/workspace/skills/`      | 工作区级技能目录           | [5.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.3_skills_plugins)     |
| `~/.openclaw/workspace/canvas/`      | 节点 UI 或可视化资源       | [2.3.4](https://yeasy.gitbook.io/openclaw_guide/di-yi-bu-fen-ji-chu-ru-men/02_setup/2.3_onboarding)                 |
| `~/.openclaw/skills/`                | 共享/托管技能目录          | [5.3](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/05_tools_skills/5.3_skills_plugins)     |
| `~/.openclaw/agents/`                | Agent 数据目录         | —                                                                                                                   |
| `~/.openclaw/cron/jobs.json`         | 定时任务定义存储           | [8.2](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/08_automation_ops/8.2_cron_jobs)        |
| `~/.openclaw/agents/<ID>/sessions/`  | 会话记录               | [6.1](https://yeasy.gitbook.io/openclaw_guide/di-er-bu-fen-jin-jie-shi-yong/06_context_memory/6.1_sessions)         |

> Windows 用户注意：`~` 等于 `%USERPROFILE%`，即 `C:\Users\<你的用户名>`。
