🦞 OpenClaw 2026.4.8 (9ece252) — 比你心理医生的 intake 表单还要多的集成。
用法: openclaw [选项] [命令]
选项:
--container <name> 在名为 <name> 的运行中的 Podman/Docker 容器内运行 CLI (默认: 环境变量 OPENCLAW_CONTAINER)
--dev 开发模式:将状态隔离在 ~/.openclaw-dev 下,默认网关端口为 19001,并顺移衍生端口 (浏览器/canvas)
-h, --help 显示命令帮助
--log-level <level> 全局日志级别覆盖 (文件 + 控制台) (可选值: silent|fatal|error|warn|info|debug|trace)
--no-color 禁用 ANSI 颜色
--profile <name> 使用命名配置文件 (将 OPENCLAW_STATE_DIR/OPENCLAW_CONFIG_PATH 隔离在 ~/.openclaw-<name> 下)
-V, --version 输出版本号
命令:
(提示:后缀带 * 的命令拥有子命令。运行 <command> --help 查看详情。)
acp * Agent Control Protocol (代理控制协议) 工具
agent 通过 Gateway 运行单次代理交互
agents * 管理隔离的代理 (工作区、认证、路由)
approvals * 管理执行批准 (gateway 或 node host)
backup * 为 OpenClaw 状态创建和验证本地备份归档
capability * 运行提供商支持的推理命令 (回退别名: infer)
channels * 管理已连接的聊天频道 (Telegram, Discord 等)
clawbot * 旧版 clawbot 命令别名
completion 生成 shell 补全脚本
config * 非交互式配置助手 (get/set/unset/file/validate)。默认:启动引导式设置。
configure 交互式配置凭据、频道、网关和代理默认值
cron * 通过 Gateway 调度器管理 cron 任务
daemon * Gateway 服务 (旧版别名)
dashboard 使用当前的令牌打开控制 UI
devices * 设备配对 + 令牌管理
directory * 查找支持的聊天频道的联系人和群组 ID (自己、对等端、群组)
dns * 用于广域发现的 DNS 助手 (Tailscale + CoreDNS)
docs 搜索实时 OpenClaw 文档
doctor Gateway 和频道的健康检查 + 快速修复
gateway * 运行、检查和查询 WebSocket Gateway
health 从运行中的 gateway 获取健康状态
help 显示命令帮助
hooks * 管理内部代理钩子
infer * 运行提供商支持的推理命令
logs 通过 RPC 追踪 gateway 文件日志
mcp * 管理 OpenClaw MCP 配置和频道桥接
memory 搜索、检查和重新索引记忆文件
message * 发送、读取和管理消息
models * 发现、扫描和配置模型
node * 运行和管理无头 node host 服务
nodes * 管理 gateway 拥有的节点配对和节点命令
onboard Gateway、工作区和技能的交互式引导入门
pairing * 安全 DM 配对 (批准入站请求)
plugins * 管理 OpenClaw 插件和扩展
qa * 运行 QA 场景并启动私有 QA 调试 UI
qr 生成移动端配对 QR/设置码
reset 重置本地配置/状态 (保留 CLI 安装)
sandbox * 管理用于代理隔离的沙箱容器
secrets * 密钥运行时重载控制
security * 安全工具和本地配置审计
sessions * 列出存储的会话
setup 初始化本地配置和代理工作区
skills * 列出和检查可用技能
status 显示频道健康和最近的会话接收者
system * 系统事件、心跳和在线状态
tasks * 检查持久化后台任务状态
tui 打开连接到 Gateway 的终端 UI (这很可能是你想要的交互界面)
uninstall 卸载 gateway 服务 + 本地数据 (CLI 保留)
update * 更新 OpenClaw 并检查更新通道状态
webhooks * Webhook 助手和集成
示例:
openclaw models --help
显示 models 命令的详细帮助。
openclaw channels login --verbose
关联个人 WhatsApp Web 并显示 QR + 连接日志。
openclaw message send --target +15555550123 --message "Hi" --json
通过你的 web 会话发送并打印 JSON 结果。
openclaw gateway --port 18789
在本地运行 WebSocket Gateway。
openclaw --dev gateway
运行开发 Gateway (隔离状态/配置) 于 ws://127.0.0.1:19001。
openclaw gateway --force
杀掉占用默认 gateway 端口的进程,然后启动它。
openclaw gateway ...
通过 WebSocket 控制 Gateway。
openclaw agent --to +15555550123 --message "Run summary" --deliver
使用 Gateway 直接与代理对话;可选发送 WhatsApp 回复。
openclaw message send --channel telegram --target @mychat --message "Hi"
通过你的 Telegram 机器人发送。
文档: https://docs.openclaw.ai/cli
评论