OpenClaw 最常用、最实用的命令速查

OpenClaw 最常用、最实用的命令速查p 一 启动 配置 p 交互式配置 第一次必用 openclaw configure 初始化工作区 openclaw setup 仅查看配置 openclaw config 开发隔离模式启动网关 openclaw dev gateway 二 网关 核心服务

大家好,我是讯享网,很高兴认识大家。这里提供最前沿的Ai技术和互联网信息。



 <p>一、启动 / 配置</p> 

GPT plus 代充 只需 145

# 交互式配置(第一次必用)

openclaw configure

# 初始化工作区

openclaw setup

# 仅查看配置

openclaw config

# 开发隔离模式启动网关

openclaw --dev gateway

二、网关(核心服务)

# 启动网关(默认端口)

openclaw gateway

# 指定端口启动

openclaw gateway --port 18789

# 强制占用端口并启动

openclaw gateway --force

# 查看网关健康状态

openclaw health

# 实时看日志

openclaw logs

三、面板 / UI

# 打开控制面板网页

openclaw dashboard

# 终端 TUI 面板

openclaw tui

四、模型配置

 # 查看模型命令帮助

openclaw models --help

# 扫描/配置模型

openclaw models configure

五、消息 / 聊天通道

 # 登录 WhatsApp Web

openclaw channels login

# 发送 WhatsApp 消息

openclaw message send --target +手机号 --message "内容"

# 发送 Telegram 消息

openclaw message send --channel telegram --target @用户名 --message "Hi"

六、Agent / 节点

 # 运行一次 agent

openclaw agent --to 目标 --message "指令" --deliver

# 管理 agent

openclaw agents

# 管理节点

openclaw nodes

七、诊断 / 修复

 # 健康检查+自动修复

openclaw doctor

八、重置 / 卸载

 # 重置本地配置(保留CLI)

openclaw reset

# 卸载服务和数据(保留CLI)

openclaw uninstall

___________________

OpenClaw CLI 命令中英文对照(文字版)

基础信息

- OpenClaw 2026.2.25 (4b5d4a4)

- 自动化利爪:极简配置,极致抓取

Automation with claws: minimal fuss, maximal pinch.

用法

Usage: openclaw [options] [command]

用法:openclaw [选项] [命令]

选项 / Options

- --dev

开发环境配置:状态隔离到 ~/.openclaw-dev,默认网关端口 19001

- -h, --help

显示帮助信息

- --log-level 

全局日志级别(silent|fatal|error|warn|info|debug|trace)

- --no-color

关闭 ANSI 颜色输出

- --profile 

使用命名配置文件(配置隔离到 ~/.openclaw-)

- -V, --version

显示版本号

命令 / Commands

- acp *

Agent 控制协议工具

- agent

通过网关执行一次 Agent 任务

- agents *

管理独立 Agent(工作区、认证、路由)

- approvals *

管理执行审批(网关或节点主机)

- browser *

管理 OpenClaw 专用浏览器(Chrome/Chromium)

- channels *

管理连接的聊天渠道(Telegram、Discord 等)

- clawbot *

旧版 clawbot 命令别名

- completion

生成 Shell 自动补全脚本

- config *

非交互式配置工具(get/set/unset),默认启动配置向导

- configure

交互式配置向导(凭证、渠道、网关、Agent 默认值)

- cron *

通过网关调度器管理定时任务

- daemon *

网关服务(旧别名)

- dashboard

使用当前令牌打开控制界面

- devices *

设备配对 + 令牌管理

- directory *

查询联系人、群组 ID(支持各类聊天渠道)

- dns *

广域发现 DNS 工具(Tailscale + CoreDNS)

- docs

搜索在线文档

- doctor

健康检查 + 快速修复(网关、渠道)

- gateway *

运行、查看、查询 WebSocket 网关

- health

获取运行中网关的健康状态

- help

显示帮助

- hooks *

管理内部 Agent 钩子

- logs

通过 RPC 实时查看网关日志

- memory *

搜索、重建索引记忆文件

- message *

发送、读取、管理消息

- models *

发现、扫描、配置模型

- node *

运行管理无头节点主机服务

- nodes *

管理网关所属节点配对与命令

- onboard

交互式引导向导(网关、工作区、技能)

- pairing *

安全私信配对(批准入站请求)

- plugins *

管理插件与扩展

- qr

生成 iOS 配对二维码/安装码

- reset

重置本地配置/状态(保留 CLI)

- sandbox *

管理 Agent 隔离沙箱容器

- security *

安全工具与本地配置审计

- sessions *

列出存储的对话会话

- setup

初始化本地配置与 Agent 工作区

- skills *

列出、查看可用技能

- status

显示渠道健康状态与最近会话接收方

- system *

系统事件、心跳、在线状态

- tui

打开连接网关的终端界面

- uninstall

卸载网关服务 + 本地数据(保留 CLI)

- update *

更新 OpenClaw 与检查更新通道

- webhooks *

Webhook 工具与集成

示例 / Examples

- openclaw models --help

查看 models 命令详细帮助

- openclaw channels login --verbose

登录 WhatsApp Web 并显示二维码与连接日志

- openclaw message send --target + --message "Hi" --json

发送消息并打印 JSON 结果

- openclaw gateway --port 18789

本地运行 WebSocket 网关

- openclaw --dev gateway

运行开发环境网关(隔离配置)ws://127.0.0.1:19001

- openclaw gateway --force

强制占用默认网关端口并启动

- openclaw agent --to + --message "Run summary" --deliver

直接通过网关与 Agent 交互,可发送 WhatsApp 回复

- openclaw message send --channel telegram --target @mychat --message "Hi"

通过 Telegram 机器人发送消息

文档:docs.openclaw.ai/cli


小讯
上一篇 2026-03-11 21:07
下一篇 2026-03-11 21:09

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/213696.html