🦞 OpenClaw 命令速查手册
📌 聊天命令
| 命令 | 说明 |
|---|---|
/new | 开启新会话,清空上下文 |
/reset | 重置对话(同 /new) |
/status | 查看会话状态(模型、用量、费用) |
/reasoning | 开启 / 关闭深度推理模式 |
/model <名称> | 切换模型(如 /model gpt-4) |
/help | 查看帮助 |
/skills | 查看已安装技能 |
/agents | 查看可用 Agent |
🖥 CLI 命令
🔹 Gateway 控制
bashopenclaw gateway # 启动网关(默认) openclaw gateway status # 查看网关状态 openclaw gateway start # 启动网关服务 openclaw gateway stop # 停止网关服务 openclaw gateway restart # 重启网关服务 openclaw gateway install # 安装网关服务 openclaw gateway uninstall # 卸载网关服务
🔹 常用工具
bashopenclaw setup # 初始化设置 openclaw configure # 配置向导 openclaw doctor # 健康检查 openclaw status # 系统状态 openclaw logs # 查看日志 openclaw dashboard # 打开仪表盘
🔹 消息发送
发送消息到指定目标:
bashopenclaw message send --target <号码> --message 内容
通过指定通道发送:
bashopenclaw message send \ --channel telegram \ --target @用户 \ --message 内容
🔹 通道管理
bashopenclaw channels login # 登录通道 openclaw channels # 查看通道列表
🔹 其他实用命令
bashopenclaw --dev gateway # 开发模式启动网关 openclaw gateway --force # 强制启动网关 openclaw skills # 查看技能列表 openclaw agents # 查看代理列表 openclaw browser # 打开浏览器工具
🔹 常用启动参数
| 参数 | 说明 |
|---|---|
--port 18789 | 指定网关端口 |
--force | 强制执行 |
--verbose | 详细日志输出 |
--dev | 开发者模式 |
bashopenclaw gateway --port 18789 # 指定端口启动 openclaw gateway --force # 强制启动 openclaw --verbose # 详细输出模式 openclaw --dev gateway # 开发模式
💡 提示
- ▹所有命令都支持
--help参数查看详细帮助 - ▹使用
openclaw doctor可以快速诊断常见问题 - ▹网关默认端口为
18789,可通过--port参数修改