Deployment Intermediate 30-60 min

Deploy OpenClaw on Cloud Server

Deploy OpenClaw on cloud servers like Vercel, Railway, or VPS for 24/7 operation

#Cloud Deploy #VPS #24/7

Prerequisites

  • A cloud server or VPS
  • Basic command line knowledge
  • Stable internet connection

Steps

1

Connect to Server

Use SSH to connect to your cloud server.

Commands

Mac/Linux
ssh root@your-server-ip
Windows
Connect using PuTTY or Windows Terminal

Tips

  • • Type 'yes' to confirm when connecting for the first time
2

Install Docker

Install Docker on your server.

Commands

Linux
curl -fsSL https://get.docker.com | sh && systemctl start docker && systemctl enable docker

Tips

  • • After installation, run 'docker --version' to verify
3

Deploy OpenClaw

Run the OpenClaw container.

Commands

Linux
docker run -d --name openclaw --restart always -p 80:8080 -v /root/openclaw/data:/app/data openclaw/openclaw:latest

Tips

  • • --restart always ensures automatic restart after server reboot
  • • Port 80 allows direct access via IP
4

Configure Firewall

Open firewall ports on your server.

Commands

Aliyun
In the console, add an inbound rule to the security group to open port 80
Tencent Cloud
In the console, add an inbound rule to the security group to open port 80

Tips

  • • If using other ports, remember to open them as well
5

Test Access

Access your OpenClaw via browser.

Commands

All Systems
Open http://your-server-ip in your browser

Tips

  • • Recommended: configure domain name and HTTPS certificate (using Nginx + Let's Encrypt)

Common Issues

Can't access via IP?
Check your cloud provider's security group settings to ensure the port is open
How to bind a domain?
Install Nginx as a reverse proxy, configure domain DNS to point to your server IP, then apply for an SSL certificate