How to Run OpenClaw on a $5/Month VPS (Complete Guide)
Last updated: February 2026
Everyone assumes you need a powerful computer to run a personal AI assistant. Expensive GPU, tons of RAM, the works.
Wrong.
OpenClaw can run perfectly well on a $5/month VPS. I've done it. Let me show you how.
Why a VPS Instead of Your Laptop?
Before we dive in, here's why a cheap VPS beats running on your laptop:
- Always on — Your AI assistant works while you sleep
- Accessible anywhere — Connect from your phone, work computer, anywhere
- No battery drain — Your laptop stays cool and quiet
- Separation — If something breaks, your personal machine is safe
- Fixed cost — $5/month is predictable; no surprise electricity bills
What You'll Need
- A VPS from any provider ($5/month tier is fine)
- Basic command line knowledge (copy-paste level is enough)
- An Anthropic API key (for Claude)
- 30-60 minutes of setup time
Choosing Your VPS Provider
Any of these work great at the $5/month tier:
| Provider | RAM | Storage | Monthly Cost | |----------|-----|---------|--------------| | DigitalOcean | 1GB | 25GB SSD | $6 | | Vultr | 1GB | 25GB SSD | $5 | | Linode | 1GB | 25GB SSD | $5 | | Hetzner | 2GB | 20GB SSD | ~$4 |
My recommendation: Hetzner if you're in Europe, Vultr or DigitalOcean for US.
Pick Ubuntu 22.04 LTS as your operating system. It's well-documented and stable.
Step 1: Initial Server Setup
Once your VPS is provisioned, SSH in:
ssh root@your-server-ip
First, let's secure the basics:
# Update everything
apt update && apt upgrade -y
# Create a non-root user
adduser openclaw
usermod -aG sudo openclaw
# Set up SSH key auth (more secure than passwords)
mkdir -p /home/openclaw/.ssh
cp ~/.ssh/authorized_keys /home/openclaw/.ssh/
chown -R openclaw:openclaw /home/openclaw/.ssh
# Disable root login and password auth
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
systemctl restart sshd
Now log out and log back in as your new user:
ssh openclaw@your-server-ip
Step 2: Install Dependencies
OpenClaw needs Node.js and a few tools:
# Install Node.js 20 LTS
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
# Verify installation
node --version # Should show v20.x
npm --version
# Install build tools (needed for some npm packages)
sudo apt install -y build-essential git
Step 3: Clone and Configure OpenClaw
# Clone the repository
git clone https://github.com/openclawai/openclaw.git
cd openclaw
# Install dependencies
npm install
# Copy the example config
cp .env.example .env
Now edit your config:
nano .env
Add your API key and configure your preferences:
ANTHROPIC_API_KEY=sk-ant-your-key-here
TELEGRAM_BOT_TOKEN=your-bot-token # Optional but recommended
DEFAULT_MODEL=claude-sonnet-4-20250514
Step 4: Set Up as a System Service
You want OpenClaw to start automatically and stay running:
sudo nano /etc/systemd/system/openclaw.service
Paste this:
[Unit]
Description=OpenClaw AI Assistant
After=network.target
[Service]
Type=simple
User=openclaw
WorkingDirectory=/home/openclaw/openclaw
ExecStart=/usr/bin/node index.js
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=openclaw
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Enable and start:
sudo systemctl daemon-reload
sudo systemctl enable openclaw
sudo systemctl start openclaw
Check it's running:
sudo systemctl status openclaw
Step 5: Connect Via Telegram
The easiest way to talk to your AI assistant is through Telegram:
- Message @BotFather on Telegram
- Create a new bot (
/newbot) - Copy the token to your
.envfile - Restart the service:
sudo systemctl restart openclaw
Now message your bot. Your AI assistant is live!
Performance on a $5 VPS
"But will it be slow?"
No. Here's why:
- OpenClaw itself is lightweight — It's mostly just routing your messages to Claude's API
- The AI runs on Anthropic's servers — Your VPS just handles the interface
- 1GB RAM is plenty — I've run it with 512MB without issues
The only thing that matters is your internet latency to Anthropic's API. A VPS in a major datacenter usually has better connectivity than your home ISP anyway.
Cost Breakdown
Let's be real about the total cost:
| Item | Monthly Cost | |------|--------------| | VPS | $5-6 | | Anthropic API | ~$5-20 (usage-dependent) | | Total | $10-26/month |
For a personal AI assistant that's available 24/7, remembers your context, and can do real tasks? That's incredible value.
Compare to:
- ChatGPT Plus: $20/month (no customization, no integrations)
- Claude Pro: $20/month (same limitations)
With your own setup, you get full control, custom skills, and real automation.
Troubleshooting
"Service won't start"
Check the logs:
sudo journalctl -u openclaw -f
Usually it's a missing environment variable or syntax error in .env.
"Bot doesn't respond in Telegram"
- Verify your bot token is correct
- Check the webhook URL (if using one)
- Make sure your firewall allows outbound HTTPS
"Running out of memory"
Add swap space:
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
What's Next?
Once you have the basics running:
- Add custom skills — Make your AI do specific tasks for you
- Connect your calendar — Let it manage your schedule
- Set up heartbeats — Proactive check-ins and reminders
- Add more integrations — Email, smart home, whatever you need
Need Help?
Setting this up yourself is totally doable, but if you'd rather have an expert handle it in an hour while you watch and learn, that's exactly what I do.
You'll walk away with everything configured, optimized, and working — plus you'll understand how it all fits together.
Have questions? Book a setup session or check the OpenClaw community forums for troubleshooting help.