OpenClaw Getting Started
Follow these steps to install and configure OpenClaw from scratch
Quickest Path
Just want to try it out? One command starts the Dashboard for instant chatting:
$ openclaw dashboardhttp://127.0.0.1:18789/OpenClaw Requirements
Before you begin, make sure your system meets these requirements
Required to run OpenClaw
macOS, Linux, or Windows (WSL2 recommended)
Enables web search functionality
Install OpenClaw
Choose your preferred installation method. One-liner is recommended
$ curl -fsSL https://openclaw.ai/install.sh | bashOpenClaw Configuration Wizard
The wizard will guide you through all necessary setup including gateway, authentication, and chat platform connections
$ openclaw onboard --install-daemonThe wizard will configure
- Gateway Type - Choose local or remote gateway
- AI Model Auth - OpenAI (OAuth/API Key) or Anthropic (API Key recommended, claude setup-token also supported)
- Chat Platforms - WhatsApp QR code, Telegram/Discord Bot Token, etc.
- Daemon Service - Background service installation (macOS: launchd, Linux/WSL2: systemd)
Config File Locations (Important)
- Main config directory
~/.openclaw/ - OAuth credentials
~/.openclaw/credentials/oauth.json - Auth profiles (OAuth + API Key)
~/.openclaw/agents/<agentId>/agent/auth-profiles.json
Start OpenClaw Gateway
The gateway is OpenClaw's core service that handles all messages
Check service status
$ openclaw gateway statusStart gateway manually (to specify port)
$ openclaw gateway --port 18789Access Web Dashboard
http://127.0.0.1:18789/Quick Verify (confirm service is running)
$ openclaw status$ openclaw health$ openclaw security audit --deepConnect Chat Platforms
Pair and connect your first chat interface
WhatsApp (QR Code Login)
$ openclaw channels loginRun the command to display a QR code. Open WhatsApp → Settings → Linked Devices → Scan the QR code to connect.
Telegram / Discord / Others
The wizard can help configure tokens. If you prefer manual setup, see these docs:
OpenClaw Security Setup
Ensure only authorized users can use your AI assistant
Default behavior: Unknown DMs receive a short code, and messages won't be processed until approved. If your first DM doesn't get a reply, approve the pairing:
List pending pairing requests
$ openclaw pairing list whatsappApprove pairing (replace [code] with actual code)
$ openclaw pairing approve whatsapp <code>Verify OpenClaw
In a new terminal, send a test message
Send test message (replace with your target number)
$ openclaw message send --target +15555550123 --message "Hello from OpenClaw"Debug Tips
openclaw status --allBest copy-pasteable, read-only debug reportopenclaw healthoropenclaw status --deepRequests health snapshot from running gateway
OpenClaw Setup Complete
Congratulations! You've successfully installed and configured OpenClaw. Start chatting with your AI assistant now.