这份清单只放常用且官方 CLI 文档有明确定义的命令,便于小白直接抄。
| 命令 | 作用 |
|---|
openclaw --version | 看当前版本 |
openclaw status | 看整体状态总览 |
openclaw doctor | 自动体检并提示修复 |
openclaw logs --follow | 实时看日志 |
openclaw gateway status | 看网关服务状态 |
openclaw channels status --probe | 渠道体检(连通性+凭证可用性) |
openclaw sessions --json | 导出会话列表(机器可读) |
openclaw health | 快速健康检查 |
| 命令 | 说明 |
|---|
| `curl -fsSL https://openclaw.ai/install.sh | bash` |
npm i -g openclaw@latest | npm 全局升级 |
pnpm add -g openclaw@latest | pnpm 全局升级 |
openclaw setup | 初始化配置与工作区 |
openclaw onboard | 交互式引导 |
openclaw onboard --install-daemon | 引导 + 安装守护服务 |
openclaw update | 源码安装常用更新命令 |
| 命令 | 说明 |
|---|
openclaw gateway | 前台运行网关 |
openclaw gateway run | 前台运行(别名) |
openclaw gateway install | 安装网关服务 |
openclaw gateway start | 启动网关服务 |
openclaw gateway stop | 停止网关服务 |
openclaw gateway restart | 重启网关服务 |
openclaw gateway status | 服务状态 + 探测 |
openclaw gateway probe | 调试探测(本地/远端) |
openclaw gateway discover | 发现可达网关 |
openclaw gateway call status | 直接发 RPC 调用 |
| 命令 | 说明 |
|---|
openclaw configure | 打开交互式配置向导 |
openclaw config get <path> | 读取配置项 |
openclaw config set <path> <value> | 设置配置项 |
openclaw config unset <path> | 删除配置项 |
openclaw models list | 列出模型 |
openclaw models status --probe | 模型体检(鉴权+可用性) |
openclaw models set <provider/model> | 设置默认模型 |
| 命令 | 说明 |
|---|
openclaw channels list | 查看已配置渠道 |
openclaw channels add | 交互式添加渠道 |
openclaw channels remove <channel> | 删除渠道 |
openclaw channels login <channel> | 渠道登录(支持的渠道) |
openclaw channels logout <channel> | 渠道退出登录 |
openclaw channels status --probe | 渠道体检(连通性+凭证) |
openclaw pairing list <channel> | 查看待配对请求 |
openclaw pairing approve <channel> <code> | 批准配对码 |
| 命令 | 说明 |
|---|
openclaw skills list | 列出 Skills |
openclaw skills list --eligible | 查看“可用清单”(能立刻调用的 Skills) |
openclaw skills info <name> | 查看单个 Skill 详情 |
openclaw skills check | 统一检查 Skills 状态 |
clawhub search "<keyword>" | 搜索 Skill |
clawhub install <slug> | 安装 Skill |
clawhub update --all | 批量更新 Skill |
openclaw plugins list | 列出插件 |
| `openclaw plugins install <path | .tgz |
openclaw plugins enable <id> | 启用插件 |
openclaw plugins disable <id> | 禁用插件 |
openclaw agents list --bindings | 查看 agent 与分流规则(谁接哪类消息) |
openclaw agents add <id> --workspace <dir> | 新建 agent |
openclaw agents delete <id> | 删除 agent |
| 命令 | 说明 |
|---|
openclaw security audit | 安全审计 |
openclaw security audit --deep | 深度安全审计 |
openclaw approvals get | 查看审批配置 |
openclaw approvals set <jsonFile> | 从文件更新审批策略 |
openclaw approvals allowlist add <agentId> <toolName> | 增加“白名单放行”规则 |
openclaw approvals allowlist remove <agentId> <toolName> | 删除“白名单放行”规则 |
| 命令 | 说明 |
|---|
openclaw sessions | 查看会话列表 |
openclaw sessions --active 120 | 看最近活跃会话 |
openclaw sessions --json | JSON 输出 |
openclaw reset --dry-run | 预演重置,不实际执行 |
openclaw reset --scope config+creds+sessions --yes --non-interactive | 非交互式重置指定范围 |