Self-Host OpenClaw

Full control, complete privacy. Run on your own hardware at home.

Why Self-Host?

Self-hosting gives you complete control over your AI assistant. Your data never leaves your home, you own the hardware, and there are no monthly hosting fees โ€” just API costs for the AI models you use.

๐Ÿ” Complete privacy
๐Ÿ’ฐ No hosting fees
๐Ÿ› ๏ธ Full customization
๐ŸŒ Works offline*

* With local AI models like Ollama

Choose Your Hardware

OpenClaw runs well on modest hardware. Here are popular options.

๐ŸŽ

Mac Mini (M-series)

Specs: M4, 16GB+ RAM
Cost: $599+ one-time
Power: 5-20W
โœ“ Pros
  • macOS features (iMessage, Notes)
  • Excellent performance
  • Native ARM
  • Whisper quiet
โœ— Cons
  • Higher upfront cost
  • Overkill for just OpenClaw
๐Ÿ–ฅ๏ธ

Intel NUC / Mini PC

Specs: 8GB+ RAM, SSD
Cost: $200-400 one-time
Power: 10-40W
โœ“ Pros
  • x86 compatibility
  • Good balance
  • Upgradeable
โœ— Cons
  • Fan noise possible
  • Higher power draw
๐Ÿ’ป

Old Laptop

Specs: Any with 4GB+ RAM
Cost: $0 (repurposed)
Power: 15-45W
โœ“ Pros
  • Free if you have one
  • Built-in battery backup
โœ— Cons
  • Bulky
  • Higher power
  • May be unreliable

๐Ÿ“ Raspberry Pi Setup

The most popular choice for 24/7 self-hosting. Low power, silent, reliable.

What You Need

  • Raspberry Pi 5 (8GB recommended)
  • 128GB+ NVMe SSD or high-speed SD card
  • Official Pi 5 power supply (27W)
  • Case with cooling (active cooling recommended)
  • Ethernet cable (more reliable than WiFi)
  • Another computer for initial setup

๐Ÿ’ฐ Total cost: ~$120-150

Step 1: Flash the OS

Download Raspberry Pi Imager and flash Raspberry Pi OS Lite (64-bit) to your storage.

๐Ÿ’ก In Imager settings: Enable SSH, set username/password, configure WiFi if needed.

Step 2: Initial Setup

Connect Pi to your network and find its IP address. Then SSH in:

ssh pi@YOUR_PI_IP

Update the system:

terminal
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl

Step 3: Install Docker

terminal
"comment"># Install Docker
curl -fsSL https://get.docker.com | sh

"comment"># Add your user to docker group
sudo usermod -aG docker $USER

"comment"># Log out and back in for group change
exit

After logging back in, verify Docker works:

docker run hello-world

Step 4: Install OpenClaw

terminal
"comment"># Create directory
mkdir -p ~/openclaw && cd ~/openclaw

"comment"># Get docker-compose file
curl -O https://raw.githubusercontent.com/openclaw/openclaw/main/docker-compose.yml

"comment"># Create .env file
nano .env

Add your configuration to .env:

.env
ANTHROPIC_API_KEY=sk-ant-xxxxx
TELEGRAM_BOT_TOKEN=123456:ABC-xxxxx
"comment"># Add other channels as needed

Start OpenClaw:

docker compose up -d

Step 5: Verify & Auto-Start

Check it's running:

"comment"># Check status
docker compose ps

"comment"># View logs
docker compose logs -f

Docker Compose auto-restarts on boot by default. Test by rebooting:

sudo reboot

After reboot, verify OpenClaw started automatically. You're done! ๐ŸŽ‰

๐ŸŽ Mac Mini Setup

Perfect if you want macOS integration (iMessage, Apple Notes, etc.)

Why Mac Mini?

If you want OpenClaw to access macOS-specific features like iMessage, Apple Notes, Calendar, or Reminders, a Mac Mini is the best choice.

  • Native macOS automation via AppleScript/Shortcuts
  • iMessage integration for SMS/iMessage gateway
  • Apple silicon efficiency (M-series)
  • Excellent Docker performance

Quick Setup

  1. Install Docker Desktop from docker.com
  2. Enable "Start Docker Desktop when you sign in" in preferences
  3. Open Terminal and follow the same installation steps as Raspberry Pi (Step 4 above)
  4. Enable auto-login and disable sleep in System Preferences

๐Ÿ’ก Set "Prevent computer from sleeping automatically" and configure the Mac to restart after power failure.

๐Ÿ–ฅ๏ธ Generic Linux Server

For Intel NUCs, old laptops, or any x86 Linux machine.

Requirements

  • Any x86_64 machine with 4GB+ RAM
  • Ubuntu 22.04+ or Debian 12+
  • SSD recommended (not required)
  • Wired network connection

Installation

The process is identical to the Raspberry Pi setup:

terminal
"comment"># Update system
sudo apt update && sudo apt upgrade -y

"comment"># Install Docker
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER

"comment"># Log out and back in, then:
mkdir -p ~/openclaw && cd ~/openclaw
curl -O https://raw.githubusercontent.com/openclaw/openclaw/main/docker-compose.yml

"comment"># Create .env and configure
nano .env

"comment"># Start
docker compose up -d

๐Ÿ”’ Security Best Practices

Running a server at home requires good security habits.

Security Checklist

  • โ˜ Use SSH keys instead of passwords
  • โ˜ Disable root login via SSH
  • โ˜ Set up UFW firewall (allow only necessary ports)
  • โ˜ Keep system and Docker updated
  • โ˜ Use a non-root user for OpenClaw
  • โ˜ Enable automatic security updates
  • โ˜ Consider Tailscale for secure remote access
  • โ˜ Back up regularly to cloud or external drive

Quick Security Setup

Basic firewall setup with UFW:

terminal
"comment"># Install UFW
sudo apt install ufw

"comment"># Allow SSH (before enabling!)
sudo ufw allow ssh

"comment"># Enable firewall
sudo ufw enable

"comment"># Check status
sudo ufw status

Recommended: Tailscale

Tailscale creates a secure private network so you can access your home server from anywhere without exposing ports to the internet.

curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up

๐ŸŒ Remote Access Options

๐Ÿ”

Tailscale (Recommended)

Private VPN mesh network. Access your home server securely from anywhere. Free for personal use.

tailscale.com โ†’
๐Ÿš‡

Cloudflare Tunnel

Expose services securely without opening ports. Good for webhooks and web interfaces.

cloudflared docs โ†’
๐Ÿ”Œ

Port Forwarding

Traditional approach. Open ports on your router. Less secure, not recommended unless necessary.

โš ๏ธ Use with caution

Total Cost of Ownership

Item Raspberry Pi Mac Mini VPS (DO)
Hardware (one-time) $120 $599 $0
Electricity (monthly) ~$1 ~$3 $0
Hosting (monthly) $0 $0 $12
API costs (monthly) $20-40 $20-40 $20-40
Year 1 Total $372 $851 $504
Year 2+ Total ~$252/yr ~$276/yr ~$504/yr

* Based on $25/mo average API usage. Self-hosting pays for itself in 6-12 months.

Prefer Zero Setup?

Join the waitlist for managed hosting. We handle everything, you just use the AI.

๐Ÿ”’ No credit card required. We'll notify you when hosted service launches.