How do you host OpenClaw on a VPS?
Rent a Linux KVM VPS, create a non-root user, run OpenClaw's official installer and let onboarding install the Gateway as a systemd service. Keep the Gateway on loopback and open its Control UI through an SSH tunnel or Tailscale. A RapidServer VPS starts at ₹581/mo plus 18% GST in Mumbai (BOM1) or Delhi NCR (DEL1), ready a few minutes after payment.
What is OpenClaw?
OpenClaw is an open-source AI assistant that you talk to through chat apps such as WhatsApp, Telegram, Slack and Discord. Its docs call it a self-hosted gateway: one Gateway process runs on your own machine or a server and sends your requests to the model provider you choose.
The code is on GitHub under the MIT licence, and the project says there is no paid version. The assistant answers only while the Gateway runs, so a laptop that sleeps leaves it silent; a VPS keeps it online. RapidServer isn't affiliated with OpenClaw; we rent the server.
OpenClaw VPS requirements
From the install guide and the Linux page:
- Linux. The docs say the Gateway is fully supported on Linux.
- Node.js 24.16+ or 26.1+, with 24.22.1+ or 26.12.1+ strongly recommended for security and Node 26 recommended. If Node is missing, the installer sets up Node 24 LTS on Linux.
- An API key from your chosen model provider.
- No GPU listed. The docs list no GPU requirement; the model runs at your provider.
- Fast disks. The VPS guide recommends SSD-backed disks for state and cache. Every RapidServer VPS uses NVMe.
The docs publish no minimum RAM. They do say a 4 GiB machine can't meet the default memory budget for a build from source, and recommend the npm installer on smaller hosts.
OpenClaw VPS setup, step by step
- Deploy Ubuntu 24.04 LTS on a KVM VPS with your SSH key added at deploy, so password login is off. New to SSH? Read SSH kya hai.
- Create a non-root user with sudo and close root login, as in our developer setup steps. The Gateway runbook calls running it as root unsafe and unsupported.
- Run the official installer as that user. It installs Node.js if needed, then starts onboarding.
curl -fsSL https://openclaw.ai/install.sh | bash
Onboarding finds an existing API key or opens provider setup. When it asks whether to keep OpenClaw running in the background, say yes: that installs openclaw-gateway.service as a systemd user unit. If you manage Node.js yourself, use npm instead (drop the --allow-scripts flag on npm 11.15 or earlier):
npm install -g openclaw@latest --allow-scripts=openclaw openclaw onboard --install-daemon
Enable lingering so the service keeps running after you log out, as the Gateway runbook shows, then check its health:
sudo loginctl enable-linger $(whoami) openclaw doctor openclaw gateway status
If you write your own system unit, set User=: the docs warn that a system unit without it runs as root. Settings live in ~/.openclaw/openclaw.json; change them with openclaw configure or openclaw config set, and the Gateway applies them automatically (configuration docs).
Reach the Gateway safely
The Gateway listens on port 18789 and binds to loopback by default, so only the server itself can reach it. Leave it that way: the VPS guide's secure default is loopback plus an SSH tunnel or Tailscale Serve. Your firewall needs SSH open, not 18789. From your laptop:
ssh -N -L 18789:127.0.0.1:18789 user@your-vps-ip
Then open http://127.0.0.1:18789/ and sign in with the Gateway's shared secret. For always-on setups, the remote access page suggests keeping loopback and using Tailscale Serve for the Control UI.
- Other binds need a secret. If you bind to
lanortailnet, the Gateway requires a shared secret. - On most channels, strangers get a pairing code instead of having their message processed (security docs).
- Audit it with
openclaw security audit, which shows drift from safe defaults. - Keep it separate. Don't sign the runtime into personal Apple or Google accounts, as the VPS guide warns.
OpenClaw VPS size: which plan?
OpenClaw sets no RAM minimum; these are our starting points, not official figures:
| Use | Starting plan | Per month |
|---|---|---|
| One personal assistant, installed with the installer or npm | Stardust: 2 vCPU, 4 GB RAM, 20 GB NVMe | ₹581 |
| The same, with more room for files and logs | New Moon: 2 vCPU, 4 GB RAM, 40 GB NVMe | ₹674 |
| A build from source, a shared assistant or other services alongside | Full Moon: 4 vCPU, 8 GB RAM, 160 GB NVMe | ₹1,723 |
On a 4 GB plan, use the installer or npm, not a source build. Our VPS plans have no GPU, so local models would run slowly on CPU; a hosted model API fits better. Resize later from the client area. Prices exclude 18% GST.
KVM with dedicated vCPU, NVMe and full root in Mumbai or Delhi NCR, ready a few minutes after payment, from ₹581/mo.
See VPS hosting plansOpenClaw on a VPS vs a Mac mini at home
The other way to keep an assistant always on is a small computer at home, such as a Mac mini. The difference is what keeps it online.
| VPS in a data center | Computer at home | |
|---|---|---|
| Power cuts | Dual power feeds, UPS and on-site generators | Goes offline unless you add an inverter or UPS |
| Internet | Several upstream carriers with failover | One broadband line; an outage drops it |
| Separation | Its own machine, away from personal accounts | Often shares accounts with your personal life |
| Backups | Daily, kept for 7 days | Whatever you set up |
| Cost | A monthly rent | Hardware up front, plus electricity |
A home machine makes sense if you already own one or want local apps on the same desk. If the assistant must answer through power cuts and broadband outages, a VPS is simpler.
Mumbai or Delhi NCR?
Mumbai (BOM1) and Delhi NCR (DEL1) cost the same, so pick the city nearest you. They are about 22 ms apart, and our team moves a VPS between them for free. See latency from each city.
Backups and updates
Every RapidServer VPS gets daily backups kept for 7 days, plus snapshots on demand (VPS backup guide). Take a snapshot before you update: the update docs warn that reinstalling an older package doesn't undo a newer version's schema migration. To update, run openclaw update, which restarts the Gateway once, then openclaw update status.
What it costs
- OpenClaw: free and MIT-licensed.
- The server: from ₹581/mo plus 18% GST, billed monthly in rupees with a GST invoice.
- The model: billed separately by your provider. RapidServer doesn't sell model plans or API credits.
Running coding agents or bots too? See VPS for AI agents and bot hosting.
Questions
Can I host OpenClaw on a VPS?+
What are the OpenClaw VPS requirements?+
Does OpenClaw need a GPU?+
What VPS size do I need for OpenClaw?+
Is it safe to open the OpenClaw dashboard on the internet?+
openclaw security audit after changes.OpenClaw VPS vs Mac mini: which is better?+
OpenClaw ko VPS par 24/7 kaise chalayein?+
sudo loginctl enable-linger $(whoami) chalaiye taaki logout ke baad bhi chalta rahe. Gateway loopback par rakhiye aur SSH tunnel se kholiye. Stardust plan ₹581/mo plus GST se shuru hai.