Deploy OpenClaw on a $5 VPS: The Budget Self-Hosted Guide
You want a self-hosted AI agent that runs 24/7, but you don’t want to pay for a cloud API or a $40/month server. The search for an openclaw cheap vps | openclaw $5 vps, budget ai agent ends here.
This guide uses a $5/month DigitalOcean droplet, the open-source OpenClaw platform, and the community’s budget model providers like DeepSeek via OpenRouter. Your total monthly cost for a fully operational agent will be under $10, with most of that going to the VPS itself. The AI inference cost is negligible.
We’ll deploy the entire stack with Docker, connect it to a budget AI provider, and verify it’s working. The process takes about 20 minutes if you follow the steps exactly.
What You Need
This setup is designed for a $5/month VPS. The prerequisites are chosen to keep costs low and avoid compatibility issues on minimal hardware.
- A DigitalOcean account with a $5 “Basic” droplet: This is the cheapest VPS that reliably runs Docker and the OpenClaw stack. The 1GB RAM / 1 vCPU / 25GB SSD plan works. Other providers like Linode or Vultr have similar $5 plans, but DigitalOcean’s setup is the most consistent for this guide.
- An OpenRouter API key (free tier): This is your gateway to budget AI models. The free tier gives you $1 in credits, enough for initial testing. OpenRouter routes your requests to the cheapest capable model, like DeepSeek-V3, which costs fractions of a cent per request.
- Docker and Docker Compose installed on the VPS: OpenClaw runs in containers. The official install script works on a fresh Ubuntu 22.04 droplet, which is DigitalOcean’s default.
- Your VPS IP address or domain: You’ll need this to access the OpenClaw web interface. A domain is optional; the IP works fine.
Setting Up Your Environment
1. Provision Your $5 Droplet
You need a clean server to work on. DigitalOcean’s control panel makes this a two-minute task.
You are my OpenClaw agent. I need to set up a $5 VPS for self-hosting. Guide me through the manual steps I must perform in my web browser.
1. Tell me to log into my DigitalOcean account (or create one).
2. Instruct me to click "Create" and choose "Droplets".
3. Tell me to select the "$5/month" Basic plan with 1GB RAM.
4. Tell me to choose the "Ubuntu 22.04 LTS" image.
5. Tell me to select a datacenter region close to me.
6. Tell me to set an Authentication method (SSH key is recommended; password is simpler).
7. Tell me to click "Create Droplet".
8. Once it's running, tell me to copy the new droplet's public IPv4 address. I will provide this to you for the next steps.
What the Claw does: It walks you through the manual browser steps you cannot automate. What you see: A list of clear, numbered instructions. After completing them, you’ll have a new server IP address.
2. Install Docker on the Fresh VPS
OpenClaw runs inside Docker containers. This command installs Docker and Docker Compose in one shot, which is the standard method for Ubuntu.
You are my OpenClaw agent. I have a new Ubuntu 22.04 VPS at IP [PASTE_YOUR_VPS_IP_HERE]. Connect to it via SSH and install Docker.
1. SSH into the VPS. Use the command: `ssh root@[PASTE_YOUR_VPS_IP_HERE]` (If you used password auth, enter it when prompted. If you used an SSH key, ensure it's loaded in your agent).
2. Once connected, run the official Docker installation script: `curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh`
3. Add your user to the docker group to run commands without sudo: `sudo usermod -aG docker $USER`
4. Activate the group change for the current session: `newgrp docker`
5. Verify Docker is installed and running: `docker --version && docker ps`
6. Install Docker Compose plugin: `sudo apt-get update && sudo apt-get install docker-compose-plugin -y`
7. Verify the installation: `docker compose version`
8. Report the versions you see and confirm the system is ready.
What the Claw does: It logs into your new server and runs the standard install commands. What you see: A stream of installation output, ending with Docker and Docker Compose version numbers (e.g., Docker version 26.x, Docker Compose version v2.x).
3. Get Your OpenRouter API Key
This key is how your self-hosted OpenClaw will access cheap AI models like DeepSeek. The free tier is sufficient to prove everything works.
You are my OpenClaw agent. Guide me through getting my budget AI provider API key.
1. Tell me to open my browser and go to https://openrouter.ai.
2. Tell me to sign up for a free account (Google/Github login works).
3. Once logged in, tell me to click on my profile picture/name in the top right and select "API Keys".
4. Tell me to click "Create Key". I can name it "OpenClaw-VPS".
5. Tell me to copy the generated key immediately. It will only be shown once.
6. Tell me to save this key in a secure place. I will need it for the OpenClaw configuration file later.
7. Optionally, tell me I can view the "Requests" page later to see my usage and costs, which will be minimal.
What the Claw does: It provides the manual steps to obtain the critical component for budget AI. What you see: Instructions to get your API key. You will have a string like `sk-or-v1-…` to use in the next section.
