乐于分享
好东西不私藏

OpenClaw 命令速查表 | 开源龙虾玩家必备

OpenClaw 命令速查表 | 开源龙虾玩家必备

OpenClaw 命令速查表 | 2026最新版

本文档为大家整理了 OpenClaw 所有 CLI 命令及其子命令,按功能分类,方便日常查询使用。

1.1 Gateway 服务管理

命令
说明
常用场景
openclaw gateway run
前台运行 Gateway
调试时使用
openclaw gateway start
启动 Gateway 服务
日常启动
openclaw gateway stop
停止 Gateway 服务
维护时停止
openclaw gateway status
查看服务状态
检查是否正常运行
openclaw gateway restart
重启 Gateway
更新配置后重启
openclaw gateway health
健康检查
诊断服务健康状况
openclaw gateway probe
探测连通性
检查网络是否能访问 Gateway

示例:

openclaw gateway status openclaw gateway start openclaw gateway restart 

1.2 系统状态与日志

命令
说明
常用场景
openclaw status
查看整体状态
快速了解运行状况
openclaw health
健康检查
单独检查 Gateway 健康
openclaw logs
查看日志
排查问题时使用
openclaw logs --follow
实时跟踪日志
动态观察日志输出
openclaw logs --json
JSON 格式日志
程序化解析日志

示例:

openclaw status openclaw logs --follow openclaw logs --limit 50 

1.3 控制台与界面

命令
说明
常用场景
openclaw dashboard
打开 Web 控制台
浏览器管理界面
openclaw tui
终端 UI 界面
在终端内交互

示例:

openclaw dashboard openclaw tui 

2.1 会话管理

命令
说明
常用场景
openclaw sessions
列出所有会话
查看对话历史
openclaw sessions --all-agents
跨所有智能体会话
汇总查看
openclaw sessions --active 120
查看最近2小时会话
筛选近期会话
openclaw sessions --json
JSON 格式输出
程序化处理
openclaw sessions cleanup
清理会话存储
维护空间

示例:

openclaw sessions openclaw sessions --all-agents openclaw sessions --active 60 

2.2 智能体管理

命令
说明
常用场景
openclaw agents list
列出所有智能体
查看已配置的 agent
openclaw agents add
添加新智能体
创建新的独立 agent
openclaw agents delete
删除智能体
移除不需要的 agent
openclaw agents bind
绑定路由规则
配置消息路由
openclaw agents bindings
查看路由绑定
检查消息分发规则
openclaw agents set-identity
设置智能体身份
修改名称/头像/主题

示例:

openclaw agents list openclaw agents add --name 小张 --workspace ~/.openclaw/agents/zhang 

2.3 ACP 协议工具

命令
说明
常用场景
openclaw acp client
运行 ACP 客户端
与 Gateway 交互

示例:

openclaw acp client 

3.1 渠道管理

命令
说明
常用场景
openclaw channels list
列出已配置渠道
查看所有登录账号
openclaw channels login
扫码登录渠道
添加新账号
openclaw channels logout
登出渠道账号
移除账号
openclaw channels status
查看渠道状态
检查各账号状态
openclaw channels add
非交互式添加账号
脚本批量配置
openclaw channels logs
查看渠道日志
排查渠道问题
openclaw channels resolve
解析用户/群组 ID
获取对话 ID

示例:

openclaw channels list openclaw channels login --channel wechat openclaw channels login --channel telegram 

3.2 设备配对管理

命令
说明
常用场景
openclaw pairing list
列出待审批配对
查看申请列表
openclaw pairing approve
批准配对请求
授权新设备
openclaw qr
生成配对二维码
手机扫码配对

示例:

openclaw pairing list openclaw pairing approve <code> openclaw qr 

3.3 节点管理(Nodes)

命令
说明
常用场景
openclaw nodes list
列出已配对节点
查看所有节点
openclaw nodes status
查看节点连接状态
检查节点在线状态
openclaw nodes pending
待审批节点
处理配对申请
openclaw nodes approve
批准节点配对
授权新节点
openclaw nodes reject
拒绝节点配对
拒绝请求
openclaw nodes invoke
在节点上执行命令
远程操控
openclaw nodes camera
获取节点摄像头
拍照/录像
openclaw nodes screen
获取节点屏幕截图
屏幕录制

