🦞 OpenClaw 命令速查手册


📌 聊天命令

命令说明
/new开启新会话,清空上下文
/reset重置对话(同 /new)
/status查看会话状态(模型、用量、费用)
/reasoning开启 / 关闭深度推理模式
/model <名称>切换模型(如 /model gpt-4
/help查看帮助
/skills查看已安装技能
/agents查看可用 Agent

🖥 CLI 命令

🔹 Gateway 控制

bash
openclaw gateway          # 启动网关(默认)
openclaw gateway status   # 查看网关状态
openclaw gateway start    # 启动网关服务
openclaw gateway stop     # 停止网关服务
openclaw gateway restart  # 重启网关服务
openclaw gateway install  # 安装网关服务
openclaw gateway uninstall # 卸载网关服务

🔹 常用工具

bash
openclaw setup            # 初始化设置
openclaw configure        # 配置向导
openclaw doctor           # 健康检查
openclaw status           # 系统状态
openclaw logs             # 查看日志
openclaw dashboard        # 打开仪表盘

🔹 消息发送

发送消息到指定目标:

bash
openclaw message send --target <号码> --message 内容

通过指定通道发送:

bash
openclaw message send \
  --channel telegram \
  --target @用户 \
  --message 内容

🔹 通道管理

bash
openclaw channels login   # 登录通道
openclaw channels         # 查看通道列表

🔹 其他实用命令

bash
openclaw --dev gateway    # 开发模式启动网关
openclaw gateway --force  # 强制启动网关
openclaw skills           # 查看技能列表
openclaw agents           # 查看代理列表
openclaw browser          # 打开浏览器工具

🔹 常用启动参数

参数说明
--port 18789指定网关端口
--force强制执行
--verbose详细日志输出
--dev开发者模式
bash
openclaw gateway --port 18789   # 指定端口启动
openclaw gateway --force        # 强制启动
openclaw --verbose              # 详细输出模式
openclaw --dev gateway          # 开发模式

💡 提示

  • 所有命令都支持 --help 参数查看详细帮助
  • 使用 openclaw doctor 可以快速诊断常见问题
  • 网关默认端口为 18789,可通过 --port 参数修改
非官方中文版本

本网站为非官方中文版本。此项目的目的是为了让国内用户快速了解如何使用 OpenClaw 而汉化的内容。 官方英文文档请访问 docs.openclaw.ai