What OpenClaw is
OpenClaw is a free, open-source AI agent that works as a personal assistant running around the clock. It can browse the web, read and write files, run shell commands, and talk to you through WhatsApp, Telegram and Discord.
OpenClaw needs to stay online and needs system-level permissions to run its automations, so your personal computer is a poor place for it. A Virtual Private Server (VPS) suits it much better.
Why run OpenClaw on a VPS
- It stays online and keeps listening for webhooks and messages when your own computer is switched off.
- OpenClaw can run shell commands. On a separate VPS, a mistake or a malicious instruction can't touch the files on your personal machine.
- The VPS gives OpenClaw its own share of CPU and RAM for local model inference and data processing.
- If you start using it more heavily, you can upgrade the VPS.
Step 1: Get a VPS
You need a Linux VPS with SSH access. Ubuntu 22.04 or 24.04 is a good choice. If you'd rather have OpenClaw set up for you, see our OpenClaw VPS plans; otherwise any of our VPS hosting plans will do. We recommend at least 4GB of RAM if you run the OpenClaw Docker containers alongside other integrations.
Step 2: Install Docker and dependencies
Log in to your new VPS over SSH:
ssh root@your_vps_ip
Update the system and install Docker:
sudo apt update && sudo apt upgrade -y
sudo apt install docker.io docker-compose git -y
sudo systemctl enable docker
sudo systemctl start docker
Step 3: Deploy OpenClaw with Docker Compose
Clone the OpenClaw repository and copy the example environment file:
git clone https://github.com/OpenClaw/openclaw.git
cd openclaw
cp .env.example .env
Edit .env to add the keys for your AI models (for example an OpenAI or Anthropic API key) and the tokens for any integrations, such as Discord or WhatsApp bots.
nano .env
Start the OpenClaw container in detached mode:
docker-compose up -d
Step 4: Check that it is running
Follow the logs to confirm OpenClaw has connected:
docker-compose logs -f
Once it's running, send OpenClaw a message on one of the platforms you configured to test it. Because it runs on the VPS, you can send it tasks at any time, even when your own computer is off.
Tags:
Hosting OpenClaw with HosterOcean
Our OpenClaw VPS comes set up for you, or you can follow the steps above on any of our VPS plans. Full root access, a dedicated IP and NVMe storage are included, with servers in New York, Chicago and London.
View VPS PlansRelated articles
How to Set Up n8n With Docker on a VPS for Maximum Stability
Step-by-step instructions for running n8n with Docker on a VPS, covering stability, security and performance settings.
Read More →n8n Cloud vs Self-Hosted n8n on VPS: Which Is Better?
How n8n Cloud and a self-hosted n8n VPS compare on cost, workflow limits and data control.
Read More →



