Advertising disclosure: We may earn a commission when you buy through links on this page. It does not change the price you pay or the order of the list.

Guide

Self-hosting OpenClaw on a VPS: what you need and how to stay safe

Yes, you can self-host OpenClaw: it is an open-source agent gateway that you run on your own machine or server, and a small VPS is a common place for it. If it calls a hosted AI model through an API, the server itself needs modest resources. The bigger question is security, because an agent with tool and shell access can do real damage if it is exposed or misconfigured.

๐Ÿ—“๏ธ Published October 29, 2026

What OpenClaw is

According to its documentation, OpenClaw is an open-source, self-hosted gateway that connects chat apps such as Telegram, Discord, Signal and WhatsApp to AI agents. You run one Gateway process on your own computer or server and talk to it from your chat apps. The documentation describes it as MIT licensed.

The project has been renamed several times. Wikipedia and press coverage describe earlier names such as Clawdbot and Moltbot before OpenClaw, with the current name dating from early 2026. Sources disagree on why the names changed, and on the later role of its creator, so we do not state those details here. Check the official site and repository for the current state.

What VPS does OpenClaw need

The official getting-started page lists software requirements (a recent Node.js version, which the installer can set up, and an API key from a model provider) but names no minimum hardware. Treat any exact RAM figure you read elsewhere as an estimate, and check the current docs.

As a rule of thumb, a gateway that sends prompts to a hosted model is a light workload, so a small plan with a couple of gigabytes of RAM is a sensible starting point, and you can resize later. Memory use grows with extra tools, a browser the agent controls, or sandbox containers it starts. If you want a local model instead of an API, you need far more RAM or a GPU, which changes the budget completely.

For the cheapest option, compare small plans by renewal price, location and reliability in the plan table below, and avoid shared-CPU plans if you see slowdowns.

Current plans and prices

We may earn a commission when you buy through links on this page. It does not change the price you pay or the order of the list.

Best value
OVHcloud
VPS-1
  • 2 vCPU
  • 4 GB RAM
  • 40 GB NVMe
from$4.54/mo
  • Unlimited traffic
  • Anti-DDoS included
See plan โ†’

Price checked September 28, 2026

Contabo
Cloud VPS 4
  • 4 vCPU
  • 8 GB RAM
  • 100 GB SSD
from$6.26/mo
  • Very high RAM/storage per euro
  • Unlimited traffic (fair use)
See plan โ†’

Price checked September 28, 2026

Hostinger
KVM 1
  • 1 vCPU
  • 4 GB RAM
  • 50 GB NVMe
  • 4 TB Traffic
from$6.49/mo
  • NVMe + AMD EPYC on all VPS plans
  • Free weekly backups
See plan โ†’

Price checked September 28, 2026 ยท Renews at $11.99/mo

Setup outline: Docker or the installer

OpenClaw can be installed with a one-line installer script, or with npm, Docker and other methods listed on its install page. On a VPS many people prefer Docker, because the agent then lives in a container instead of loose on the host. The general outline is the same either way:

  • Create a normal, non-root user on a fresh Ubuntu or Debian server, log in with SSH keys and enable a firewall.
  • Install Docker, then follow the official install page to start the Gateway and run onboarding.
  • Add your model provider's API key through the documented configuration, not in chat messages.
  • Connect one chat channel and restrict who may talk to the bot with an allowlist.
  • Read the official security page before you add any tools or skills.

Security: treat the agent as untrusted code

An agent that can run commands, read files and browse the web is powerful, and that is exactly the risk. Security researchers and agencies have publicly reported weak defaults, a one-click remote-code-execution flaw (CVE-2026-25253, reported as fixed in a 2026 release), prompt-injection attacks that hide instructions in web pages, and malicious skills uploaded to the ClawHub extension catalog. Keep the software updated and follow these rules:

  • Run it on its own VPS or in a container, never on a server that holds other sites, databases or customer data.
  • No root: run the agent as an unprivileged user and give it only the folders and tools it needs (least privilege).
  • Keep the firewall closed except SSH, and do not expose the dashboard to the internet. By default it listens only on localhost; for remote access use an SSH tunnel or a private network such as Tailscale, as the docs suggest.
  • Keep secrets out of reach: use a dedicated API key with a spending limit, never your main cloud or registrar credentials.
  • Review every skill or plugin before installing it, as you would a program from an unknown author.
  • Require human approval for irreversible actions, and watch API spend, because a looping agent can burn through tokens.

