用途:OpenClaw 是一个多通道消息与智能体平台,OpenClaw CLI 提供网关管理、智能体编排、通道操作(WhatsApp、Telegram)、设备配对以及自动化消息工作流的命令。当用户提到 openclaw、OpenClaw CLI,或要求通过 openclaw 发消息、管理 openclaw 智能体、进行配置时,应使用本技能。
主要能力与命令:基础检查可运行 openclaw --version、openclaw --help,日志级别用 openclaw --log-level <level>(silent|fatal|error|warn|info|debug|trace)覆盖,openclaw --no-color 关闭 ANSI 颜色。初始化用 openclaw setup、openclaw onboard、openclaw configure(凭据、通道、网关、智能体默认值的交互式向导),诊断用 openclaw doctor。网关方面有 openclaw gateway(WebSocket 网关,可用 --port 18789 自定义端口,openclaw --dev gateway 为开发模式,端口 19001)、openclaw health、openclaw status。智能体方面有 openclaw agent --to +15555550123 --message "Hello" 与 openclaw agents。消息发送为 openclaw message send --target +15555550123 --message "Hi",也可用 --channel telegram --target @mychat。通道管理用 openclaw channels login --verbose 与 openclaw channels,设备与会话用 openclaw devices、openclaw sessions,定时任务用 openclaw cron。
使用方式:典型流程为先 openclaw setup、openclaw onboard、openclaw channels login --verbose,再启动网关并发送消息;运行智能体轮次可用 openclaw agent --to +15555550123 --message "Run summary" --deliver。可用 --dev 或 --profile <name> 隔离状态,例如 openclaw --dev gateway 使用 ~/.openclaw-dev,openclaw --profile test gateway 使用 ~/.openclaw-test。
限制:最新可用命令与选项请以 openclaw --help 为准,完整文档见 https://docs.openclaw.ai/cli。