How to Host OpenClaw in the Cloud (2026)

Learn how to host OpenClaw on a cloud server with the current Docker flow, a private Control UI, backups, upgrades, and the trust rules teams need.

David
David

Founder

12 min read
How to Host OpenClaw in the Cloud (2026)

Quick answer

The cleanest way to host OpenClaw in the cloud is to run its official Docker Compose setup on a small Linux server, keep the Gateway and its state on one machine, and reach the Control UI through an SSH tunnel rather than an open admin port. Then add backups, updates, and a trust policy before connecting real accounts.

Questions this page answers

  • What does cloud hosting OpenClaw actually mean?
  • Should you use Docker or install OpenClaw directly?
  • How do you install OpenClaw on a VPS?
  • How should you secure the Gateway and Control UI?
  • Can a team share one OpenClaw Gateway?
  • What should you back up and check during upgrades?
  • When is a managed option a better fit?

OpenClaw is a self-run assistant. That is the appeal: you choose the machine, the provider keys, the channels, and the data location. It is also the work. A cloud deployment means that you, or somebody on your team, owns the server, updates the software, protects the admin surface, and notices when the process stops.

This guide is for the person who has already chosen OpenClaw and wants it available when a laptop is asleep. If you are still deciding whether to use OpenClaw at all, start with our OpenClaw alternatives. If you want a product comparison rather than an operations guide, read Bento vs OpenClaw. If you'd rather not run a server at all, try Bento with $5 of free credits.

What does hosting OpenClaw in the cloud mean?

Hosting OpenClaw in the cloud means running its Gateway on a server that stays online, rather than on your laptop or desktop. Messages arrive through configured channels, the Gateway runs the agent, and the server keeps the configured state and credentials available between sessions.

That does not make OpenClaw a hosted service. A VPS provider gives you a computer; it does not decide who may message your agent, which tools the agent may use, whether the machine is patched, or whether your last backup can be restored. Those are still your decisions.

A useful mental model is a small office:

  • The server is the building that stays open.
  • The Gateway is the receptionist and control room.
  • Channels are the doors people use to send messages.
  • Tools and provider keys are the keys the receptionist can hand to the agent.
  • Backups are the spare keys and copies of the important notebooks.

If you would not leave a building with its doors open, do not publish a Gateway admin port just because the server has a public IP.

Should you use Docker or install OpenClaw directly?

Use the official Docker flow when you want a repeatable deployment, an isolated environment, or a host where you do not want to install the runtime locally. Docker is optional, not a requirement for every OpenClaw setup. The current documentation also supports Podman, SSH, and OpenShell sandbox backends for their respective use cases.

Docker is a good default for a cloud server because the deployment has a clear boundary: Compose starts the Gateway and its supporting containers, the state lives in the mounted data location, and replacing an image is more predictable than hand-editing a long-lived host.

Install directly when you are comfortable managing the runtime yourself and need the fewest layers. That can be reasonable for a personal machine. It is not automatically safer on a public VPS. The security outcome depends more on who can reach the Gateway, what the agent can do, and how you handle updates than on the word “container.”

The official Docker prerequisites are:

  • Docker Desktop or Docker Engine.
  • Docker Compose v2.
  • Enough disk for the image, state, and logs.
  • At least 6 GB of RAM if you build the source image locally. A pre-built image avoids that build requirement.

The official Docker installation guide is the source of truth for image tags and setup flags. Do not copy a third-party image name into a production deployment just because it appears in a forum post.

How do you install OpenClaw on a cloud server?

The exact VPS provider matters less than the operating system, network controls, backups, and access you can maintain. Start with a current Linux server, a non-root administrative account, SSH access, and a provider snapshot or backup option. Then use the official repository flow.

1. Install Docker and Compose

Install Docker Engine and Compose v2 using Docker’s current instructions for your Linux distribution. Confirm both commands work before touching OpenClaw:

docker --version
docker compose version

Do not treat a successful version command as a secure server. Turn on automatic security updates where appropriate, use SSH keys, and restrict SSH to the people who need it.

