关于 openclaw
OpenClaw CLI 是用于管理 OpenClaw 消息网关、Agent 和频道的命令行工具,支持 WhatsApp 与 Telegram 操作、设备配对及自动化消息工作流。
主要功能
- 01管理网关与 Agent
- 02操作 WhatsApp 和 Telegram 频道
- 03配对设备
- 04自动化消息工作流
- 05隔离开发配置档案
适用场景
- 01初始化 OpenClaw 工作区
- 02登录消息频道
- 03通过网关发送消息
- 04为指定对象运行 Agent 任务
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ paulrberg/ agent-skills --skill openclaw安装后在 Claude Code 中输入/openclaw确认已加载。
详细介绍
OpenClaw CLI
概述
OpenClaw 是一个多渠道消息和 Agent 平台。CLI 提供用于网关管理、Agent 编排、渠道操作(WhatsApp、Telegram)、设备配对和自动化消息工作流的命令。
快速参考
# Check CLI version and help
openclaw --version
openclaw --help
openclaw --log-level <level> # Override log level (silent|fatal|error|warn|info|debug|trace)
openclaw --no-color # Disable ANSI colors
# Setup and configuration
openclaw setup # Initialize config and workspace
openclaw onboard # Interactive setup wizard
openclaw configure # Interactive setup wizard for credentials, channels, gateway, and agent defaults
openclaw doctor # Health checks and diagnostics
# Gateway operations
openclaw gateway # Start the WebSocket gateway
openclaw gateway --port 18789 # Custom port
openclaw --dev gateway # Dev mode (isolated state, port 19001)
openclaw health # Check gateway health
openclaw status # Channel health and sessions
# Agent operations
openclaw agent --to +15555550123 --message "Hello"
openclaw agents # Manage agent workspaces
# Messaging
openclaw message send --target +15555550123 --message "Hi"
openclaw message send --channel telegram --target @mychat --message "Hi"
# Channel management
openclaw channels login --verbose # Link Telegram, Discord, etc.
openclaw channels # Manage channels
# Device and session management
openclaw devices # Device pairing and tokens
openclaw sessions # List conversation sessions
# Cron jobs
openclaw cron # Manage cron jobs via the Gateway scheduler
常见工作流
初始设置
openclaw setup
openclaw onboard
openclaw channels login --verbose
启动网关并发送消息
openclaw gateway &
openclaw message send --target +15555550123 --message "Test"
运行 Agent 轮次
openclaw agent --to +15555550123 --message "Run summary" --deliver
配置隔离
使用 --dev 或 --profile <name> 隔离状态:
openclaw --dev gateway # Uses ~/.openclaw-dev
openclaw --profile test gateway # Uses ~/.openclaw-test
文档
运行 openclaw --help 查看最新可用命令和选项。
评论
支持 Markdown