How to Install OpenClaw: The Complete Guide (2026)
This is the no-BS guide to getting OpenClaw running on your own server. We'll cover every step from choosing hardware to sending your first message. Estimated time: 1–2 hours if everything goes smoothly, 4–6 hours if you hit snags.
Or, if you'd rather skip all 8 steps and have it done professionally in 48 hours: we do that too, starting at $449.
Before You Start: Choose Your Hardware
🖥️ VPS (Recommended)
DigitalOcean, Hetzner, or Hostinger. Always on, accessible from anywhere. Best for most people.
Min specs: 2 CPU, 4GB RAM, 100GB disk
🍎 Mac Mini / Old Laptop
Any Mac or Linux machine. Needs to stay on 24/7. Good if you have spare hardware lying around.
Min specs: Basically anything made after 2018
🍓 Raspberry Pi 5
Low power, silent, always on. Great for home use. Needs the 8GB model for comfortable performance.
Note: Pi setup has extra steps (ARM, Node.js quirks)
For this guide, we'll use a VPS — it's the most common setup and the easiest to follow remotely.
Provision Your VPS
Sign up at DigitalOcean, Hetzner, or your preferred provider. Create a new server (called a "droplet" on DO) with these settings:
- OS: Ubuntu 24.04 LTS (most compatible)
- Plan: 2 vCPU, 4GB RAM ($6/mo on DO, $4.50/mo on Hetzner)
- Region: Closest to you (lower latency)
- Authentication: SSH key (not password — we'll set this up properly in Step 7)
Once provisioned, you'll get an IP address. Save it — that's your server.
Create a Non-Root User
Never run OpenClaw as root. Create a dedicated user:
Install Node.js v22
OpenClaw requires Node.js version 22 or higher. This is the #1 thing that trips people up — many systems ship with older versions.
apt install nodejs, you'll get an old version (v18 or v20). Always use nvm to install v22+. If node --version shows anything below v22, OpenClaw won't work.
Install OpenClaw
openclaw doctor checks your Node version, permissions, and system requirements. Fix anything it flags before continuing.
Run the Setup Wizard
The wizard walks you through:
- AI Provider: Choose Anthropic (Claude), OpenAI (GPT), or Google (Gemini). You'll need an API key from your chosen provider.
- Model: We recommend Claude Sonnet 4 for the best balance of quality and cost. Gemini Flash if you want the cheapest option.
- Gateway mode: Choose "Loopback" (localhost only) — this is the safe default. Never choose "Public" unless you know exactly what you're doing.
• Anthropic: console.anthropic.com → API Keys → Create Key
• OpenAI: platform.openai.com → API Keys → Create Key
• Google: aistudio.google.com → Get API Key
All three offer pay-as-you-go pricing. Google has a free tier. Budget $10–20/month for typical use.
Connect a Messaging Channel
This is where OpenClaw becomes useful — connecting it to Telegram, Discord, WhatsApp, or other apps so you can message your AI from your phone.
Telegram (Easiest)
Discord
allowFrom to YOUR user ID only. Without this, anyone who finds your bot can talk to your AI and access your data.
Harden Security
This is the step most tutorials skip — and the reason 21,000+ OpenClaw instances were exposed in 2026. Don't skip this.
For remote access to your OpenClaw instance (from outside your network), install Tailscale instead of opening firewall ports:
Tailscale creates a private mesh VPN between your devices. Your OpenClaw stays on localhost — accessible only through Tailscale, invisible to the public internet.
Customize and Launch
OpenClaw is running. Now make it yours:
Send a message to your bot on Telegram or Discord. If it responds — congratulations, you have your own AI assistant. 🎉
That Was a Lot of Steps.
If you made it through — genuinely, nice work. If you got stuck somewhere around Step 3 and thought "why am I doing this on a Saturday" — that's completely valid.
We do this every day. Professional setup, security hardening included, done in 48 hours.
Skip All This — $449 Setup →Troubleshooting
Your PATH doesn't include the npm global bin directory. Run source ~/.bashrc or start a new terminal session. If using nvm, make sure you ran nvm use 22.
If you installed via apt, uninstall it: sudo apt remove nodejs. Then install via nvm as shown in Step 3. Run node --version to verify you have v22+.
Something else is using port 3000. Check with ss -tlnp | grep 3000. Kill the process or change OpenClaw's port: openclaw config set gateway.port 3001
Known issue with version 2026.3.x. Fix: mkdir -p /tmp/openclaw-$(whoami) && chmod 700 /tmp/openclaw-$(whoami). Then restart: openclaw gateway restart
Check three things: (1) Your bot token is correct, (2) allowFrom matches your Telegram user ID (not username), (3) the gateway is running (openclaw gateway status). Increase the timeout if you get "Failed to resolve application" errors.
Make sure you enabled the MESSAGE CONTENT intent in the Discord developer portal. Also verify the bot has been invited to your server with the correct permissions (Send Messages, Read Message History).
Don't use sudo with npm when using nvm. nvm installs to your home directory — no sudo needed. If you see permission errors, you likely have a conflicting system Node.js installation.
What's Next?
Once your AI is running, the real power comes from customization:
- Memory: Edit
~/.openclaw/workspace/MEMORY.mdto give your AI persistent knowledge about you - Skills: Browse ClawHub for community skills (but vet them carefully)
- Multiple channels: Add Telegram, Discord, and WhatsApp so your AI is available everywhere
- Custom persona: Edit
SOUL.mdto give your AI a personality and specific instructions
Want help with any of this? Check our pricing or compare setup services.
Professional setup includes all of the above — configured, secured, and tested.
Get Setup →