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.

OpenClaw Architecture Diagram
OpenClaw runs on your server and connects to multiple chat platforms
đŸ’Ŧ
Multi-Platform Support

Telegram, WhatsApp, Discord, Slack, Signal, iMessage

🧠
Multiple AI Models

OpenAI GPT-4, Claude, Gemini or local models

🔧
Automation Capabilities

Execute code, manage files, call APIs, run scripts

🌱
40+ Skill Plugins

GitHub, Calendar, Email, Weather and more integrations

Project Name Evolution History

ClawDBot → MoltBot → OpenClaw

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:

4GB RAM / 2 vCPU 80GB SSD Storage Free SSL Certificates Automatic Backups Full SSH Access
View hosting.com Plans $9.99/mo starting
âš ī¸
Why Not Run on Personal Computer? OpenClaw has full terminal access. For security reasons, it's best to run on an isolated server rather than on a computer with personal files.

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
Google 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
💡
Tip You can also use OpenRouter to access multiple models through one API, or run local models for maximum privacy during OpenClaw setup.

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.

🌐 Recommended Cloud Server Providers:

When creating a server, choose Ubuntu 24.04 LTS and note down the server's IP address for your OpenClaw install.

🌏
Region Selection Tips Choose the server region closest to you for best latency:
  • Asia Users - Singapore, Tokyo, Hong Kong
  • US/Europe Users - US West Coast, Europe
Cloud Server Control Panel
Cloud server console example (hosting.com) - Shows server IP, configuration info and status monitoring

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
âš ī¸
First Connection Prompt When connecting for the first time, you'll be asked to confirm the server fingerprint. Type 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
💡
Tip If you're just testing, you can continue using the root user for the following steps of OpenClaw install.

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
Terminal Command Line Interface
Verifying successful Node.js installation for OpenClaw
💡
If nvm command not found Try running 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
OpenClaw Installation Welcome Screen
OpenClaw installation complete welcome screen - Shows ClawdBot ASCII logo and version info
ClawdBot Command Help
Run clawdbot command to view all available options and subcommands for OpenClaw setup
✅
Installation Successful If you see the welcome screen, OpenClaw has been successfully installed!

Step 7: Run Setup Wizard

Run the OpenClaw setup wizard to complete initial configuration:

clawdbot onboard --install-daemon
â„šī¸
About --install-daemon Parameter This parameter installs OpenClaw as a system service for automatic startup on boot and background running.
Security Warning Confirmation
Setup wizard shows security prompt first, confirm to continue

The setup wizard will guide you through:

1
Security Confirmation

Select "Yes" to continue

2
Select AI Provider

Choose OpenAI, Anthropic or other providers

3
Enter API Key

Paste your AI service API key

4
Select Chat Channel

Choose Telegram, WhatsApp, etc.

5
Enable Feature Hooks

Select "Yes" to enable Memory, Heartbeat, Tools

Select AI Provider
Select AI provider in the setup wizard
🔐
Protect Your API Key API keys are as important as passwords. Don't share them or commit them to public repositories during OpenClaw setup.

Setup Telegram Bot

Telegram is the most recommended platform for beginners with the simplest OpenClaw setup.

Create Telegram Bot

  1. Search for @BotFather in Telegram
  2. Send /newbot command to create a new bot
  3. Follow prompts to set bot name and username
  4. Copy the Token returned by BotFather
Telegram BotFather
Create a Telegram bot using 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
Telegram Pairing Authorization
Use pairing list command to view pending requests, then approve command to authorize
🎉
Complete! Your Telegram bot is now AI-powered! Send it a message to try it out!

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:

  1. Open WhatsApp on your phone
  2. Go to Settings → Linked Devices → Link a Device
  3. Scan the QR code in the terminal
WhatsApp QR Code Setup
Terminal displays WhatsApp QR code, scan with phone to connect
💡
Tip WhatsApp connection may take a few seconds, please be patient during OpenClaw setup.

Setup Discord

Discord requires creating an application on the developer platform first:

  1. Visit Discord Developer Portal
  2. Click "New Application" to create a new app
  3. Go to Bot page, click "Add Bot"
  4. Copy the Bot Token
  5. 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
OpenClaw Control Panel Overview
Control panel overview page - Shows gateway status, connection info and system health

The control panel provides multiple functional pages:

Control Panel Chat Interface
Chat page - Chat directly with AI in the control panel
Control Panel Logs Interface
Logs page - View detailed system logs, supports filtering by level
🎉
Congratulations! Deployment Complete You have successfully completed your OpenClaw installation and setup. Now you can chat with it anytime, anywhere!

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
Skill Plugins List
OpenClaw provides 40+ skill plugins, including GitHub, Apple Notes, Obsidian and more integrations

Personalization Configuration

# Edit AI personality settings
nano ~/clawd/SOUL.md

# Edit user information
nano ~/clawd/USER.md

Frequently Asked Questions (FAQ)

What if the command is not found after OpenClaw install? +
Run exec bash or reconnect to your server via SSH.
What if the bot doesn't respond to messages? +
Check clawdbot gateway status to confirm the service is running. For Telegram, make sure you've approved authorization using clawdbot pairing approve telegram CODE.
How much does OpenClaw setup cost? +
OpenClaw software is free. Main costs include: cloud server approximately $9.99/month, AI API usage about $5-30/month (depending on usage).
Can I customize the AI's personality? +
Yes. Edit ~/clawd/SOUL.md to set the AI's personality, and edit ~/clawd/USER.md to add information about yourself.
Can I run it on my personal computer? +
Technically yes, but not recommended. OpenClaw has full terminal access. Running on a VPS protects your personal files and keeps it online 24/7.
Where is data stored? Is it secure? +
All data is stored on your own server. OpenClaw is open-source software, giving you complete control over your data.
Can I use multiple AI models simultaneously? +
Yes. You can configure multiple AI providers and switch between different models in conversations.