github star gitee star atomgit star PyPI Downloads AI编程 AI交流群

Hello everyone, this is programmer Wan Feng actively working on various AI projects.

After Tencent sponsored OpenClaw, many enterprises and developers asked me: "What are the new changes for deploying OpenClaw now?"

The answer: Deployment is simpler, enterprise-level features are stronger.

Today's beginner-friendly tutorial takes you from zero to deploy a production-level OpenClaw environment.

📋 Deployment Solutions Comparison

SolutionSuitable ScenarioCostDifficultyRecommended Index
Local deploymentLearning, testingFree⭐⭐⭐
Tencent Cloud LighthouseIndividual/small team¥88/month⭐⭐⭐⭐⭐⭐⭐
Tencent Cloud CVMMedium/large enterprise¥500+/month⭐⭐⭐⭐⭐⭐⭐
Containerized deploymentLarge-scale clusterPay as you go⭐⭐⭐⭐⭐⭐⭐⭐

Recommended: 90% of users choose Tencent Cloud Lighthouse, best cost-performance ratio.


Step 1: Purchase Server

  1. Visit Tencent Cloud Lighthouse
  2. Select configuration:
    • CPU: 2 cores
    • Memory: 4GB
    • System: Ubuntu 22.04 LTS
    • Region: Choose the nearest one
  3. Use OpenClaw exclusive discount code: OPENCLAW2026 (first month 50% off)

Step 2: SSH Connect to Server

1
ssh root@your_server_ip

Step 3: Install Basic Environment

1
2
3
4
5
6
7
8
9
10
11
12
# Update system
apt update && apt upgrade -y

# Install Python 3.11
apt install python3.11 python3.11-venv python3-pip -y

# Install Git
apt install git -y

# Install Node.js (for Web UI)
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt install nodejs -y

Step 4: Install OpenClaw

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Create user
useradd -m openclaw
su - openclaw

# Clone code
git clone https://github.com/openclaw/openclaw.git
cd openclaw

# Create virtual environment
python3.11 -m venv venv
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Install OpenClaw CLI
npm install -g openclaw

Step 5: Configure Environment Variables

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Create configuration file
cat > .env << EOF
# OpenClaw Configuration
OPENCLAW_PORT=8080
OPENCLAW_HOST=0.0.0.0

# Model configuration (fill according to your model)
OPENCLAW_MODEL=bailian/qwen3.5-plus
OPENCLAW_API_KEY=your_API_key

# Tencent Cloud Hunyuan (optional, free after Tencent sponsorship)
HUNYUAN_API_KEY=your_Hunyuan_API_key

# Database configuration
OPENCLAW_DB_PATH=/home/openclaw/.openclaw/data
EOF

Step 6: Start Service

# Method 1: Foreground (for testing)
openclaw gateway start

# Method 2: Background (production environment)
nohup openclaw gateway start > openclaw.log 2>&1 &

# Method 3: Systemd service (recommended)
cat > /etc/systemd/system/openclaw.service << EOF
[Unit]
Description=OpenClaw Gateway
After=network.target


## 🎓 AI 编程实战课程

想系统学习 AI 编程?程序员晚枫的 **AI 编程实战课** 帮你从零上手!

- 👉 **免费试看**:[网盘链接,免费试看前3讲,先看看适不适合自己](https://pan.quark.cn/s/8f7886f79569)
- 👉 - 👉 **课程报名**:[点击这里报名,现在报名还送书📖](https://r7up9.xetslk.com/s/3978Ig)