> ## 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.

# Tham chiếu CLI

`openclaw` là điểm vào CLI chính. Mỗi lệnh cốt lõi có một trang tham chiếu riêng hoặc được ghi tài liệu cùng với lệnh mà nó đặt bí danh; chỉ mục này liệt kê các lệnh, cờ toàn cục và quy tắc định dạng đầu ra áp dụng trên toàn CLI.

Dùng các lệnh thiết lập theo mục đích:

* `openclaw setup` tạo cấu hình nền tảng và workspace mà không đi qua toàn bộ luồng onboarding có hướng dẫn.
* `openclaw onboard` là đường dẫn chạy lần đầu có hướng dẫn đầy đủ cho gateway, xác thực mô hình, workspace, kênh, skills và sức khỏe.
* `openclaw configure` thay đổi các phần được nhắm mục tiêu của một thiết lập hiện có, chẳng hạn như xác thực mô hình, gateway, kênh, plugins hoặc skills.
* `openclaw channels add` cấu hình tài khoản kênh sau khi nền tảng đã tồn tại; chạy không kèm cờ để thiết lập kênh có hướng dẫn hoặc kèm các cờ dành riêng cho kênh trong scripts.

## Trang lệnh

| Khu vực                 | Lệnh                                                                                                                                                                                                                                                              |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Thiết lập và onboarding | [`crestodian`](/vi/cli/crestodian) · [`setup`](/vi/cli/setup) · [`onboard`](/vi/cli/onboard) · [`configure`](/vi/cli/configure) · [`config`](/vi/cli/config) · [`completion`](/vi/cli/completion) · [`doctor`](/vi/cli/doctor) · [`dashboard`](/vi/cli/dashboard) |
| Đặt lại và gỡ cài đặt   | [`backup`](/vi/cli/backup) · [`reset`](/vi/cli/reset) · [`uninstall`](/vi/cli/uninstall) · [`update`](/vi/cli/update)                                                                                                                                             |
| Nhắn tin và agent       | [`message`](/vi/cli/message) · [`agent`](/vi/cli/agent) · [`agents`](/vi/cli/agents) · [`acp`](/vi/cli/acp) · [`mcp`](/vi/cli/mcp)                                                                                                                                |
| Sức khỏe và phiên       | [`status`](/vi/cli/status) · [`health`](/vi/cli/health) · [`sessions`](/vi/cli/sessions)                                                                                                                                                                          |
| Gateway và nhật ký      | [`gateway`](/vi/cli/gateway) · [`logs`](/vi/cli/logs) · [`system`](/vi/cli/system)                                                                                                                                                                                |
| Mô hình và suy luận     | [`models`](/vi/cli/models) · [`infer`](/vi/cli/infer) · `capability` (bí danh cho [`infer`](/vi/cli/infer)) · [`memory`](/vi/cli/memory) · [`commitments`](/vi/cli/commitments) · [`wiki`](/vi/cli/wiki)                                                          |
| Mạng và nút             | [`directory`](/vi/cli/directory) · [`nodes`](/vi/cli/nodes) · [`devices`](/vi/cli/devices) · [`node`](/vi/cli/node)                                                                                                                                               |
| Runtime và sandbox      | [`approvals`](/vi/cli/approvals) · `exec-policy` (xem [`approvals`](/vi/cli/approvals)) · [`sandbox`](/vi/cli/sandbox) · [`tui`](/vi/cli/tui) · `chat`/`terminal` (bí danh cho [`tui --local`](/vi/cli/tui)) · [`browser`](/vi/cli/browser)                       |
| Tự động hóa             | [`cron`](/vi/cli/cron) · [`tasks`](/vi/cli/tasks) · [`hooks`](/vi/cli/hooks) · [`webhooks`](/vi/cli/webhooks) · [`transcripts`](/vi/cli/transcripts)                                                                                                              |
| Khám phá và tài liệu    | [`dns`](/vi/cli/dns) · [`docs`](/vi/cli/docs)                                                                                                                                                                                                                     |
| Ghép đôi và kênh        | [`pairing`](/vi/cli/pairing) · [`qr`](/vi/cli/qr) · [`channels`](/vi/cli/channels)                                                                                                                                                                                |
| Bảo mật và plugins      | [`security`](/vi/cli/security) · [`secrets`](/vi/cli/secrets) · [`skills`](/vi/cli/skills) · [`plugins`](/vi/cli/plugins) · [`proxy`](/vi/cli/proxy)                                                                                                              |
| Bí danh cũ              | [`daemon`](/vi/cli/daemon) (dịch vụ gateway) · [`clawbot`](/vi/cli/clawbot) (namespace)                                                                                                                                                                           |
| Plugins (tùy chọn)      | [`path`](/vi/cli/path) · [`policy`](/vi/cli/policy) · [`voicecall`](/vi/cli/voicecall) · [`workboard`](/vi/cli/workboard) (nếu đã cài đặt)                                                                                                                        |

