You've heard of Clawdbot (open-source codename: OpenClaw) — the self-hosted AI agent platform that's becoming the go-to choice for developers and builders in 2026. But with multiple installation options available, which one is right for you?
In this guide, the Autonow Team walks you through all 4 installation methods from A to Z — with detailed comparisons, decision guidance, and critical security warnings that most other guides skip.
If you're new to OpenClaw, start with OpenClaw: The Self-Hosted AI Revolution 2026 for a solid foundation before diving into the setup process.
What is Clawdbot/OpenClaw and Why Is It Trending in 2026?
Clawdbot (open-source codename: OpenClaw) is a self-hosted AI agent platform that lets you run powerful AI workflows on your own infrastructure — with zero dependency on any cloud AI vendor.
As AI token costs continue to rise and data privacy regulations tighten globally, Clawdbot/OpenClaw has emerged as a practical solution for both individuals and organizations:
- Complete data sovereignty — Everything runs on your server; no third party can access your data
- Lower long-term costs — Set up once, use indefinitely — no recurring subscriptions
- Unlimited integrations — Connect to any API, database, or tool you need
- Fully open-source — Fork, customize, and contribute however you like
To understand the broader ecosystem around OpenClaw and its variants, read The Claw Family Tree 2026.
Overview: 4 Installation Methods
Before diving into each method, here's a quick comparison to help you decide:
| Method | Difficulty | Cost | Uptime | Security |
|---|
| Native (Direct) | Easy | $0 | Low | Medium |
| Docker | Medium | $0 | Medium | High |
| VPS Ubuntu/Linux | Advanced | $5–20/mo | High | Very High |
| Cloud Platform | Easiest | $0–20/mo | Very High | High |
Method 1: Native Installation (Direct on Your Machine)
Best for: Quick testing, personal use, no 24/7 uptime requirement.
System Requirements
- Node.js 18+ or Python 3.10+
- Minimum RAM: 4GB (8GB+ recommended)
- OS: macOS, Windows 10/11, or Ubuntu 20.04+
Installation Steps
Step 1: Clone the repository
git clone https://github.com/openclaw/clawdbot.git
cd clawdbot
Step 2: Install dependencies
npm install
pip install -r requirements.txt
Step 3: Configure your environment
cp .env.example .env
nano .env
Step 4: Start the application
npm run start
Pros: Fast, minimal configuration, great for initial exploration.
Cons: Service stops when you shut down your machine. Not suitable for production or sharing with others.
Method 2: Docker (The Developer Standard)
Best for: Developers who want an isolated environment that's easy to update, backup, and migrate.
Requirements
- Docker Desktop (macOS/Windows) or Docker Engine (Linux)
- Docker Compose v2+
Install with Docker Compose
Step 1: Get the source code
git clone https://github.com/openclaw/clawdbot.git
cd clawdbot
Step 2: Configure your environment
cp .env.example .env
nano .env
Step 3: Build and start the containers
docker compose up -d --build
Step 4: Check status
docker compose ps
docker compose logs -f clawdbot
Step 5: Access the application
Open your browser at http://localhost:3000
Essential Docker Commands
docker compose down
git pull && docker compose up -d --build
docker compose logs -f
docker compose exec clawdbot tar -czf /backup/data.tar.gz /app/data
Pros: Fully isolated environment — no conflicts with other software. Easy to update, rollback, and migrate.
Cons: Requires basic familiarity with Docker and container lifecycle management.
Method 3: VPS Ubuntu/Linux — Best for 24/7 Uptime
Best for: Running Clawdbot continuously around the clock for non-stop automation workflows or multiple users.
Choosing the Right VPS
| Provider | RAM | CPU | Price/mo | Notes |
|---|
| DigitalOcean | 2GB | 1 vCPU | $12 | Most popular, excellent docs |
| Hetzner | 4GB | 2 vCPU | $6 | Best price-to-performance |
| Vultr | 2GB | 1 vCPU | $10 | Singapore datacenter available |
| VCCloud (VN) | 2GB | 2 vCPU | ~$8 | Low latency for Vietnam users |
Installation on Ubuntu 22.04
Step 1: Update the system and install Docker
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git
curl -fsSL https://get.docker.com | bash
sudo usermod -aG docker $USER
newgrp docker
Step 2: Clone and configure Clawdbot
git clone https://github.com/openclaw/clawdbot.git
cd clawdbot
cp .env.example .env
nano .env
Step 3: Run with Docker Compose
docker compose up -d --build
Step 4: Install and configure Nginx as a reverse proxy
sudo apt install -y nginx certbot python3-certbot-nginx
sudo nano /etc/nginx/sites-available/clawdbot
Add the following configuration:
server {
listen 80;
server_name your-domain.com;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Step 5: Enable SSL with Let's Encrypt
sudo ln -s /etc/nginx/sites-available/clawdbot /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d your-domain.com
Step 6: Configure the firewall
sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
Rather than exposing ports to the internet, use SSH tunneling for safe remote access — consider pairing it with Tailscale on Ubuntu for an additional security layer.
Pros: Highest uptime, complete infrastructure control, strongest security when properly configured.
Cons: Requires basic Linux knowledge. You're responsible for server management including updates and monitoring.
Best for: Non-technical users or anyone who wants deployment in minutes without server configuration.
Option A: Railway.app
Railway is a modern deployment platform that supports GitHub-based deployments with just a few clicks.
Steps:
- Go to railway.app and sign in with your GitHub account
- Click "New Project" then select "Deploy from GitHub repo"
- Select the
openclaw/clawdbot repository (or your fork)
- Add environment variables in the Variables tab
- Click Deploy — done!
Cost: Free tier includes 500 hours/month. Paid plans from $5/month.
Option B: Emergent.sh
Emergent.sh is purpose-built for AI agents and workflow automation — making it a natural fit for Clawdbot.
Steps:
- Go to emergent.sh
- Find the "Clawdbot" template in the marketplace
- Fill in your API keys and basic configuration
- Click Deploy — the system automatically handles everything else
Cost: Free tier available. Pay-as-you-go for higher usage.
Pros: No technical knowledge required, live in 5–10 minutes, automatic scaling.
Cons: Dependent on a third-party platform. Costs can scale with usage if not monitored.
Critical Security Warning: CVE-2026-25253
CRITICAL SECURITY WARNING: CVE-2026-25253 is a severe vulnerability discovered in Clawdbot/OpenClaw when internal ports are directly exposed to the internet without a proper authentication layer. This flaw allows attackers to execute arbitrary commands on your server.
Things You Should NEVER Do:
- Never expose port 3000 (or any internal port) directly to the public internet
- Never run Clawdbot without a reverse proxy (Nginx or Caddy)
- Never use plain HTTP (without SSL/TLS) in a production environment
- Never leave default credentials unchanged after installation
Required Security Measures
1. Use SSH Tunneling instead of exposing ports
Rather than opening ports to the internet, use an SSH tunnel — and consider pairing it with Tailscale on Ubuntu for an additional protection layer.
ssh -L 3000:localhost:3000 user@your-vps-ip -N
2. Enable authentication in your configuration
AUTH_ENABLED=true
AUTH_SECRET=your-very-long-random-secret-min-32-chars
3. Add rate limiting to Nginx
# Add at the top of your nginx config
limit_req_zone $binary_remote_addr zone=clawdbot:10m rate=10r/m;
# Inside the location / block
location / {
limit_req zone=clawdbot burst=20 nodelay;
proxy_pass http://localhost:3000;
}
4. Stay up to date
git pull
docker compose up -d --build
Security is not optional — it is a prerequisite when self-hosting any AI application.
Which Solution Is Right for You?
You're a Non-technical User / Beginner?
Choose Railway or Emergent.sh. Deploy in 10 minutes with no Linux or Docker knowledge. Start on the free tier and upgrade as your needs grow.
You're a Developer?
Use Docker locally for development. When you need production: Docker + VPS. Full control, maximum flexibility.
You Need Production / 24/7 Uptime?
Invest in a VPS with Docker + Nginx. Hetzner or DigitalOcean offer the best cost-effectiveness. Set it up right once, and it runs reliably for the long term.
Just Want to Experiment?
Go Native on your local machine. Minimal configuration, immediate results. Perfect for learning Clawdbot before committing to a full production setup.
Conclusion
Clawdbot/OpenClaw represents an important shift: from dependence on expensive cloud AI services to full ownership and control of your own AI infrastructure.
Whichever method you choose — the most important thing is to start today.
| Who you are | Recommended solution |
|---|
| Non-technical / Beginner | Railway or Emergent.sh |
| Developer | Docker (local) or Docker + VPS |
| Production / 24/7 | VPS + Docker + Nginx + SSL |
| Quick experimentation | Native (localhost) |
Resources:
- GitHub:
github.com/openclaw/clawdbot
- Official Docs:
docs.clawdbot.dev
- Discord:
discord.gg/clawdbot
- CVE-2026-25253:
nvd.nist.gov/vuln/detail/CVE-2026-25253
The Autonow Team will continue updating this guide with each new version. Follow the Autonow blog to stay current on AI automation and self-hosting best practices.