Complete OpenClaw Installation & Setup Guide
Step-by-step tutorial to deploy your personal AI assistant on cloud server. Supports Telegram, WhatsApp, Discord and more platforms. Available 24/7 online service. Master OpenClaw install and setup in minutes.
What is OpenClaw?
OpenClaw (formerly known as MoltBot / ClawDBot) is an open-source AI Agent framework that enables you to chat with AI through instant messaging platforms like Telegram, WhatsApp, and more. Unlike simple chatbots, OpenClaw can execute complex tasks, manage files, call APIs, truly becoming your personal digital assistant.
All data is stored on your own server, without passing through any third-party platforms, giving you complete control over your privacy.
Telegram, WhatsApp, Discord, Slack, Signal, iMessage
OpenAI GPT-4, Claude, Gemini or local models
Execute code, manage files, call APIs, run scripts
GitHub, Calendar, Email, Weather and more integrations
Project Name Evolution History
Why Do You Need a Cloud Server?
Compared to running on your local computer, cloud servers offer these advantages for your OpenClaw setup:
- 24/7 Online - Your AI assistant responds to messages anytime, even when your computer is off
- Publicly Accessible - No port forwarding or NAT traversal needed, simpler OpenClaw install configuration
- Stable & Reliable - Professional data center operations, 99.9% uptime guarantee
- Data Security - Automatic backups protect against data loss from hardware failures
- Isolated Environment - OpenClaw has terminal access, running on a separate server is more secure
Recommended: hosting.com XS VPS Cloud Server
If you don't have a server yet, we recommend hosting.com. Their servers perfectly meet OpenClaw's requirements at an affordable price for your OpenClaw installation:
Supported AI Models
OpenClaw supports multiple mainstream AI models. Choose according to your needs for your OpenClaw setup:
| Provider | Model | Features |
|---|---|---|
| OpenAI | GPT-4, GPT-4o, GPT-3.5 | Powerful, widely adopted |
| Anthropic | Claude 3.5, Claude 3 | Safe & reliable, ultra-long context |
| Gemini Pro | Multimodal support | |
| Zhipu AI | GLM-4 | Chinese optimized |
| Moonshot AI | Kimi | Ultra-long context |
| Local Models | Ollama (Llama, Mistral, etc.) | Completely local, maximum privacy |
Supported Chat Platforms
OpenClaw supports multiple chat platforms. Use your favorite app to chat with AI after OpenClaw install:
- Telegram - Recommended for beginners, simplest setup
- WhatsApp - Connect via WhatsApp Web QR code
- Discord - Perfect for communities and teams
- Slack - Top choice for enterprise collaboration
- Signal - Preferred by privacy-focused users
- iMessage - Requires additional configuration
System Requirements
Before starting the OpenClaw install process, ensure you have:
| Item | Minimum | Recommended |
|---|---|---|
| Operating System | Ubuntu 20.04+ | Ubuntu 24.04 LTS |
| Memory | 1GB | 2GB+ |
| CPU | 1 vCPU | 2 vCPU |
| Storage | 20GB SSD | 30GB+ NVMe SSD |
Cost Estimate
| Item | Cost |
|---|---|
| OpenClaw Software | Free (MIT Open Source License) |
| Cloud Server (VPS) | $9.99/month |
| AI API (Light Usage) | $5-30/month |
OpenClaw Installation & Setup Tutorial
Let's complete the OpenClaw deployment step by step. The entire OpenClaw install process takes approximately 15-20 minutes.
Step 1: Get a Cloud Server
First, you need a cloud server for your OpenClaw setup. If you already have one, skip to step 2.
- Asia Users - Singapore, Tokyo, Hong Kong
- US/Europe Users - US West Coast, Europe
Step 2: Connect to Your Server
After purchasing a server, you need to connect via SSH to begin OpenClaw setup.
Recommended Tools for Windows Users:
- Windows Terminal (Built-in on Windows 10/11)
- PuTTY - Classic SSH client
- Termius - Cross-platform, beautiful interface
macOS / Linux Users: Just open the terminal.
# Login with password
ssh root@your_server_ip
# Login with SSH key (more secure)
ssh -i ~/.ssh/your_key root@your_server_ip
yes and press Enter.
Step 3: Create Dedicated User (Recommended)
For security, it's recommended to create a non-root user to run OpenClaw:
# Create new user
adduser openclaw
# Grant sudo privileges
usermod -aG sudo openclaw
# Switch to new user
su - openclaw
Step 4: Update System
Update system packages and install necessary dependencies for OpenClaw setup:
# Update package list and upgrade
sudo apt update && sudo apt upgrade -y
# Install necessary tools
sudo apt install -y curl git unzip
Step 5: Install Node.js
OpenClaw requires Node.js 22 or higher. We recommend using nvm for installation:
# 1. Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# 2. Reload configuration
source ~/.bashrc
# 3. Install Node.js 22
nvm install 22
# 4. Set as default version
nvm alias default 22
# 5. Verify installation
node -v # Should show v22.x.x
npm -v # Should show 10.x.x or higher
source ~/.nvm/nvm.sh or reopen your terminal before continuing OpenClaw install.
Step 6: Install OpenClaw
Method 1: One-Click Installation Script (Recommended)
curl -fsSL https://molt.bot/install.sh | bash
Method 2: Install via npm
npm install -g moltbot@latest
Reload shell after installation completes:
exec bash
Verify installation:
clawdbot --version
Step 7: Run Setup Wizard
Run the OpenClaw setup wizard to complete initial configuration:
clawdbot onboard --install-daemon
The setup wizard will guide you through:
Select "Yes" to continue
Choose OpenAI, Anthropic or other providers
Paste your AI service API key
Choose Telegram, WhatsApp, etc.
Select "Yes" to enable Memory, Heartbeat, Tools
Setup Telegram Bot
Telegram is the most recommended platform for beginners with the simplest OpenClaw setup.
Create Telegram Bot
- Search for @BotFather in Telegram
- Send
/newbotcommand to create a new bot - Follow prompts to set bot name and username
- Copy the Token returned by BotFather
Add to OpenClaw
# Add Telegram channel
clawdbot channel add telegram
Paste the Bot Token when prompted.
Authorize Users
Send a message to your bot, then:
# View pending authorization requests
clawdbot pairing list telegram
# Approve authorization (replace CODE with actual code)
clawdbot pairing approve telegram CODE
Setup WhatsApp
WhatsApp requires authorization by scanning a QR code:
# Add WhatsApp channel
clawdbot channel add whatsapp
# Start WhatsApp service
clawdbot channel start whatsapp
A QR code will be displayed in the terminal:
- Open WhatsApp on your phone
- Go to Settings â Linked Devices â Link a Device
- Scan the QR code in the terminal
Setup Discord
Discord requires creating an application on the developer platform first:
- Visit Discord Developer Portal
- Click "New Application" to create a new app
- Go to Bot page, click "Add Bot"
- Copy the Bot Token
- Invite the bot to your server
# Add Discord channel
clawdbot channel add discord
# Start Discord service
clawdbot channel start discord
Follow prompts to enter Bot Token, Guild ID and Channel ID.
Access Web Control Panel
OpenClaw provides a web control panel for viewing chat history and managing settings. The panel runs on 127.0.0.1:18789 and needs to be accessed via SSH tunnel:
# Run on local computer terminal (not on server)
ssh -N -L 18789:127.0.0.1:18789 openclaw@your_server_ip
# Then open in browser
http://127.0.0.1:18789
The control panel provides multiple functional pages:
Common Commands Reference
Service Management
# Check status
clawdbot gateway status
# Restart service
clawdbot gateway restart
# Stop service
clawdbot gateway stop
# Start service
clawdbot gateway start
Logs & Diagnostics
# View real-time logs
clawdbot logs --follow
# View historical logs
clawdbot logs
# Diagnostic check
clawdbot doctor
Channel Management
# List all channels
clawdbot channel list
# Add channel
clawdbot channel add telegram
# View pending authorization list
clawdbot pairing list telegram
Skill Plugins
# List all skills
clawdbot skills list
# Install skill
clawdbot skills install github
Personalization Configuration
# Edit AI personality settings
nano ~/clawd/SOUL.md
# Edit user information
nano ~/clawd/USER.md
Frequently Asked Questions (FAQ)
exec bash or reconnect to your server via SSH.
clawdbot gateway status to confirm the service is running. For Telegram, make sure you've approved authorization using clawdbot pairing approve telegram CODE.
~/clawd/SOUL.md to set the AI's personality, and edit ~/clawd/USER.md to add information about yourself.