When NOT to self-host it

If you cannot maintain a Linux server, patch it regularly and read security notices, a self-hosted agent is a poor first project. The same goes for any setup where the agent would need access to private data or production systems. In those cases, wait, use a managed offering, or run it on a throwaway machine with nothing valuable on it.

Compare plans side by side

Sort by
ProviderPlanvCPURAMDiskPriceOffer
OVHcloudVPS-124 GB40 GB$4.54/moSeptember 28, 2026See plan โ†’
ContaboCloud VPS 448 GB100 GB$6.26/moSeptember 28, 2026See plan โ†’
HostingerKVM 114 GB50 GB$6.49/moSeptember 28, 2026See plan โ†’
HostingerGame Panel 114 GB50 GB$6.99/moSeptember 28, 2026See plan โ†’
HostingerGame Panel 1-4 GB-$6.99/moSeptember 28, 2026See plan โ†’
OVHcloudVPS-248 GB75 GB$8.50/moSeptember 28, 2026See plan โ†’
ContaboCloud VPS 6612 GB200 GB$8.53/moSeptember 28, 2026See plan โ†’
HostingerKVM 228 GB100 GB$8.99/moSeptember 28, 2026See plan โ†’
HostingerGame Panel 228 GB100 GB$9.49/moSeptember 28, 2026See plan โ†’
HostingerGame Panel 2-8 GB-$9.49/moSeptember 28, 2026See plan โ†’
OVHcloudVPS-3612 GB100 GB$12.32/moSeptember 28, 2026See plan โ†’
HostingerKVM 4416 GB200 GB$12.99/moSeptember 28, 2026See plan โ†’
HostingerGame Panel 4-16 GB-$13.99/moSeptember 28, 2026See plan โ†’
ContaboCloud VPS 8824 GB300 GB$15.93/moSeptember 28, 2026See plan โ†’
OVHcloudVPS-4824 GB200 GB$23.37/moSeptember 28, 2026See plan โ†’
DigitalOceanBasic 4 GB24 GB80 GB$24.00/moSeptember 28, 2026See plan โ†’
HostingerKVM 8832 GB400 GB$25.99/moSeptember 28, 2026See plan โ†’
HostingerGame Panel 8-32 GB-$27.99/moSeptember 28, 2026See plan โ†’
ContaboCloud VPS 121248 GB400 GB$28.44/moSeptember 28, 2026See plan โ†’
DigitalOceanBasic 8 GB48 GB160 GB$48.00/moSeptember 28, 2026See plan โ†’
OVHcloudRISE-1632 GB1.024 TB$60.30/moSeptember 28, 2026See plan โ†’
OVHcloudRISE-S864 GB1.024 TB$77.00/moSeptember 28, 2026See plan โ†’
OVHcloudRISE-M1264 GB1.024 TB$118/moSeptember 28, 2026See plan โ†’
ContaboAMD Ryzen 12 Cores1264 GB1.024 TB$170/moSeptember 28, 2026See plan โ†’
ContaboAMD Genoa 24 Cores24128 GB2.048 TB$226/moSeptember 28, 2026See plan โ†’
Server finder
Tell us the project, get the spec and the cheapest plans
Try the tool โ†’

Questions people ask

Can I self host OpenClaw?

Yes. It is open source and designed to run on your own machine or server, including a VPS. You need a supported Node.js version (or Docker), a model provider API key and a careful security setup.

What is the cheapest VPS for OpenClaw?

The official docs give no hardware minimum. With a hosted model behind it, a small plan with a few gigabytes of RAM is a reasonable start. Compare current prices and renewal terms in the table below.

Is it safe to run OpenClaw on a VPS?

It can be, if you isolate it, avoid root, keep the dashboard private, protect your keys and vet every skill. Without those steps the risk is high, and published security reports show real problems.

Do I need a GPU for OpenClaw?

Not if it uses a hosted model through an API. A GPU or a lot of RAM only matters if you want to run a local model yourself.

More guides

Related