mcpField
O
openclaw

openclaw

github.com/paulrbergAgent 工作流10254 次安装今天更新
代码仓库

关于 openclaw

OpenClaw CLI 是用于管理 OpenClaw 消息网关、Agent 和频道的命令行工具,支持 WhatsApp 与 Telegram 操作、设备配对及自动化消息工作流。

主要功能

  1. 01管理网关与 Agent
  2. 02操作 WhatsApp 和 Telegram 频道
  3. 03配对设备
  4. 04自动化消息工作流
  5. 05隔离开发配置档案

适用场景

  1. 01初始化 OpenClaw 工作区
  2. 02登录消息频道
  3. 03通过网关发送消息
  4. 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 查看最新可用命令和选项。

完整文档:https://docs.openclaw.ai/cli

评论

支持 Markdown