2. Get the OpenClaw source and run the setup script

From the repository root, the current OpenClaw Docker guide uses the setup script:

git clone https://github.com/openclaw/openclaw.git
cd openclaw
./scripts/docker/setup.sh

The script builds the local image by default. For a pre-built official image, set OPENCLAW_IMAGE first:

export OPENCLAW_IMAGE="ghcr.io/openclaw/openclaw:latest"
./scripts/docker/setup.sh

The same guide documents the official Docker Hub mirror as openclaw/openclaw. For a pinned deployment, choose a version tag rather than relying on a moving tag, and record which version you installed.

The setup flow runs onboarding. It can prompt for provider API keys, generate a Gateway token, write it to .env, and start the Gateway through Docker Compose. Treat .env and the mounted OpenClaw state as production data: keep them on the server, include them in your backup plan, and never paste them into a public issue or image.

3. Open the Control UI without publishing it

The local Control UI listens at:

http://127.0.0.1:18789/

That address is intentionally loopback-only in the documented local flow. From your own computer, use an SSH tunnel:

ssh -N -L 18789:127.0.0.1:18789 your-user@your-server

Then open http://127.0.0.1:18789/ in your local browser and paste the token written to .env into Settings. The browser is local; the Gateway is on the server.

This small detail prevents a common mistake: confusing “I can open the dashboard” with “the dashboard should be public.” If you need remote access for a team, follow OpenClaw’s current network-exposure guidance, use a deliberate proxy and authentication design, and do not assume a random reverse-proxy recipe creates tenant isolation.

4. Add channels one at a time

Add only the channels you intend to use. The official Docker docs show the CLI pattern:

docker compose run --rm openclaw-cli channels login
docker compose run --rm openclaw-cli channels add --channel telegram --token "<token>"

Use the channel’s own OpenClaw documentation for WhatsApp, Telegram, Discord, or another supported integration. After adding a channel, send a test message from an account you control. Check the Gateway logs, confirm the agent sees the right tools, and make sure the response reaches the intended channel before inviting anyone else.

How should you secure a cloud-hosted Gateway?

Start with identity, then scope, then the model. OpenClaw’s trust model says the first question is who can talk to the bot. The second is what the agent can do. The third is which model handles the request. A clever prompt is not a substitute for the first two controls.

Use this baseline:

  1. Keep the Control UI private by default. Use an SSH tunnel or a carefully designed authenticated proxy. Do not expose port 18789 directly to the internet.
  2. Use a dedicated server account. Do not run a public-facing Gateway as root.
  3. Limit inbound network access. Allow SSH only where practical, and review the Docker DOCKER-USER firewall chain when the host is public. OpenClaw’s network-exposure documentation is the right place for the current details.
  4. Pair channels deliberately. A group chat is not a private conversation. Use allowlists, mention rules, and the narrowest tool permissions that fit the job.
  5. Keep provider keys out of messages. Put credentials in the documented environment or secret configuration path. Never ask the agent to repeat a key as a “test.”
  6. Separate trust boundaries. If two users do not trust each other with the same tools, sessions, files, and credentials, they should not share one Gateway.
  7. Test recovery. A backup that has never been restored is a wish, not a recovery plan.

OpenClaw’s security documentation is unusually explicit about the boundary: one Gateway is designed for one operator or a mutually trusting team. People who can message a tool-enabled agent share that agent’s delegated tool authority. Default session tools can also see broadly across the Gateway, and agent-to-agent messaging is enabled by default. You can narrow visibility and allowed pairs, but those settings are collaboration guardrails, not a multi-tenant wall.

If you are hosting adversarial or mutually untrusted users, run separate Gateways and, ideally, separate operating-system users or hosts. Do not try to turn one shared Gateway into a SaaS tenant system by adding a few chat rules.

Can a team share one OpenClaw Gateway?

Yes, if it is a team that already trusts the same operator boundary. No, if “team” means unrelated customers, contractors, or departments that must be isolated from one another.

