How to Install OpenClaw on Any Machine (2026)

People overthink this. OpenClaw is an npm package. If you have Node.js installed, you are basically already done. This guide covers every platform people actually ask about, without wasting your time on stuff that doesn't matter.

Pick your machine below and jump straight to it.

๐Ÿ–ฅ
Mac mini
Best option
๐Ÿ’ป
MacBook
Works great
๐ŸชŸ
Windows PC
Fully supported
๐Ÿง
Linux / VPS
Easiest actually
๐Ÿ“
Raspberry Pi 5
Pi 5 only
๐Ÿ“ฆ
Mini PC
Intel NUC etc
In this guide
What you need before you start ๐Ÿ” Check if your machine is compatible Mac mini (M1/M2/M4) MacBook Windows PC Linux / Ubuntu VPS Raspberry Pi 5 Mini PCs (Shuttle, Intel NUC, Beelink) Giving your agent a wallet (the fun part) Common problems

What you need before you start

One thing: Node.js 18 or higher. That's it. Everything else follows from that.

Check if you already have it:

node --version
# Should print v18.x.x or higher
# If it prints v16 or lower, update Node first
# If you get "command not found", install Node below
MachineMinimum specOpenClaw runs?Notes
Mac mini M1/M2/M48GB RAMPerfectBest choice for a home server
MacBook (2017+)8GB RAM, macOS 12+PerfectJust keep it plugged in
Windows 10/11 PC4GB RAM, 64-bitWorks greatUse PowerShell or WSL2
Ubuntu/Debian VPS1GB RAM ($4/mo)EasiestHetzner, Digital Ocean
Raspberry Pi 54GB or 8GB modelWorksPi 4 is too slow
Raspberry Pi 44GB modelMarginalGets slow under load
Intel NUC / Shuttlei3+, 8GB RAMGreatSilent, low power
Mac mini 2010 (old Intel)El Capitan maxNoToo old, macOS too outdated
Raspberry Pi 31GB RAMNoNot enough RAM
โš ๏ธ Old Mac warning

If your Mac was made before 2017 it probably can't run a recent enough version of macOS to support OpenClaw. Check your macOS version in Apple menu > About This Mac. You need macOS Monterey (12) or newer.

๐Ÿ” Check your machine
Not sure if your computer can run OpenClaw? Fill in a few details and we'll tell you instantly.

Mac mini (M1, M2, M4)

The Mac mini is honestly the best machine for running OpenClaw at home. It's silent, uses almost no power, runs all day every day without complaint, and the M-series chips are fast enough that you'll never notice the resource usage. A 2023 Mac mini M2 costs about $500 used. Worth every cent.

macOS Monterey 12 or newer
Node.js 18+
Homebrew (recommended)

