跳轉到主要內容
openclaw 是主要的命令列介面進入點。每個核心命令都有專屬的 參考頁面,或會與其別名命令一同記錄;此索引列出 適用於整個命令列介面的命令、全域旗標與輸出樣式規則。 依用途區分的設定命令:
  • openclaw setupopenclaw onboard 會執行完整的首次啟動導引流程,涵蓋閘道、模型驗證、工作區、頻道、Skills 與健康狀態。
  • openclaw setup --baseline 會建立基準設定與工作區,而不進入導引式上線流程。
  • openclaw configure 會變更既有設定中的特定部分:模型驗證、閘道、頻道、外掛或 Skills。
  • openclaw channels add 會在基準存在後設定頻道帳號;不帶旗標執行可進行導引式設定,或使用頻道專屬旗標供腳本使用。

命令頁面

區域命令
設定與上線crestodian · setup · onboard · configure · config · completion · doctor · dashboard
重設、備份與遷移backup · migrate · reset · uninstall · update
訊息與代理message · agent · agents · attach · acp · mcp
健康狀態與工作階段status · health · sessions · audit
閘道與日誌gateway · logs · system
模型與推論models · infer · capabilityinfer 的別名)· memory · commitments · wiki
網路與節點directory · nodes · devices · node
執行階段與沙箱approvals · exec-policy(請參閱 approvals)· sandbox · tui · chat/terminaltui --local 的別名)· browser
自動化cron · tasks · hooks · webhooks · transcripts
探索與文件dns · docs
配對與頻道pairing · qr · channels
安全性與外掛security · secrets · skills · plugins · proxy
舊版別名daemon(閘道服務)· clawbot(命名空間)
外掛(選用)path · policy · voicecall · workboard(若已安裝)

全域旗標