Before sharing, write down:

  • Who can message the agent.
  • Which channels and groups are allowed.
  • Which tools the agent can call.
  • Which files, accounts, and sessions the agent can reach.
  • Who approves new integrations.
  • Who receives alerts and performs upgrades.
  • What happens when somebody leaves the team.

OpenClaw exposes controls for narrowing session visibility and agent-to-agent access. Use them when you need personas or workflows to stay separate inside one trusted Gateway. For a real security boundary, use separate Gateways. The official trust-model guide is more important than a generic “multi-user VPS” checklist here.

What should you back up and check during upgrades?

Back up the OpenClaw state and configuration before changing the image, provider configuration, or channel credentials. Also keep a copy of the deployment files and the exact image tag. A server snapshot is useful, but it is not the only copy you should rely on.

For routine image upgrades, the current Docker documentation says the entrypoint runs openclaw doctor --fix --non-interactive under exclusive maintenance ownership before starting the Gateway. Keep one Gateway replica per state volume, stop the old container before starting its replacement, and do not use a shared volume as a shortcut to horizontal scaling.

A practical upgrade runbook is:

  1. Tell users when the Gateway will be unavailable.
  2. Take a fresh backup or snapshot.
  3. Record the current image tag and running container state.
  4. Pull the new image.
  5. Stop the old Gateway.
  6. Start the replacement with the same Compose files, volumes, ports, and overlays.
  7. Check the Gateway health and logs.
  8. Send one test message through each important channel.
  9. Test the Control UI and one tool that matters to the workflow.
  10. Roll back using the recorded image and backup if the checks fail.

Do not run two Gateway replicas against the same state volume. That is not redundancy; it is two processes competing over one set of state.

Is a managed option better than hosting OpenClaw yourself?

A managed option is better when the thing you want is an always-available creative workspace, not another server to operate. It is the difference between renting a building and using a studio that already has the lights, tools, and maintenance schedule.

Bento isn't an OpenClaw server, and it isn't trying to be one. It runs its own agent harness, similar to Claude Code but built for creators: you say what you want, and it makes the voiceover, video, images, app or game, picking the best model for each task as new ones arrive. Bento also works with OpenClaw and Hermes Agent, so you can use either without running the server yourself.

Plans start at $20 a month, and every new account starts with $5 of free credits (see pricing). If your goal is to learn Docker, own the machine and control every layer, keep the VPS. If your goal is to make something and ship it, the managed path is usually the better fit.

Frequently Asked Questions

Is OpenClaw free to host?

OpenClaw is open source, but a cloud deployment still has server, model, storage, and maintenance costs. “Free to download” does not mean “free to keep online.”

Can I run OpenClaw on a VPS?

Yes. The official Docker flow is designed for a server with Docker Engine and Compose v2. Keep the Gateway state on one machine and protect the Control UI.

Does OpenClaw need Docker?

No. Docker is optional. It is a practical default for a repeatable cloud deployment, while direct installation can make sense when you prefer to manage the runtime yourself.

Should I expose OpenClaw’s dashboard to the internet?

Not by default. Keep the Control UI loopback-only and use an SSH tunnel for personal access. If a team needs remote access, design authentication, proxying, and network rules deliberately using OpenClaw’s current exposure guidance.

Can multiple people use one OpenClaw Gateway?

A mutually trusting team can share one Gateway if the channel, tool, session, and credential boundaries are acceptable to everyone. Mutually untrusted users need separate Gateways and preferably separate operating-system users or hosts.

What happens if the server goes down?

The agent and its channels stop responding until the Gateway is restored. Backups, monitoring, a written restart procedure, and a tested restore are more valuable than a second untested container.

Is Bento the managed version of OpenClaw?

No. Bento has its own creator-focused agent harness. It works with OpenClaw and Hermes Agent, but the products have different jobs: OpenClaw is a self-run Gateway; Bento is a managed workspace for making and shipping things.

Make anything. One subscription.

Posts, reels, ads, apps and games, made with the best AI.

Free credits to try it all. Nothing to set up.

Related articles