OpenClaw CLIEnglish

OpenClaw 命令大全

真正可用的 OpenClaw 用法手册,按“实际使用频率 + 体系结构”精简整理。

不是零散命令,而是 100+ 子命令的系统化命令树。

命令结构统一:openclaw <模块> <子命令> [参数]

核心 15 个命令(90%场景)

初始化与启动

一键初始化

$openclaw onboard --install-daemon

打开 Web 控制台

$openclaw dashboard

启动核心网关服务

$openclaw gateway --port 18789 --verbose

系统诊断

检查系统运行状态

$openclaw doctor

自动修复发现的问题

$openclaw doctor --fix

深度扫描依赖与服务

$openclaw doctor --deep

消息与认证

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

模块命令大全

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>

真实场景运用

场景1:让 AI 自动发 Telegram

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

场景2:每天 9 点自动整理邮件

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

系统架构三层

3️⃣ 扩展能力(进阶)

browser, nodes, hooks...

2️⃣ 功能模块(日常高频)

channels, skills, plugins...

1️⃣ 核心系统(底层基座)

gateway, onboard, doctor, config

高级命令

浏览器自动化

$openclaw browser open https://google.com

定时调度任务

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

查看触发器列表

$openclaw hooks list

避坑指南

1.CLI 命令很多,但高频常用通常只有 10-15 个。

2.配置是核心,行为最终由 config 决定。

3.权限即风险,涉及浏览器、文件、系统命令时要谨慎。

需要进阶玩法?

想拿到自动化模板、常用组合命令和配置基线,可以继续扩展你的 command workflow。

继续探索