Runoob Tutorial ArchiveEnglish

OpenClaw Quick Start

OpenClaw Quick Start

Use the following command to install with one click.

macOS/Linux:



curl -fsSL https://openclaw.ai/install.sh | bash

Windows (PowerShell):



iwr -useb https://openclaw.ai/install.ps1 | iex

Start bootstrapping

After installation, run Onboarding to complete the initial configuration. This is the most critical step:

openclaw onboard --install-daemon

The onboarding will configure authentication, Gateway gateway settings, and optional channels.

install script

Basic Gateway operations

Gateway is the core process of OpenClaw, and all functions depend on it running:

Original prompt (Chinese, left untranslated)

# 查看 Gateway 状态

openclaw gateway status



# Run in foreground (suitable for debugging)

openclaw gateway --port 18789



# Detailed logging mode

openclaw gateway --port 18789 --verbose



# Force occupy port and start (solve port conflict)

openclaw gateway --force



# Restart Gateway

openclaw gateway restart



# Stop Gateway

openclaw gateway stop



# View real-time logs

openclaw logs --follow

Access Control UI

Control UI is the visual management interface of OpenClaw:

Original prompt (Chinese, left untranslated)

# 打开 Control UI(自动在浏览器中打开)

openclaw dashboard

fa 885 c 9178 4d8b a4 e c 9c79d18eb9

Or access directly: http://127.0.0.1:18789/.

375ed f 99 417a 874c f7 99a9f9537

Main functions of Control UI:

Next, you can start chatting on the page:

3f1 13fb 93d4 49f 8b 1 b95 c7e 3 6e

🚀Fastest experience path


Open the Control UI and start chatting directly—no Channel configuration is needed! This is the fastest way to verify that OpenClaw is working correctly.

Quick reference for commands

Command Description
openclaw doctor Perform a comprehensive health check and attempt to fix configuration issues
openclaw health Quick health check
openclaw status View the overall status of the Gateway and channels
openclaw gateway status View the Gateway process status
openclaw gateway status --deep Deep state check (including RPC probe)
openclaw gateway run Run Gateway in foreground
openclaw gateway start Start Gateway service in background
openclaw gateway stop Stop Gateway service
openclaw gateway restart Restart Gateway service
openclaw gateway probe Detect Gateway connectivity and status
openclaw gateway discover Discover local or remote Gateway
openclaw gateway call health Call Gateway health check interface
openclaw channels status --probe Check the connection status of all channels
openclaw dashboard Open the browser control panel
openclaw logs --follow Real-time tracking of log output
openclaw onboard Rerun the initialization configuration wizard
openclaw secrets reload Hot reload Secrets configuration

Gateway hot reload mechanism

OpenClaw supports configuration hot reload, defaulting tohybridMode:

gateway.reload.mode Behavior description
off Does not reload automatically, requires manual restart
hot Applies only security changes (does not interrupt connection)
restart Any change restarts Gateway
hybrid(Default) Hot-reloadable hot-reloadable, automatic restart required

TUI: Terminal chat interface

Besides the browser Control UI, OpenClaw also provides an interactive interface that runs entirely in the terminal—TUI (Terminal UI)No browser needed, you can chat directly even when connected to the server via SSH.

Quick Start

Original prompt (Chinese, left untranslated)

# 第一步:确保 Gateway 已运行

openclaw gateway



# Step 2: Open TUI

openclaw tui

a 3baa1 51f1 4f7 818 45c9a6793484

Connect to Remote Gateway:

Original prompt (Chinese, left untranslated)

openclaw tui --url ws://<host>:<port> --token <gateway-token>



# If Gateway uses password authentication

openclaw tui --url ws://<host>:<port> --password <password>

Interface Layout

After starting the TUI, you will see four areas:

Area Content
Header Connection URL, current Agent, current Session
Chat log User message, AI reply, system notification, tool call card
Status line Connection / running status (connecting / running / streaming / idle / error)
Footer Connection status + Agent + Session + Model + Token count

Header area:

7e9 5c64 8183 41cc 8b8b aa5686c14ad5

Footer area:

a16 4c55 c e 481 963a 8c9 d8d1ecc

Keyboard shortcuts

Shortcuts Function
Enter Send message
Esc Stop current run
Ctrl+C Clear input (double-press to exit)
Ctrl+D Exit TUI
Ctrl+L Open model selector
Ctrl+G Open Agent selector
Ctrl+P Open Session selector
Ctrl+O Toggle tool output expand/collapse
Ctrl+T Toggle Thinking display (will reload history)

Common slash commands

Use / to bring up commands:

44798f 6d3b 44a 95e7 dfd6b97b7c38

Common commands:

Original prompt (Chinese, left untranslated)



/help                          # 查看帮助

/status                        # 查看连接状态

/agent <id>                    # 切换 Agent

/session <key>                 # 切换 Session

/model <provider/model>        # 切换模型(如 /model anthropic/claude-sonnet-4-6)

/think <off|minimal|low|medium|high>   # 设置思考深度

/deliver <on|off>              # 开启/关闭消息投递到 Provider

/new                           # 重置当前 Session

/abort                         # 中止当前运行

/exit                          # 退出 TUI

Local Shell commands

By typing in the input box with!You can directly execute local shell commands:

Original prompt (Chinese, left untranslated)

!ls -la          # 列出当前目录

!cat log.txt     # 查看文件内容

⚠️ TUI will prompt for authorization the first time it is used in a session, and it will be unavailable in the current session if rejected.!If rejected, it will be unavailable in the current session.!Will be unavailable.

Startup options

Parameters Description Default value
--url <url> Gateway WebSocket address Read configuration orws://127.0.0.1:<port>
--token <token> Gateway Token authentication —
--password <password> Gateway password authentication —
--session <key> Specify Session main
--deliver Enable message delivery at startup Disabled by default
--thinking <level> Override thinking level —
--history-limit <n> Number of history entries to load 200
--timeout-ms <ms> Agent timeout time Read agents.defaults.timeoutSeconds

Related content

Other related content includes:

** OpenClaw one-click deployment

** OpenClaw configuration directory

** OpenClaw working principle

** OpenClaw integration with WeChat

OpenClaw Integration with Feishu

OpenClaw Skills

OpenClaw Uninstallation Guide