Nhảy tới nội dung

CLI Overview

OpenClaw CLI là công cụ chính để quản lý bot, gateway, và tools.

Global Flags

Tất cả commands đều hỗ trợ các cờ sau:

FlagDescription
--jsonOutput JSON format (good for parsing)
--plainTắt formatting/colors
--debugHiện debug logs
--helpHiện hướng dẫn sử dụng
--versionHiện version hiện tại

Command Tree

openclaw
├── setup # Setup workspace
├── onboard # Interactive wizard
├── configure # Manage config keys
├── doctor # Health checks
├── update # Update CLI
├── uninstall # Remove everything

├── channels # Manage channels
│ ├── login
│ ├── logout
│ └── list

├── models # Manage AI models
│ ├── list
│ ├── set
│ └── scan

├── agents # Manage agents
│ ├── list
│ └── new

├── skills # Manage skills
├── plugins # Manage plugins
├── pairing # Manage DM pairing requests

└── gateway # Gateway service control
├── start
├── stop
└── restart

Config Location

Mặc định config được lưu tại:

  • Unix: ~/.openclaw/openclaw.json
  • Windows: %USERPROFILE%\.openclaw\openclaw.json

Output Styling

OpenClaw CLI dùng colors để indicate status:

  • 🟢 Green: Success, active
  • 🟡 Yellow: Warning, degraded
  • 🔴 Red: Error, offline, denied
  • 🔵 Blue: Info, path
  • 🟣 Purple: AI related