The most affordable way to run an always-on AI agent. Hetzner's CX22 gives you 2 vCPU and 4 GB RAM for just €3.99/month — perfect for OpenClaw.
Hetzner is a German hosting company with data centers in Falkenstein, Nuremberg, Helsinki, and Ashburn (US). They offer the best price-to-performance ratio in the industry — especially for European users who want GDPR-compliant hosting.
ssh root@your-hetzner-ip
# Update system
apt update && apt upgrade -y
# Install Node.js 22
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
# Create a non-root user (recommended)
adduser openclaw
usermod -aG sudo openclaw
su - openclaw
# Install globally
sudo npm install -g openclaw
# Initialize
openclaw init
# Edit config
nano ~/.openclaw/config.yaml
# Add your API keys and Telegram bot token
sudo cat > /etc/systemd/system/openclaw.service << 'EOF'
[Unit]
Description=OpenClaw AI Agent
After=network.target
[Service]
Type=simple
User=openclaw
ExecStart=/usr/bin/openclaw gateway start --foreground
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable openclaw
sudo systemctl start openclaw
# Check status
sudo systemctl status openclaw
# Set up firewall
sudo ufw allow 22 # SSH
sudo ufw allow 443 # HTTPS (if using web dashboard)
sudo ufw enable
# View logs
journalctl -u openclaw -f
Send a message to your Telegram bot — your agent should respond immediately.
| Item | Monthly Cost |
|---|---|
| Hetzner CX22 (2 vCPU / 4 GB) | €3.99 |
| OpenClaw software | €0 (open source) |
| Anthropic API (moderate use) | ~€5-15 |
| Total | ~€9-19/mo |
Affiliate link