How to Deploy OpenClaw on Hostinger VPS (Complete Guide)
Deploying OpenClaw on Hostinger VPS takes about 20 minutes: provision a KVM 1 plan ($4.99/mo, 4GB RAM), install Docker, pull the OpenClaw image, configure your API keys, and set up a reverse proxy with SSL. The 4GB RAM KVM 1 plan handles OpenClaw's gateway and a single agent node comfortably. For multi-agent setups, upgrade to KVM 2 ($6.99/mo, 8GB RAM).
What Is OpenClaw?
OpenClaw is an open-source AI agent framework for self-hosting personal AI assistants with multi-model support, persistent memory, and tool integrations.
OpenClaw is an open-source AI agent framework that lets you run personal AI assistants 24/7 on your own infrastructure. Unlike cloud-only solutions (ChatGPT, Claude API), OpenClaw gives you full control over your AI agent — your data stays on your server, you choose the AI model, and you can extend it with custom tools and integrations.
Key features: multi-model support (Claude, GPT, Gemini, Grok), persistent memory across sessions, tool integration (browser, email, calendar, messaging), and a gateway architecture that handles multiple agent instances.
Why Hostinger VPS for OpenClaw?
OpenClaw's minimum requirements are modest: 2GB RAM, 1 vCPU, and Docker. Here's why Hostinger is the best fit:
- Price: $4.99/mo for 4GB RAM gives 2x headroom over minimum requirements
- NVMe storage: Fast disk I/O for agent memory and tool caching
- KVM: Docker works perfectly on KVM (unlike some OpenVZ providers)
- Management panel: Easy server monitoring and firewall configuration
- 8 locations: Pick the data center closest to you for low-latency agent interaction
Compared to running OpenClaw on Railway ($5/mo with cold starts) or DigitalOcean ($6/mo for 1GB RAM), Hostinger gives you the most resources for the least money.
Step 1: Provision Your Hostinger VPS
Sign up for Hostinger and purchase the KVM 1 plan ($4.99/mo):
- Go to Hostinger VPS hosting page
- Select KVM 1 (1 vCPU, 4GB RAM, 50GB NVMe)
- Choose Ubuntu 22.04 LTS as your operating system
- Select the data center closest to you
- Set a strong root password
- Complete payment and wait 1-2 minutes for provisioning
Step 2: Server Setup and Docker Install
SSH into your new server and prepare it:
# Connect to your VPS
ssh root@YOUR_SERVER_IP
# Update packages
apt update && apt upgrade -y
# Set up firewall
ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
# Install Docker
curl -fsSL https://get.docker.com | sh
apt install docker-compose-plugin -y
# Create a non-root user
adduser openclaw
usermod -aG sudo,docker openclaw
rsync --archive --chown=openclaw:openclaw ~/.ssh /home/openclaw
# Switch to the new user
su - openclawStep 3: Deploy OpenClaw
Create the OpenClaw deployment:
# Create project directory
mkdir -p ~/openclaw && cd ~/openclaw
# Create docker-compose.yml
cat > docker-compose.yml << 'EOF'
services:
openclaw:
image: openclaw/gateway:latest
ports:
- "3000:3000"
volumes:
- ./data:/app/data
- ./config:/app/config
environment:
- ANTHROPIC_API_KEY=your-key-here
- OPENAI_API_KEY=your-key-here
restart: unless-stopped
EOF
# Create config directory
mkdir -p config data
# Start OpenClaw
docker compose up -d
# Check logs
docker compose logs -fOpenClaw should be running on port 3000. Visit http://YOUR_SERVER_IP:3000 to verify.
Step 4: Set Up SSL with Traefik
For production use, add HTTPS with Traefik reverse proxy:
# Update docker-compose.yml to use Traefik
cat > docker-compose.yml << 'EOF'
services:
traefik:
image: traefik:v3.0
command:
- --providers.docker
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --certificatesresolvers.letsencrypt.acme.email=your@email.com
- --certificatesresolvers.letsencrypt.acme.storage=/acme.json
- --certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./acme.json:/acme.json
restart: unless-stopped
openclaw:
image: openclaw/gateway:latest
volumes:
- ./data:/app/data
- ./config:/app/config
environment:
- ANTHROPIC_API_KEY=your-key-here
labels:
- traefik.http.routers.openclaw.rule=Host(`ai.yourdomain.com`)
- traefik.http.routers.openclaw.tls.certresolver=letsencrypt
restart: unless-stopped
EOF
# Create acme.json with correct permissions
touch acme.json && chmod 600 acme.json
# Restart
docker compose up -dPoint your domain's DNS to your VPS IP, and Traefik will automatically obtain and renew SSL certificates from Let's Encrypt.
Resource Usage and Scaling
OpenClaw resource usage on Hostinger KVM 1 (4GB RAM):
- Idle gateway: ~200MB RAM, <1% CPU
- Active agent session: ~500MB-1GB RAM depending on context window and tools
- With Traefik + OpenClaw: ~350MB base, leaving 3.6GB for agent operations
The KVM 1 plan handles a single active agent session comfortably. For multi-agent setups (running agents on Discord, Telegram, and WhatsApp simultaneously), upgrade to KVM 2 ($6.99/mo, 8GB RAM).
Frequently Asked Questions
How much does it cost to self-host OpenClaw?
Server hosting costs $4.99/mo on Hostinger VPS. You also need API keys for the AI models you want to use (Anthropic Claude, OpenAI, etc.), which cost based on usage — typically $5-20/mo for personal use. Total: $10-25/mo for a fully self-hosted AI agent.
Is 4GB RAM enough for OpenClaw?
Yes — OpenClaw's gateway uses ~200MB idle and ~500MB-1GB during active sessions. 4GB RAM on Hostinger KVM 1 provides comfortable headroom for a single agent with tools. For multiple concurrent agents, upgrade to 8GB (KVM 2, $6.99/mo).
Can I run OpenClaw on the cheapest Hostinger plan?
The KVM 1 ($4.99/mo) is the cheapest VPS plan and it works well. Don't try to run OpenClaw on shared hosting — it requires Docker, SSH access, and background processes that shared hosting doesn't support.
How do I update OpenClaw on my VPS?
Run: docker compose pull && docker compose up -d. This pulls the latest OpenClaw image and restarts the container. Your data and configuration persist in the mounted volumes.
Is self-hosted OpenClaw secure?
With proper setup (SSH keys, firewall, SSL, non-root user), self-hosted OpenClaw is as secure as any self-hosted application. Your data stays on your server — no third-party cloud provider has access. Keep your server and Docker images updated for security patches.
- 1
Provision Hostinger VPS
Purchase KVM 1 plan ($4.99/mo), select Ubuntu 22.04, choose nearest data center, and wait for provisioning.
- 2
Set up server and Docker
SSH in, update packages, configure UFW firewall, install Docker and Docker Compose, create a non-root user.
- 3
Deploy OpenClaw
Create docker-compose.yml with OpenClaw gateway image, configure API keys, and run docker compose up -d.
- 4
Configure SSL with Traefik
Add Traefik reverse proxy for automatic HTTPS. Point your domain DNS to the VPS IP address.
- 5
Verify and configure
Access your OpenClaw instance via HTTPS, configure agents, tools, and integrations through the dashboard.
Get Hostinger VPS for OpenClaw — $4.99/mo
Deploy your own AI agent in 20 minutes. 4GB RAM, NVMe, Docker-ready. 30-day money-back guarantee.
Try Hostinger VPSHenry Fontaine
Chief of Staff & COO, RocketLabs
AI-native operator building the future of search visibility. Part of the team behind 3 tech exits and 400+ programmatic SEO deployments.