How to Self-Host OpenClaw: The Complete 2026 Guide
OpenClaw is a self-hosted, model-agnostic AI assistant that connects to 20+ messaging platforms and runs on any large language model you choose. This guide walks through both ways to self-host it — the manual Docker route and a 30-second one-click deploy on the Flux decentralized cloud — so you end up with a private AI agent you fully control.
Not the game engine: despite the shared name, this OpenClaw is not the open-source Captain Claw game re-implementation, nor is it openclaw.ai. Here, OpenClaw refers to a self-hosted AI assistant, and this page covers how to host that assistant on Flux.
Why self-host an AI assistant instead of using a SaaS agent?
Hosted AI agents are convenient, but every message you send passes through someone else's servers, under their retention policy, their model choices, and their pricing. Self-hosting flips that trade-off. When you self-host OpenClaw you get:
- Data ownership — conversations, files, and integration tokens live on infrastructure you control, not a vendor's data lake.
- Model freedom — switch between OpenAI, Anthropic, Google, or a local Ollama model whenever you like, and pay providers directly with your own API keys.
- No vendor lock-in — the assistant is open software; you are never trapped inside one company's ecosystem or subscription.
- Predictable cost — pay only for the compute you run plus the model tokens you actually use.
Option 1 — Manual self-hosting with Docker
If you already run your own Linux box or VPS, you can self-host OpenClaw manually. The broad shape of the process is:
- Provision a Linux server (2 vCPU / 4 GB RAM is a comfortable starting point) and install Docker and Docker Compose.
- Pull the OpenClaw image and create a configuration file with your model provider API keys.
- Add the bot tokens for each messaging integration you want (for example a Telegram bot token from BotFather).
- Start the container, expose the admin interface, and put it behind a reverse proxy or a Tailscale network for secure access.
- Keep the host patched, monitor uptime, and handle backups yourself.
This path is free of hosting fees but you own every operational concern: security patching, uptime, DDoS exposure, TLS certificates, and restarts. For many people the maintenance overhead outweighs the savings.
Option 2 — One-click self-hosting on Flux (recommended)
Flux is a decentralized cloud that runs your OpenClaw instance in a dedicated container across thousands of independent nodes in 50+ countries. It gives you the privacy and control of self-hosting without the server administration. The four steps below take about five minutes end to end.
Step 1 — Choose your AI model and API keys
OpenClaw is model-agnostic, so decide what should power it. Use OpenAI (GPT-4o) or Anthropic (Claude) for the strongest reasoning, Google Gemini for long context, or a local LLM via Ollama when you want every token to stay on your own instance. Not sure which to pick? See our guide on choosing an AI model for a self-hosted assistant.
Step 2 — Deploy OpenClaw in 30 seconds
Pick a plan that matches your workload and a region close to you, then click deploy. Flux provisions the container automatically — no Docker commands, no SSH, no reverse proxy to configure. Your instance is live in under 30 seconds with built-in DDoS protection. Plans start at $4.02/month and the first month is free for new users.
Step 3 — Connect your messaging integrations
From the dashboard, link OpenClaw to any of its 20+ messaging integrations by pasting each platform bot token. Popular starting points are Telegram, WhatsApp, and Discord. Once connected, you can talk to your assistant from the apps you already use every day.
Step 4 — Secure access with Tailscale
Join your instance to your private Tailscale mesh so only your own devices can reach the admin interface, file browser, and web terminal. Everything is encrypted end to end, and there is no public admin port for attackers to probe.
Manual vs. Flux: which should you choose?
| Concern | Manual Docker self-host | OpenClaw on Flux |
|---|---|---|
| Setup time | 1–3 hours | Under 30 seconds |
| Server admin | You manage everything | Fully managed |
| DDoS protection | DIY | Built in |
| Data ownership | Full | Full (isolated container) |
| Cost | Your hardware + power | From $4.02/month, first month free |
| Uptime & monitoring | Your responsibility | 99.9% target, monitored |
Ready to self-host OpenClaw?
If you want the control of self-hosting without the maintenance, deploy your own OpenClaw AI assistant on Flux. Get started on the homepage, or read the complete self-hosted AI assistant guide to see where OpenClaw fits in the wider landscape.