CLI commands

設定

openclaw setup

執行完整的命令列介面入門設定流程。openclaw setupopenclaw onboard 的別名;當你只需要初始化設定/工作區資料夾而不使用精靈時,請使用 --baseline

選項

旗標 說明
--workspace <dir> 代理程式工作區目錄(預設為 ~/.openclaw/workspace;儲存為 agents.defaults.workspace)。
--baseline 不執行入門設定,建立基準設定/工作區/工作階段資料夾。
--wizard 為相容性而接受;設定預設會執行入門設定。
--non-interactive 不顯示提示執行入門設定。
--accept-risk 確認完整系統代理程式存取風險;搭配 --non-interactive 時為必填。
--mode <mode> 入門設定模式:localremote
--import-from <provider> 入門設定期間要執行的遷移提供者。
--import-source <path> --import-from 的來源代理程式主目錄。
--import-secrets 在入門設定遷移期間匯入支援的祕密。
--remote-url <url> 遠端閘道 WebSocket URL。
--remote-token <token> 遠端閘道權杖(選用)。

基準模式

openclaw setup --baseline 會保留較舊的僅基準行為:它會建立設定、工作區和工作階段目錄,然後不執行入門設定就結束。

範例

bash
openclaw setupopenclaw setup --baselineopenclaw setup --workspace ~/.openclaw/workspaceopenclaw setup --import-from hermes --import-source ~/.hermesopenclaw setup --non-interactive --accept-risk --mode remote --remote-url wss://gateway-host:18789 --remote-token <token>

注意事項

  • 單純執行 openclaw setup 會執行與 openclaw onboard 相同的引導流程。
  • 完成基準設定後,請執行 openclaw setupopenclaw onboard 以進行完整引導流程,執行 openclaw configure 進行目標式變更,或執行 openclaw channels add 新增頻道帳號。
  • 如果偵測到 Hermes 狀態,互動式入門設定可以自動提供遷移。匯入入門設定需要全新設定;若要在入門設定之外進行試跑計畫、備份和覆寫模式,請使用遷移

相關

Was this useful?
On this page

On this page