## Cờ toàn cục

| Cờ                      | Mục đích                                                                        |
| ----------------------- | ------------------------------------------------------------------------------- |
| `--dev`                 | Cô lập trạng thái trong `~/.openclaw-dev` và dịch chuyển các cổng mặc định      |
| `--profile <name>`      | Cô lập trạng thái trong `~/.openclaw-<name>`                                    |
| `--container <name>`    | Nhắm đến một container được đặt tên để thực thi                                 |
| `--no-color`            | Tắt màu ANSI (`NO_COLOR=1` cũng được tôn trọng)                                 |
| `--update`              | Viết tắt cho [`openclaw update`](/vi/cli/update) (chỉ các bản cài đặt từ nguồn) |
| `-V`, `--version`, `-v` | In phiên bản và thoát                                                           |

## Chế độ đầu ra

* Màu ANSI và chỉ báo tiến trình chỉ hiển thị trong các phiên TTY.
* Siêu liên kết OSC-8 hiển thị dưới dạng liên kết có thể nhấp ở nơi được hỗ trợ; nếu không, CLI sẽ quay về URL thuần.
* `--json` (và `--plain` ở nơi được hỗ trợ) tắt định dạng để có đầu ra sạch.
* Các lệnh chạy lâu hiển thị chỉ báo tiến trình (OSC 9;4 khi được hỗ trợ).

Nguồn xác thực của bảng màu: `src/terminal/palette.ts`.

## Cây lệnh

<Accordion title="Cây lệnh đầy đủ">
  ```
  openclaw [--dev] [--profile <name>] <command>
    crestodian
    setup
    onboard
    configure
    config
      get
      set
      unset
      file
      schema
      validate
    completion
    doctor
    dashboard
    backup
      create
      verify
    security
      audit
    secrets
      reload
      audit
      configure
      apply
    reset
    uninstall
    update
      wizard
      status
    channels
      list
      status
      capabilities
      resolve
      logs
      add
      remove
      login
      logout
    directory
      self
      peers list
      groups list|members
    skills
      search
      install
      update
      list
      info
      check
    plugins
      list
      inspect
      install
      uninstall
      update
      enable
      disable
      doctor
      marketplace list
    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
      ingest
      compile
      lint
      search
      get
      apply
      bridge import
      unsafe-local import
      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
    acp
    mcp
      serve
      list
      show
      set
      unset
    status
    health
    sessions
      cleanup
    tasks
      list
      audit
      maintenance
      show
      notify
      cancel
      flow list|show|cancel
    gateway
      call
      usage-cost
      health
      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
    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|providers|status|enable|disable|set-provider
      video generate|describe|providers
      web search|fetch|providers
      embedding create|providers
      auth add|login|login-github-copilot|setup-token|paste-token
      auth order get|set|clear
    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)
  ```

  Plugins có thể thêm các lệnh cấp cao nhất bổ sung, chẳng hạn như
  [`openclaw workboard`](/vi/cli/workboard) hoặc `openclaw voicecall`.
</Accordion>

## Lệnh slash trong trò chuyện

Tin nhắn trò chuyện hỗ trợ các lệnh `/...`. Xem [lệnh slash](/vi/tools/slash-commands).

Điểm nổi bật:

* `/status` — chẩn đoán nhanh.
* `/trace` — các dòng trace/gỡ lỗi plugin trong phạm vi phiên.
* `/config` — thay đổi cấu hình được lưu bền vững.
* `/debug` — ghi đè cấu hình chỉ trong runtime (bộ nhớ, không phải đĩa; yêu cầu `commands.debug: true`).

## Theo dõi mức sử dụng

`openclaw status --usage` và Control UI hiển thị mức sử dụng/hạn ngạch của nhà cung cấp khi có thông tin xác thực OAuth/API. Dữ liệu đến trực tiếp từ endpoint mức sử dụng của nhà cung cấp và được chuẩn hóa thành `X% left`. Các nhà cung cấp có cửa sổ mức sử dụng hiện tại: Anthropic, GitHub Copilot, Gemini CLI, OpenAI Codex, MiniMax, Xiaomi và z.ai.

Xem [Theo dõi mức sử dụng](/vi/concepts/usage-tracking) để biết chi tiết.

## Liên quan

* [Lệnh slash](/vi/tools/slash-commands)
* [Cấu hình](/vi/gateway/configuration)
* [Môi trường](/vi/help/environment)