示例:

openclaw nodes status openclaw nodes invoke --node <id> --command system.which --params '{"name":"uname"}' 

4.1 配置管理

命令
说明
常用场景
openclaw configure
交互式配置向导
首次配置引导
openclaw config get
获取配置值
查看某个配置项
openclaw config set
设置配置值
修改配置
openclaw config unset
取消配置项
删除配置
openclaw config file
查看配置文件路径
定位配置文件
openclaw config validate
验证配置合法性
启动前检查

示例:

openclaw config get gateway.port openclaw config set gateway.port 19001 openclaw config file 

4.2 密钥管理

命令
说明
常用场景
openclaw secrets configure
密钥配置向导
交互式设置密钥
openclaw secrets audit
审计密钥安全
检查密钥安全性
openclaw secrets reload
重新加载密钥
更新密钥后生效

示例:

openclaw secrets audit openclaw secrets reload 

5.1 技能管理

命令
说明
常用场景
openclaw skills list
列出所有可用技能
查看已安装技能
openclaw skills search
搜索技能
从 ClawHub 搜索
openclaw skills install
安装技能
从 ClawHub 安装
openclaw skills update
更新技能
升级已有技能
openclaw skills info
查看技能详情
了解技能功能
openclaw skills check
检查技能就绪状态
排查技能问题

示例:

openclaw skills list openclaw skills search wechat openclaw skills install clawhub:hotlist-fetcher 

5.2 插件管理

命令
说明
常用场景
openclaw plugins list
列出已安装插件
查看插件列表
openclaw plugins install
安装插件
添加新功能
openclaw plugins uninstall
卸载插件
移除插件
openclaw plugins update
更新插件
升级插件
openclaw plugins enable
启用插件
开启插件功能
openclaw plugins disable
禁用插件
关闭插件功能
openclaw plugins inspect
查看插件详情
了解插件信息
openclaw plugins doctor
诊断插件问题
排查加载失败

示例:

openclaw plugins list openclaw plugins install clawhub:some-plugin openclaw plugins doctor 

6.1 定时任务(Cron)

命令
说明
常用场景
openclaw cron list
列出定时任务
查看所有定时任务
openclaw cron add
添加定时任务
创建新定时任务
openclaw cron rm
删除定时任务
移除不需要的任务
openclaw cron edit
编辑定时任务
修改任务配置
openclaw cron enable
启用定时任务
开启任务执行
openclaw cron disable
禁用定时任务
暂停任务执行
openclaw cron run
立即运行任务
手动触发执行
openclaw cron runs
查看任务执行历史
检查历史记录
openclaw cron status
查看调度器状态
检查是否正常运行

示例:

openclaw cron list openclaw cron add --name "每日热点" --schedule "0 9 * * *" --task "openclaw skills run hotlist-fetcher" 

6.2 后台任务

命令
说明
常用场景
openclaw tasks list
列出后台任务
查看所有运行中任务
openclaw tasks show
查看任务详情
了解任务状态
openclaw tasks cancel
取消任务
停止运行中任务
openclaw tasks audit
审计异常任务
找出失败/卡住任务
openclaw tasks maintenance
维护任务存储
清理过期任务

示例:

openclaw tasks list openclaw tasks show <task_id> openclaw tasks cancel <task_id> 

6.3 系统事件与心跳

命令
说明
常用场景
openclaw system event
触发系统事件
发送内部事件
openclaw system heartbeat
心跳控制
管理心跳配置
openclaw system presence
查看在线状态
查看系统存在状态

示例:

openclaw system presence 

7.1 发送消息

命令
说明
常用场景
openclaw message send
发送消息
给用户/群组发消息
openclaw message broadcast
广播消息
批量发送消息

示例:

openclaw message send --target +15555550123 --message "你好" openclaw message send --channel telegram --target @username --message "Hi" 

7.2 消息操作

命令
说明
常用场景
openclaw message read
读取消息
查看历史消息
openclaw message delete
删除消息
删除指定消息
openclaw message edit
编辑消息
修改已发送消息
openclaw message search
搜索消息
查找特定消息

7.3 互动操作

命令
说明
常用场景
openclaw message react
添加表情反应
对消息添加表情
openclaw message poll
发送投票
创建投票消息
openclaw message pin
置顶消息
群组置顶
openclaw message unpin
取消置顶
取消置顶

