openclaw

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

OpenClaw CLI

OpenClaw CLI

Overview

概述

OpenClaw is a multi-channel messaging and agent platform. The CLI provides commands for gateway management, agent orchestration, channel operations (WhatsApp, Telegram), device pairing, and automated messaging workflows.
OpenClaw是一个多渠道消息与Agent平台。其CLI提供网关管理、Agent编排、渠道操作(WhatsApp、Telegram)、设备配对以及自动化消息工作流的相关命令。

Quick Reference

快速参考

bash
undefined
bash
undefined

Check CLI version and help

Check CLI version and help

openclaw --version openclaw --help
openclaw --version openclaw --help

Setup and configuration

Setup and configuration

openclaw setup # Initialize config and workspace openclaw onboard # Interactive setup wizard openclaw configure # Set credentials and defaults openclaw doctor # Health checks and diagnostics
openclaw setup # Initialize config and workspace openclaw onboard # Interactive setup wizard openclaw configure # Set credentials and defaults openclaw doctor # Health checks and diagnostics

Gateway operations

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
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

Agent operations

openclaw agent --to +15555550123 --message "Hello" openclaw agents # Manage agent workspaces
openclaw agent --to +15555550123 --message "Hello" openclaw agents # Manage agent workspaces

Messaging

Messaging

openclaw message send --target +15555550123 --message "Hi" openclaw message send --channel telegram --target @mychat --message "Hi"
openclaw message send --target +15555550123 --message "Hi" openclaw message send --channel telegram --target @mychat --message "Hi"

Channel management

Channel management

openclaw channels login --verbose # Link WhatsApp/Telegram openclaw channels # Manage channels
openclaw channels login --verbose # Link WhatsApp/Telegram openclaw channels # Manage channels

Device and session management

Device and session management

openclaw devices # Device pairing and tokens openclaw sessions # List conversation sessions
undefined
openclaw devices # Device pairing and tokens openclaw sessions # List conversation sessions
undefined

Common Workflows

常见工作流

Initial Setup

初始设置

bash
openclaw setup
openclaw onboard
openclaw channels login --verbose
bash
openclaw setup
openclaw onboard
openclaw channels login --verbose

Start Gateway and Send Message

启动网关并发送消息

bash
openclaw gateway &
openclaw message send --target +15555550123 --message "Test"
bash
openclaw gateway &
openclaw message send --target +15555550123 --message "Test"

Run Agent Turn

运行Agent轮次

bash
openclaw agent --to +15555550123 --message "Run summary" --deliver
bash
openclaw agent --to +15555550123 --message "Run summary" --deliver

Profile Isolation

配置文件隔离

Use
--dev
or
--profile <name>
to isolate state:
bash
openclaw --dev gateway           # Uses ~/.openclaw-dev
openclaw --profile test gateway  # Uses ~/.openclaw-test
使用
--dev
--profile <name>
来隔离状态:
bash
openclaw --dev gateway           # Uses ~/.openclaw-dev
openclaw --profile test gateway  # Uses ~/.openclaw-test

Documentation

文档

Run
openclaw --help
for the latest available commands and options.
Full documentation: https://docs.openclaw.ai/cli
运行
openclaw --help
获取最新可用命令与选项。