旗標用途
--dev將狀態隔離在 ~/.openclaw-dev 下,預設閘道連接埠為 19001,並位移衍生連接埠
--profile <name>將狀態隔離在 ~/.openclaw-<name> 下(OPENCLAW_STATE_DIR/OPENCLAW_CONFIG_PATH
--container <name>在名為 <name> 的執行中 Podman/Docker 容器內執行命令列介面(預設:環境變數 OPENCLAW_CONTAINER
--log-level <level>覆寫檔案與主控台輸出的全域日誌層級
--no-color停用 ANSI 色彩(也會遵守 NO_COLOR=1
--updateopenclaw update 的簡寫;適用於原始碼 checkout 與套件安裝
-V, --version, -v列印版本並結束

輸出模式

  • ANSI 色彩與進度指示器只會在 TTY 工作階段中呈現。
  • OSC-8 超連結會在支援的位置呈現為可點擊連結;否則 命令列介面會退回純 URL。
  • --json(以及支援處的 --plain)會停用樣式,以提供乾淨輸出。
  • 長時間執行的命令會顯示進度指示器(支援時使用 OSC 9;4)。

色彩調色盤

OpenClaw 的命令列介面輸出使用龍蝦調色盤:
權杖十六進位用於
accent#FF5A2D標題、標籤、主要醒目提示
accentBright#FF7A3D命令名稱、強調
accentDim#D14A22次要醒目提示文字
info#FF8A5B資訊值
success#2FBF71成功狀態
warn#FFB020警告、選項旗標、後援
error#E23D2D錯誤、失敗
muted#8B7F77弱化強調、中繼資料
調色盤權威來源:packages/terminal-core/src/palette.ts

命令樹

此地圖涵蓋核心命令及其主要子命令。外掛新增的 子命令(例如位於 skillspluginswiki 之下)會 獨立演進;請執行 <command> --help 以取得權威且最新的清單。
openclaw [--dev] [--profile <name>] <command>
  crestodian
  setup
  onboard
  configure
  config
    get
    set
    unset
    file
    schema
    validate
  completion
  doctor
  dashboard
  backup
    create
    verify
  migrate
    list
    plan <provider>
    apply <provider>
  security
    audit
  secrets
    reload
    audit
    configure
    apply
  reset
  uninstall
  update
    wizard
    status
    repair
  channels
    list
    status
    capabilities
    resolve
    logs
    add
    remove
    login
    logout
  directory
    self
    peers list
    groups list|members
  skills
    search
    install
    update
    verify
    workshop list|inspect|propose-create|propose-update|revise|apply|reject|quarantine
    list
    info
    check
  plugins
    list
    search
    inspect
    install
    uninstall
    update
    enable
    disable
    doctor
    build
    validate
    init
    registry
    marketplace list|entries|refresh
  workboard
    list
    create
    show
    dispatch
  memory
    status
    index
    search
  transcripts
    list
    show
    path
  path
    resolve
    find
    set
    validate
    emit
  commitments
    list
    dismiss
  wiki
    status
    doctor
    init
    compile
    lint
    ingest
    okf import
    search
    get
    apply synthesis|metadata
    bridge import
    unsafe-local import
    chatgpt import|rollback
    obsidian status|search|open|command|daily
  message
    send
    broadcast
    poll
    react
    reactions
    read
    edit
    delete
    pin
    unpin
    pins
    permissions
    search
    thread create|list|reply
    emoji list|upload
    sticker send|upload
    role info|add|remove
    channel info|list
    member info
    voice status
    event list|create
    timeout
    kick
    ban
  agent
  agents
    list
    add
    delete
    bindings
    bind
    unbind
    set-identity
  attach
  acp
  mcp
    serve
    list
    show
    set
    unset
  status
  health
  sessions
    cleanup
  audit
  tasks
    list
    audit
    maintenance
    show
    notify
    cancel
    flow list|show|cancel
  gateway
    call
    usage-cost
    health
    stability
    diagnostics export
    status
    probe
    discover
    install
    uninstall
    start
    stop
    restart
    run
  daemon
    status
    install
    uninstall
    start
    stop
    restart
  logs
  system
    event
    heartbeat last|enable|disable
    presence
  models
    list
    status
    set
    set-image
    aliases list|add|remove
    fallbacks list|add|remove|clear
    image-fallbacks list|add|remove|clear
    scan
    auth list|add|login|setup-token|paste-token|paste-api-key|login-github-copilot
    auth order get|set|clear
  infer (alias: capability)
    list
    inspect
    model run|list|inspect|providers|auth login|logout|status
    image generate|edit|describe|describe-many|providers
    audio transcribe|providers
    tts convert|voices|personas|providers|status|enable|disable|set-provider|set-persona
    video generate|describe|providers
    web search|fetch|providers
    embedding create|providers
  sandbox
    list
    recreate
    explain
  cron
    status
    list
    get
    add
    edit
    rm
    enable
    disable
    runs
    run
  nodes
    status
    describe
    list
    pending
    approve
    reject
    rename
    invoke
    notify
    push
    canvas snapshot|present|hide|navigate|eval
    canvas a2ui push|reset
    camera list|snap|clip
    screen record
    location get
  devices
    list
    remove
    clear
    approve
    reject
    rotate
    revoke
  node
    run
    status
    install
    uninstall
    stop
    restart
  approvals
    get
    set
    allowlist add|remove
  exec-policy
    show
    preset
    set
  browser
    status
    start
    stop
    reset-profile
    tabs
    open
    focus
    close
    profiles
    create-profile
    delete-profile
    screenshot
    snapshot
    navigate
    resize
    click
    type
    press
    hover
    drag
    select
    upload
    fill
    dialog
    wait
    evaluate
    console
    pdf
  hooks
    list
    info
    check
    enable
    disable
    install
    update
  webhooks
    gmail setup|run
  proxy
    start
    run
    coverage
    sessions
    query
    blob
    purge
  pairing
    list
    approve
  qr
  clawbot
    qr
  docs
  dns
    setup
  tui
  chat (alias: tui --local)
  terminal (alias: tui --local)
外掛可以新增其他頂層命令,例如 openclaw workboardopenclaw voicecall

聊天斜線命令

聊天訊息支援 /... 命令。請參閱斜線命令 重點:
  • /status - 快速診斷。
  • /trace - 工作階段範圍的外掛追蹤/除錯列。
  • /config - 持久化的設定變更。
  • /debug - 僅限執行階段的設定覆寫(記憶體中,不寫入磁碟;需要 commands.debug: true)。

用量追蹤

當 OAuth/API 憑證可用時,openclaw status --usage 與 Control UI 會顯示提供者用量/配額。資料直接來自提供者用量端點,並正規化為 X% left。具有目前用量期間的提供者:Anthropic、Gemini CLI、GitHub Copilot、MiniMax、OpenAI Codex、Xiaomi 與 z.ai。 詳情請參閱用量追蹤

相關