AdvancedEnglish

OpenClaw 高级玩法

从会用命令升级到生产级自动化:多 Agent 协作 + 事件驱动流水线。

OpenClaw 的进阶定位是自托管 AI 自动化中枢,把浏览器 RPA、定时任务、触发器、插件和 Agent 团队放到同一控制面。

三层升级路径

第 1 层:核心运行层(gateway、config、安全、诊断)

第 2 层:能力模块层(channels、skills/plugins、models、memory)

第 3 层:扩展自动化层(browser RPA、cron、hooks、webhooks、多 Agent)

5 分钟基线

先完成 daemon 初始化并打开 dashboard

$openclaw onboard --install-daemon

用可观测日志方式启动 gateway

$openclaw dashboard

编辑配置基线并开启 browser/cron/hooks

$openclaw gateway start --port 18789 --verbose

用 profile 做开发与生产隔离

$openclaw config edit

核心进阶栈

Channels + Message

把 Agent 接入 Telegram 等消息通道。

$openclaw channels add telegram --account alerts --name "我的AI助手" --token $YOUR_TELEGRAM_BOT_TOKEN
$openclaw message send --to @你的用户名 --message "早安,今天简报已生成"

Skills / Plugins

通过市场能力快速扩展。

$openclaw skills search browser
$openclaw skills install browser-rpa
$openclaw plugins marketplace list
$openclaw plugins install <plugin@marketplace>

Browser RPA

完成页面读取、操作、截图、导出等完整自动化。

$openclaw browser open https://mail.google.com
$openclaw browser snapshot --interactive
$openclaw browser click 12 --double
$openclaw browser screenshot --full-page --out ~/daily-report.png

Cron + Hooks

定时执行 + 事件触发,形成稳定自动化引擎。

$openclaw cron add "0 9 * * *" clean_email --name "每日邮件整理"
$openclaw cron run <id> --force
$openclaw hooks list
$openclaw webhooks gmail setup --account work

Multi-Agent

用角色分工构建研究员/写手/执行者团队。

$openclaw agents add researcher --model claude-sonnet-4.6 --workspace ~/agents/research
$openclaw agents bind --agent researcher --bind telegram:alerts
$openclaw agent researcher --message "开始今日分析"

生产级工作流

抓取资讯 → 总结 → 推送

$openclaw browser open https://news.ycombinator.com
$openclaw skills run summarize-page
$openclaw message send --to @me --message "$(cat summary.txt)"

安全更新 + 重启

$cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.backup
$openclaw update
$openclaw gateway restart

模板化策略

1.先用现成 SOUL.md 模板,再按业务改角色指令。

2.用 AGENTS.md 定义团队协作规则和交接规范。

3.稳定任务用 baseline profile,实验任务用 sandbox profile。

关键避坑

1.browser/cron 建议跑在 sandbox 或独立系统用户下。

2.所有 API Key 必须走 secrets 管理。

3.skills/plugins 先 dry-run 再正式启用。

4.高频命令保持在 10-15 个,其余交给 dashboard。