openclaw 是主 CLI 入口。每个核心命令要么有专门的参考页面,要么与其别名对应的命令一起文档化;此索引列出了命令、全局标志以及适用于整个 CLI 的输出样式规则。
按用途使用以下 setup 命令:
openclaw setup会创建基础配置和工作区,而不会走完整的引导式入门流程。openclaw onboard是面向 gateway、模型认证、工作区、频道、技能和健康检查的完整首次运行引导流程。openclaw configure会修改现有设置中的指定部分,例如模型认证、gateway、频道、插件或技能。openclaw channels add在基础配置存在后配置频道账户;不带标志运行时会进入引导式频道设置,带有频道特定标志时可用于脚本。
命令页面
| 区域 | 命令 |
|---|---|
| Setup and onboarding | crestodian · setup · onboard · configure · config · completion · doctor · dashboard |
| Reset and uninstall | backup · reset · uninstall · update |
| Messaging and agents | message · agent · agents · acp · mcp |
| Health and sessions | status · health · sessions |
| Gateway and logs | gateway · logs · system |
| Models and inference | models · infer · capability(infer 的别名)· memory · commitments · wiki |
| Network and nodes | directory · nodes · devices · node |
| Runtime and sandbox | approvals · exec-policy(参见 approvals)· sandbox · tui · chat/terminal(tui --local 的别名)· browser |
| Automation | cron · tasks · hooks · webhooks · transcripts |
| Discovery and docs | dns · docs |
| Pairing and channels | pairing · qr · channels |
| Security and plugins | security · secrets · skills · plugins · proxy |
| Legacy aliases | daemon(gateway 服务)· clawbot(命名空间) |
| Plugins (optional) | path · policy · voicecall · workboard(如果已安装) |
全局标志
| 标志 | 作用 |
|---|---|
--dev | 将状态隔离到 ~/.openclaw-dev 下,并调整默认端口 |
--profile <name> | 将状态隔离到 ~/.openclaw-<name> 下 |
--container <name> | 目标执行到指定名称的容器 |
--no-color | 禁用 ANSI 颜色(也会遵循 NO_COLOR=1) |
--update | openclaw update 的简写(仅适用于源码安装) |
-V, --version, -v | 打印版本并退出 |
输出模式
- ANSI 颜色和进度指示器仅在 TTY 会话中渲染。
- OSC-8 超链接会在支持的情况下渲染为可点击链接;否则 CLI 会回退为纯 URL。
--json(以及受支持时的--plain)会禁用样式以获得干净输出。- 长时间运行的命令会显示进度指示器(支持时使用 OSC 9;4)。
src/terminal/palette.ts。
命令树
完整命令树
完整命令树
聊天斜杠命令
聊天消息支持/... 命令。参见 斜杠命令。
要点:
/status— 快速诊断。/trace— 会话范围的插件跟踪/调试行。/config— 持久化的配置更改。/debug— 仅运行时配置覆盖(仅驻留内存,不写入磁盘;需要commands.debug: true)。
使用情况跟踪
当 OAuth/API 凭据可用时,openclaw status --usage 和 Control UI 会展示提供商的使用量/额度。数据直接来自提供商的使用情况
端点,并归一化为 X% left。具有当前使用
窗口的提供商:Anthropic、GitHub Copilot、Gemini CLI、OpenAI Codex、MiniMax、
Xiaomi 和 z.ai。
有关详细信息,请参见 使用情况跟踪。