Step 1: Install Homebrew (if you don't have it)

Homebrew is the package manager for macOS. You don't have to use it, but it makes everything easier. Open Terminal (find it in Spotlight with Cmd+Space, type Terminal).

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Follow the prompts. It'll ask for your password. Takes about 2 minutes.

Step 2: Install Node.js

brew install node
node --version
v22.x.x

Step 3: Install OpenClaw

npm install -g openclaw

The -g flag installs it globally so you can run it from anywhere. This takes a minute or two the first time.

Step 4: Start the gateway

openclaw gateway start
OpenClaw gateway starting...
Gateway running on port 3141
Open http://localhost:3141 to configure

Step 5: Keep it running after restart

By default OpenClaw stops when you close Terminal. To keep it running permanently, use launchd or just add it to your login items. The easiest way:

openclaw gateway enable-autostart
Pro tip

Set your Mac mini's sleep settings to "never" so OpenClaw stays online. Go to System Settings, then Battery (or Energy Saver), and set "Prevent automatic sleeping" to always. Or run sudo pmset -a sleep 0 in Terminal.

Give your Mac mini's AI agent a wallet ๐Ÿงž

Now that OpenClaw is running, your agent can do a lot. But when it needs to pay for things (API calls, cloud services, research tools) it'll have to stop and ask you every single time. YourAgentPays is launching in early March 2026 and it fixes this completely. You fund a dedicated wallet, set spending rules by category, and your agent gets an API key instead of your credit card. It's already being called revolutionary for AI payment authorization. Genuinely worth getting on the waitlist now.

Join the Waitlist โ†’

MacBook (any model 2017+)

Works exactly the same as Mac mini. The only thing to watch out for is that your MacBook will stop running OpenClaw whenever it goes to sleep. If you want it running 24/7, keep it plugged in and set sleep to never (same steps as above).

Otherwise, follow the exact same steps as the Mac mini guide above. There's nothing MacBook-specific to worry about.

M1/M2/M3/M4 vs Intel

Both work fine. Apple Silicon (M1 and newer) is faster and uses less battery. Intel Macs from 2017-2021 are perfectly capable too. The only real limit is macOS version: you need Monterey 12 or newer.

Windows 10 / 11 PC

OpenClaw runs on Windows without any issues. The setup is slightly different but not harder.

Windows 10 or 11 (64-bit)
Node.js 18+
PowerShell or Command Prompt

Step 1: Install Node.js

Go to nodejs.org and download the LTS version. Run the installer. Default settings are fine. When it finishes, open PowerShell.

node --version
v22.x.x
# If this doesn't work, restart PowerShell and try again

Step 2: Install OpenClaw

npm install -g openclaw

If you get a permissions error, run PowerShell as Administrator (right-click, "Run as administrator") and try again.

Step 3: Start the gateway

openclaw gateway start

Step 4: Keep it running after reboot

To auto-start OpenClaw when Windows boots, create a scheduled task. The quickest way:

openclaw gateway enable-autostart

Or manually: search for "Task Scheduler" in Start, create a basic task that runs openclaw gateway start at logon.

WSL2 users

If you use Windows Subsystem for Linux, you can install OpenClaw inside WSL2 using the Linux instructions below. It works well and some people prefer it for the Unix-style environment.

Linux / Ubuntu / Debian (including VPS)

Honestly this is the easiest setup. If you've got a fresh Ubuntu 22.04 server (a $4/month Hetzner or Digital Ocean droplet works perfectly), you can go from zero to running OpenClaw in about 4 minutes.

Ubuntu 20.04+ or Debian 11+
1GB RAM minimum (2GB recommended)
SSH access

Step 1: Install Node.js via NodeSource

The Node.js version in Ubuntu's default package manager is usually outdated. Use NodeSource instead:

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
v22.x.x

Step 2: Install OpenClaw

sudo npm install -g openclaw

Step 3: Start the gateway

openclaw gateway start

Step 4: Run as a systemd service (so it survives reboots)

openclaw gateway enable-autostart
Created systemd service: openclaw-gateway
Service enabled and started.

If you prefer to do it manually:

# Create service file
sudo nano /etc/systemd/system/openclaw.service

# Paste this into the file:
[Unit]
Description=OpenClaw Gateway
After=network.target

[Service]
Type=simple
User=YOUR_USERNAME
ExecStart=/usr/bin/openclaw gateway start
Restart=on-failure

[Install]
WantedBy=multi-user.target

# Enable and start it
sudo systemctl enable openclaw
sudo systemctl start openclaw
sudo systemctl status openclaw
Cheapest way to run OpenClaw 24/7

A Hetzner CX22 server costs 3.92 euros per month (about $4.30). That's a 2-core ARM CPU, 4GB RAM, 40GB SSD. More than enough for OpenClaw. Sign up at hetzner.com, create a server with Ubuntu 22.04, and follow the Linux steps above. Your agent is online in under 10 minutes for less than a coffee a month.

Running OpenClaw on a VPS? Your agent needs a way to pay for things.

VPS-hosted agents often run completely autonomously and need to call paid APIs, purchase compute, or access research tools. YourAgentPays (launching early March 2026) is the payment layer being built for exactly this. Fund a wallet once, set spending rules, give your agent an API key. It's already being called a game changer for teams running autonomous agents at scale. Early access waitlist is open now.

Get Early Access โ†’

Raspberry Pi 5

The Pi 5 is surprisingly capable for this. The 8GB model especially. If you've got one sitting around and want a cheap always-on OpenClaw server, it works well. Just don't try this on a Pi 3 or Pi Zero: not enough RAM.

Raspberry Pi 5 (4GB or 8GB)
Raspberry Pi 4 (4GB only, slower)
Pi 3, Pi Zero: not enough RAM

Step 1: Start with Raspberry Pi OS (64-bit)

Use Raspberry Pi Imager to flash Raspberry Pi OS (64-bit) onto your SD card. The Lite version works fine if you don't need a desktop. Enable SSH in the imager settings so you can access it headlessly.

Step 2: Install Node.js

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
v22.x.x

Step 3: Install and start OpenClaw

sudo npm install -g openclaw
openclaw gateway start

Step 4: Run as a service

Same systemd steps as the Linux section above. On a Pi this matters even more since you'll probably be running it headlessly and want it to come back online after power outages.

Power and cooling

The Pi 5 under load draws more power than older Pi models. Use the official 27W USB-C power supply. A heatsink is strongly recommended and a small fan helps if OpenClaw is working hard. Thermal throttling will slow things down noticeably if the chip gets too hot.

Mini PCs: Shuttle, Intel NUC, Beelink, GMKtec

If you want something more capable than a Pi but don't want to spend Mac mini money, mini PCs are a great middle ground. A used Intel NUC from 2019-2022 runs OpenClaw perfectly. Beelink and GMKtec make newer units with AMD Ryzen chips for around $150-200 that are genuinely fast.

These all run Ubuntu or Windows, so follow the Linux or Windows instructions above depending on which OS you put on it. There's nothing mini-PC-specific about the setup.

One thing worth noting: the Shuttle DS77U5 (Intel 7th gen i5) is a solid option if you find one used. Quiet, compact, and runs OpenClaw without breaking a sweat.

Giving your agent a wallet (the part nobody tells you about)

You got OpenClaw running. Your agent is online. It can browse the web, send messages, run code, manage files. Great.

Then you ask it to do something that costs money. Maybe call an API. Maybe spin up a compute instance. Maybe buy a domain. And it stops. It asks you. You approve it. It proceeds. Ten minutes later it stops again for another $2.40 API charge.

This interruption loop is one of the biggest friction points with autonomous agents right now and most people just live with it.

YourAgentPays is solving this. It's launching in early March 2026 (honestly very soon) and it's already being called one of the more important infrastructure pieces for autonomous AI. The concept is simple: instead of giving your agent your credit card, you fund a dedicated wallet, set spending rules by category (auto-approve small API calls, ask before big purchases, block certain categories entirely), and give your agent an API key. Three endpoints. Your agent checks its balance, checks its permissions, and pays within your limits. You keep a kill switch.

For people running OpenClaw on a Mac mini or VPS that's doing real work 24/7, this is genuinely useful. The waitlist is free and early access is opening this month.

Step 6 (once you're running): Set up agent payments

Your agent is running. Now give it purchasing power it can actually use without waking you up. YourAgentPays is the payment layer designed specifically for OpenClaw and other AI agents. Launching early March 2026. Join the waitlist and be first in line when it opens.

Join Waitlist (Free) โ†’

Common problems and how to fix them

"command not found: openclaw"

This usually means npm's global bin directory isn't in your PATH. Try:

npm config get prefix
/usr/local
# Add /usr/local/bin to your PATH in ~/.zshrc or ~/.bashrc
export PATH=$PATH:/usr/local/bin
source ~/.zshrc

"Error: EACCES permission denied" on macOS/Linux

Don't use sudo npm install -g on macOS. Instead, fix npm's permissions:

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
npm install -g openclaw

Gateway starts but stops immediately

Check the logs:

openclaw gateway status
openclaw gateway logs

Usually this is a port conflict (something else is using port 3141) or a missing API key in your config. The logs will tell you exactly what's wrong.

"Node version X is not supported"

OpenClaw needs Node 18 or higher. If you're on an older version:

# Using nvm (easiest cross-platform method)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 22
nvm use 22
npm install -g openclaw

OpenClaw works but goes offline overnight

Your machine is sleeping. On Mac: System Settings > Battery > prevent sleeping. On Linux: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target. On Windows: Control Panel > Power Options > change plan to High Performance, set sleep to Never.

Your agent is running. Now give it a wallet.

YourAgentPays is launching early March 2026. Join the waitlist and stop approving every $2 API charge manually.

Join the Waitlist (Free) โ†’