示例:

openclaw message react --channel discord --target 123 --message-id 456 --emoji "👍" openclaw message poll --channel discord --target channel:123 --poll-question "午饭吃什么?" --poll-option Pizza --poll-option Sushi 

7.4 群组管理

命令
说明
常用场景
openclaw message ban
封禁成员
踢出并禁止加入
openclaw message kick
踢出成员
移除成员
openclaw message timeout
禁言成员
临时禁言

8.1 MCP 管理

命令
说明
常用场景
openclaw mcp list
列出 MCP 服务器
查看已配置服务
openclaw mcp show
查看 MCP 配置详情
了解单个服务
openclaw mcp set
配置 MCP 服务器
添加新服务
openclaw mcp unset
移除 MCP 服务器
删除服务配置
openclaw mcp serve
暴露 MCP 服务
通过 MCP 协议调用

示例:

openclaw mcp list openclaw mcp set my-server --json '{"command":"npx","args":["-y","@modelcontextprotocol/server-filesystem"]}' 

8.2 Webhook 管理

命令
说明
常用场景
openclaw webhooks gmail
Gmail Webhook
配置 Gmail 集成

示例:

openclaw webhooks gmail 

9.1 安全审计

命令
说明
常用场景
openclaw security audit
执行安全审计
检查安全隐患
openclaw security audit --deep
深度安全审计
包含 Gateway 检测
openclaw security audit --fix
自动修复安全问题
应用安全修复

示例:

openclaw security audit openclaw security audit --fix 

9.2 诊断与修复

命令
说明
常用场景
openclaw doctor
诊断问题
自动检测并修复
openclaw doctor --fix
自动修复
应用修复建议

示例:

openclaw doctor openclaw doctor --fix 

9.3 备份与恢复

命令
说明
常用场景
openclaw backup create
创建备份
备份配置/数据
openclaw backup verify
验证备份
检查备份完整性

示例:

openclaw backup create openclaw backup verify <backup_file> 

9.4 执行策略

命令
说明
常用场景
openclaw exec-policy show
查看执行策略
了解当前权限设置
openclaw exec-policy set
设置执行策略
修改安全策略
openclaw exec-policy preset
应用预设策略
快速应用预置策略

示例:

openclaw exec-policy show openclaw exec-policy preset yolo 

10、补充延伸

10.1 模型管理

命令
说明
常用场景
openclaw models list
列出可用模型
查看支持的模型
openclaw models set
设置默认模型
切换默认模型
openclaw models status
查看模型状态
检查模型配置
openclaw models scan
扫描免费模型
查找可用免费模型
openclaw models aliases
管理模型别名
设置快捷名称

示例:

openclaw models list openclaw models set deepseek/deepseek-chat 

10.2 沙盒容器

命令
说明
常用场景
openclaw sandbox list
列出沙盒容器
查看隔离环境
openclaw sandbox recreate
重建沙盒容器
重置隔离环境
openclaw sandbox explain
查看沙盒策略
了解隔离配置

示例:

openclaw sandbox list openclaw sandbox recreate --all 

10.3 调试代理

命令
说明
常用场景
openclaw proxy run
启动调试代理
抓包分析流量
openclaw proxy sessions
查看抓包会话
查看捕获的会话
openclaw proxy query
查询抓包数据
搜索特定请求

示例:

openclaw proxy run -- <command> openclaw proxy sessions 

10.4 日志追踪

命令
说明
常用场景
openclaw logs --expect-final
等待最终响应
追踪完整请求
openclaw logs --json
结构化日志输出
程序化分析

如果你是企业/个体商家老板、电商等各行业创业者、自媒体从业者,从个人到企业落地 AI agent 数字员工,从流量获客到生意提效降本,可以关注与我们建联。

在这里,你将收获 AI 最前沿完全落地的玩法,深度剖析大模型、openclaw、Hermes Agent、Claude Code、qwenpaw、qclaw、workbuudy等龙虾自动化Agent、skills、工具、电商、智能硬件等

同时,如果你在 AI 、Agent 应用、电商,流量获客等探索中遇到任何疑惑,都可以在我的文章或视频下方留言,我将第一时间为你答疑解惑,与你携手在这个充满机遇的AI时代,共同挖掘无限可能,实现自我进化!