Documentation Index
Fetch the complete documentation index at: https://docs2.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
openclaw 是主要的 CLI 進入點。每個核心命令都有專屬參考頁面,或與其別名命令一併記錄;本索引列出命令、全域旗標,以及套用於整個 CLI 的輸出樣式規則。
依意圖使用設定命令:
openclaw setup會建立基準設定與工作區,不會走完整的引導式初始設定流程。openclaw onboard是 Gateway、模型驗證、工作區、頻道、Skills 與健康狀態的完整引導式首次執行路徑。openclaw configure會變更既有設定中的指定部分,例如模型驗證、Gateway、頻道、Plugin 或 Skills。openclaw channels add會在基準存在後設定頻道帳號;不帶旗標執行可進行引導式頻道設定,或搭配頻道特定旗標用於腳本。
命令頁面
| 區域 | 命令 |
|---|---|
| 設定與初始引導 | crestodian · setup · onboard · configure · config · completion · doctor · dashboard |
| 重設與解除安裝 | backup · reset · uninstall · update |
| 訊息與代理 | message · agent · agents · acp · mcp |
| 健康狀態與工作階段 | status · health · sessions |
| Gateway 與記錄 | gateway · logs · system |
| 模型與推論 | models · infer · capability(infer 的別名) · memory · commitments · wiki |
| 網路與節點 | directory · nodes · devices · node |
| 執行環境與沙箱 | approvals · exec-policy(請參閱 approvals) · sandbox · tui · chat/terminal(tui --local 的別名) · browser |
| 自動化 | cron · tasks · hooks · webhooks |
| 探索與文件 | dns · docs |
| 配對與頻道 | pairing · qr · channels |
| 安全性與 Plugin | security · secrets · skills · plugins · proxy |
| 舊版別名 | daemon(Gateway 服務) · clawbot(命名空間) |
| Plugin(選用) | path · voicecall(若已安裝) |
全域旗標
| 旗標 | 用途 |
|---|---|
--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— 工作階段範圍的 Plugin 追蹤/偵錯行。/config— 持久化的設定變更。/debug— 僅限執行階段的設定覆寫(記憶體,不寫入磁碟;需要commands.debug: true)。
使用量追蹤
當 OAuth/API 憑證可用時,openclaw status --usage 與控制 UI 會顯示供應商使用量/配額。資料直接來自供應商使用量端點,並正規化為 X% left。目前有使用量視窗的供應商:Anthropic、GitHub Copilot、Gemini CLI、OpenAI Codex、MiniMax、Xiaomi 與 z.ai。
詳情請參閱使用量追蹤。