OpenClaw 完整层级结构·官方指令全集白话版

无心博客
2026-04-02 / 0 评论 / 5 阅读 / 正在检测是否收录...

OpenClaw 完整层级结构·官方指令全集

一级:OpenClaw(整个系统)

  • 安装路径:/var/apps/trim.openclaw/(可用 root)
  • 工作路径:/vol1/@apphome/trim.openclaw/(必须用户:trim.openclaw)

二级:五大核心组件

1. Agent(AI 大脑 / 智能体)

作用:独立思考、记忆、人设、多智能体隔离,可与通道一对一绑定

三级:聊天内 / 指令(官方共 21 条,全)

  1. /new — 清空当前 Agent 记忆
  2. /reset — 重置当前 Agent(清记忆+重载)
  3. /status — 查看当前 Agent、模型、通道信息
  4. /agent — 查看当前使用的 Agent
  5. /agent list — 列出所有 Agent
  6. /agent [id] — 临时切换到指定 Agent
  7. /model — 查看当前模型
  8. /model [name] — 切换模型
  9. /info — 查看会话长度、记忆、权限、上下文
  10. /forget — 删除较早记忆,保留最近对话
  11. /help — 显示帮助
  12. /stop — 暂停当前对话,不再响应
  13. /start — 恢复对话
  14. /clear — 清空界面显示(不清记忆)
  15. /undo — 撤销上一轮对话
  16. /redo — 重做上一轮撤销
  17. /prompt — 查看/设置当前系统提示词
  18. /save — 保存当前会话记忆
  19. /load — 加载历史会话
  20. /config — 查看当前 Agent 配置
  21. /exit — 退出当前会话

2. Gateway(网关 / 总调度)

作用:消息中转站,接收通道消息 → 转发 Agent → 回传回复

三级:CLI 命令(官方共 8 条,全)

  1. ./openclaw gateway start — 启动网关
  2. ./openclaw gateway stop — 停止网关
  3. ./openclaw gateway restart — 重启网关
  4. ./openclaw gateway status — 查看状态
  5. ./openclaw gateway log — 实时日志
  6. ./openclaw gateway reload — 热重载配置
  7. ./openclaw gateway enable — 开机自启
  8. ./openclaw gateway disable — 关闭自启

3. Channels(通道 / 聊天入口:微信/QQ/Web 等)

作用:用户与 AI 对话入口,可每个通道绑定独立 Agent

三级:CLI 命令(官方共 7 条,全)

  1. ./openclaw channel list — 列出所有通道
  2. ./openclaw channel enable [name] — 启用通道
  3. ./openclaw channel disable [name] — 禁用通道
  4. ./openclaw channel bind [channel] [agent] — 通道绑定 Agent
  5. ./openclaw channel unbind [channel] — 解绑 Agent
  6. ./openclaw channel status [name] — 查看通道状态
  7. ./openclaw channel log [name] — 查看通道日志

4. CLI(命令行总控制台)

作用:SSH 内管理整个 OpenClaw 系统

三级:通用 CLI 命令(官方共 13 条,全)

  1. ./openclaw status — 系统总状态
  2. ./openclaw log — 总日志
  3. ./openclaw help — 帮助
  4. ./openclaw version — 版本号
  5. ./openclaw check — 环境检查
  6. ./openclaw backup — 备份配置
  7. ./openclaw restore — 恢复备份
  8. ./openclaw update — 更新程序
  9. ./openclaw init — 初始化环境
  10. ./openclaw shell — 进入内置交互壳
  11. ./openclaw clean — 清理缓存
  12. ./openclaw config show — 显示完整配置
  13. ./openclaw config edit — 编辑配置

5. Skills(技能 / AI 工具包)

作用:AI 可调用的功能,相当于手脚

三级:官方固定工具类型(共 10 类,全)

  1. read — 读文件
  2. write — 写文件
  3. exec — 执行系统命令
  4. search — 搜索
  5. browser — 浏览器操作
  6. git — Git 代码管理
  7. cron — 定时任务
  8. download — 下载文件
  9. upload — 上传文件
  10. plugin — 插件扩展

数量统计

  • 聊天 / 指令:官方 21 条,已补齐全部
  • Gateway CLI:官方 8 条,已全
  • Channel CLI:官方 7 条,已全
  • 系统通用 CLI:官方 13 条,已全
  • Skills 工具:官方 10 类,已全

运行流程(一句话)

微信/QQ 发消息 → Channel → Gateway → 绑定的 Agent → 调用 Skills → 原路返回回复
/new 仅清空当前通道对应的 Agent 记忆,不影响其他智能体

0

评论 (0)

取消