OpenClaw CLI中文

OpenClaw Command Handbook

A practical OpenClaw command guide organized by real usage frequency and architecture.

This is a structured command tree with 100+ subcommands, not just a random list.

Unified syntax: openclaw <module> <subcommand> [args]

Top 15 Commands (90% of Daily Use)

Initialization & Startup

One-click onboarding

$openclaw onboard --install-daemon

Open Web UI dashboard

$openclaw dashboard

Start core gateway service

$openclaw gateway --port 18789 --verbose

System Diagnostics

Check runtime health

$openclaw doctor

Auto-fix detected issues

$openclaw doctor --fix

Deep dependency scan

$openclaw doctor --deep

Messaging & Auth

$openclaw message send --to +123456 --message "hello"
$openclaw auth set <profile> --key 'xxx'
$openclaw config edit

Module Commands

Gateway

$openclaw gateway start
$openclaw gateway status

Channels

$openclaw channels list
$openclaw channels add telegram

Skills

$openclaw skills list
$openclaw skills enable <name>

Models

$openclaw models add openrouter
$openclaw models test <model>

Real Workflows

Workflow 1: Let AI send Telegram messages

$openclaw channels add telegram
$openclaw message send --to @user --message "Good morning"

Workflow 2: Auto-clean email every day at 9:00

$openclaw cron add "0 9 * * *" clean_email

Three-Layer Architecture

3️⃣ Extensions (Advanced)

browser, nodes, hooks...

2️⃣ Functional Modules (High Frequency)

channels, skills, plugins...

1️⃣ Core System (Foundation)

gateway, onboard, doctor, config

Advanced Commands

Browser automation

$openclaw browser open https://google.com

Schedule recurring tasks

$openclaw cron add "0 9 * * *" task

Inspect trigger hooks

$openclaw hooks list

Pitfalls to Avoid

1.There are many CLI commands, but only 10-15 are truly high frequency.

2.Configuration is the core. Runtime behavior is determined by config.

3.Permissions equal risk. Be careful with browser, file, and system access.

Need Advanced Playbooks?

Build on top of these commands with reusable automation templates and stronger defaults.

Explore More