Deploy openclaw.ai on Hostinger VPS

Intermediate ⏱ 30 minutes 📅 Updated Feb 2026

Deploy openclaw.ai on Hostinger VPS for affordable, reliable cloud hosting starting at $4.99/month.

💰

Budget-Friendly

Hostinger offers some of the most affordable VPS plans on the market. Their KVM 1 plan ($4.99/month) includes 1 vCPU, 4 GB RAM, and 50 GB NVMe — excellent value for openclaw.ai.

📋 Prerequisites

1

Create a Hostinger VPS

Log in to hPanel and set up your VPS:

  1. Go to VPS → Setup on your purchased VPS plan
  2. Select your preferred server location (US, Europe, Asia, South America)
  3. Under Operating System, choose Ubuntu 22.04 64bit
  4. Set a strong Root Password
  5. Optionally, set a Hostname (e.g., openclaw-vps)
  6. Click Continue to provision the server
â„šī¸

SSH Key Setup

For better security, add your SSH public key in hPanel under VPS → Settings → SSH Keys after provisioning. Then disable password authentication.

2

Connect via SSH

Find your VPS IP address in hPanel under VPS → Information, then connect:

bash
# Replace with your VPS IP from hPanel
ssh root@your-vps-ip

Alternatively, Hostinger provides a Browser terminal in hPanel — click VPS → Browser terminal if you can't use a local SSH client.

3

System Update & Dependencies

Update the package index and upgrade all installed packages:

bash
sudo apt update && sudo apt upgrade -y
4

Install Node.js 22

openclaw.ai requires Node.js 22 or higher. Install it from the official NodeSource repository:

bash
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version  # Should show v22.x.x
5

Install openclaw.ai

Run the official one-line installer:

bash
curl -fsSL https://openclaw.ai/install.sh | bash
6

Run Onboarding

Launch the interactive onboarding wizard. The --install-daemon flag automatically configures openclaw.ai to run as a background service:

bash
openclaw onboard --install-daemon

The wizard will walk you through:

  • Authentication setup (API keys for your LLM provider)
  • Gateway configuration (port, allowed origins)
  • Optional channel setup (Slack, Discord, etc.)
7

Verify Installation

Confirm everything is running correctly:

bash
# Check system configuration
openclaw doctor

# Verify the gateway is healthy
openclaw health

# Open the web dashboard
openclaw dashboard
# Dashboard available at http://your-vps-ip:18789
8

Configure Hostinger Firewall

Hostinger VPS uses a built-in firewall you can manage through hPanel and the OS-level ufw:

Via hPanel

  1. Go to VPS → Settings → Firewall
  2. Enable the firewall if not already active
  3. Add rules to allow SSH (port 22) and the openclaw dashboard (port 18789)

Via Command Line (ufw)

bash
# Enable ufw and allow SSH first (important!)
sudo ufw allow 22/tcp
sudo ufw allow 18789/tcp
sudo ufw enable
sudo ufw status
âš ī¸

Always Allow SSH First

Always add the SSH rule before enabling ufw, or you'll lock yourself out of the server. If that happens, use the hPanel Browser terminal to regain access.

9

Keep Running with systemd

The --install-daemon flag from Step 6 already set up a systemd user service. To check its status:

bash
# Check gateway status via openclaw CLI
openclaw gateway status

# Or check directly via systemd
systemctl --user status openclaw-gateway

# View live logs
journalctl --user -u openclaw-gateway -f

The service will automatically restart on failure and start on boot.

🔧 Troubleshooting

If you enabled ufw without allowing SSH first:

  1. Go to hPanel → VPS → Browser terminal
  2. Run: sudo ufw allow 22/tcp
  3. Verify with: sudo ufw status

Check both the hPanel firewall and the OS-level firewall:

bash
# Check if the gateway is listening
ss -tlnp | grep 18789

# Check ufw
sudo ufw status
sudo ufw allow 18789/tcp

Also verify the firewall rules in hPanel under VPS → Settings → Firewall.

Check resource usage on the server:

bash
# Check memory usage
free -h

# Check disk usage
df -h

# Check running processes
top

Hostinger KVM 1 includes 4 GB RAM which should be ample. If you're running other services on the same VPS, consider upgrading or removing unused software.