【学习心得】OpenClaw和Hermes命令速查
·
首先我得告诉你,这些命令都不需要记,如果你忘记了,可以直接和智能体对话让它告诉你。那为什么我还要写这个文章呢?我是为了后续自己制作skill让智能体来读这篇文章。
OpenClaw常用命令表
| 分类 | 常用命令 | 说明 |
|---|---|---|
| 版本/帮助 | openclaw --version / openclaw --help | 查看版本、查看所有命令 |
| 初始化 | openclaw onboard / openclaw configure | 首次配置向导;重新配置 |
| 配置 | openclaw config get/set/unset/validate | 读写配置、校验配置 |
| 网关启动 | openclaw gateway / openclaw gateway run | 启动网关;gateway 等价于 gateway runsource_group_web_2 |
| 网关管理 | openclaw gateway start/stop/restart/status | 后台启停、重启、查看状态 |
| 网关服务 | openclaw gateway install/uninstall | 安装/卸载系统服务 |
| 健康检查 | openclaw health / openclaw gateway health | 检查网关健康状态 |
| 状态诊断 | openclaw status / openclaw status --deep | 查看整体状态、深度探测 |
| 排障修复 | openclaw doctor / openclaw doctor --fix | 自动诊断并修复问题 |
| 日志查看 | openclaw logs / openclaw logs --follow | 查看网关日志、实时跟踪 |
| 模型管理 | openclaw models list/status/set | 查看模型列表、状态、切换默认模型 |
| 模型认证 | openclaw models auth add/paste-token/setup-token | 添加模型认证、粘贴 API Token |
| 通道管理 | openclaw channels list/status/login/logout | 管理 Telegram、Discord 等内置通道 |
| 添加通道 | openclaw channels add --channel <名称> | 仅内置通道可用;自定义插件通道用 config setsource_group_web_3 |
| 发送消息 | openclaw message send --channel <名> --target <id> --message "内容" | 主动向通道目标发消息 |
| 插件管理 | openclaw plugins list/install/enable/disable | 管理插件,微信、飞书等属于插件 |
| 技能管理 | openclaw skills list/info/check | 查看、检查技能依赖 |
| 技能商店 | npx clawhub install <skill> | 从 ClawHub 安装技能 |
| Agent 触发 | openclaw agent --message "任务" | 直接触发一次 Agent 运行 |
| Agent 管理 | openclaw agents list/add/delete | 管理多个 Agent |
| 终端界面 | openclaw tui | 打开终端聊天界面source_group_web_4 |
| 网页面板 | openclaw dashboard | 打开 Web 控制台 |
| 更新 | openclaw update | 更新 OpenClaw 到新版本 |
| 重置 | openclaw reset | 重置配置/状态 |
| 卸载 | openclaw uninstall | 卸载网关服务和数据 |
Hermes常用命令表
| 分类 | 常用命令 | 说明 |
|---|---|---|
| 版本/帮助 | hermes --version / hermes --help | 查看版本、查看所有命令 |
| 初始化 | hermes setup | 首次配置向导,含模型、工具、网关 |
| 模型配置 | hermes model | 添加提供商、配置 API Key、选默认模型 |
| 配置管理 | hermes config get/set/edit/check | 查看、修改、编辑、校验配置 |
| 凭证管理 | hermes auth add/list/remove/reset | 管理模型凭证;hermes login/logout 已弃用source_group_web_2 |
| 聊天入口 | hermes / hermes chat | 启动交互式对话 |
| 单次查询 | hermes chat -q "内容" | 非交互式单次查询source_group_web_3 |
| 脚本模式 | hermes -z "内容" | 只输出最终答案,适合脚本/管道source_group_web_4 |
| 恢复会话 | hermes --continue / hermes --resume <id> | 继续最近会话或指定会话source_group_web_5 |
| 终端界面 | hermes --tui | 启动 TUI 界面source_group_web_6 |
| 网关启动 | hermes gateway run | 前台运行网关,WSL / Docker / Termux 推荐source_group_web_7 |
| 网关管理 | hermes gateway start/stop/restart/status | 后台服务启停、重启、查看状态source_group_web_8 |
| 网关安装 | hermes gateway install | 安装为系统后台服务source_group_web_9 |
| 网关配置 | hermes gateway setup | 配置 Telegram、Discord、Slack 等消息平台source_group_web_10 |
| Web 面板 | hermes dashboard | 启动官方 Web Dashboard,默认端口 9119source_group_web_11 |
| 状态诊断 | hermes status / hermes doctor | 查看组件状态;hermes doctor --fix 可自动修复source_group_web_12 |
| 日志查看 | hermes logs / hermes logs -f | 查看日志、实时跟踪;支持 --level、--since 过滤source_group_web_13 |
| 工具管理 | hermes tools list/enable/disable | 管理终端、文件、浏览器、记忆等工具集 |
| 技能管理 | hermes skills browse/install/list/uninstall | 浏览、安装、查看、卸载技能 |
| 定时任务 | hermes cron list/create/pause/resume | 管理定时自动化任务 |
| 会话管理 | hermes sessions list | 查看历史会话source_group_web_14 |
| 数据备份 | hermes backup / hermes import | 备份或恢复 ~/.hermes 数据source_group_web_15 |
| Profile 管理 | hermes profile list/create/use/delete | 管理多实例 Profile |
| 更新/卸载 | hermes update / hermes uninstall | 更新或卸载 Hermes Agentsource_group_web_16 |
更多推荐



所有评论(0)