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.
- Authentication Configuration: Set the Gateway Token or Password to protect your API interface
- Model Provider Configuration: Select and configure your LLM (e.g., Anthropic API Key)
- Channel Configuration (Optional): Connect chat channels such as Telegram Bot, WhatsApp, etc.
- Install System Service:
--install-daemonParameter to enable Gateway auto-start on boot
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

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

Main functions of Control UI:
- Chat interfaceNo channel configuration is required; you can chat with the AI directly in the browser.
- Status MonitoringView Gateway health status and channel connection status.
- Session ManagementView and manage conversation history from different channels.
Next, you can start chatting on the page:

🚀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

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:

Footer area:

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:

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