AI Income LabJoin AI Income Lab ↗

Build guide · By · Published · Updated

How to install OpenClaw safely: on your computer, a VPS or a hosted service

Quick answer: Install OpenClaw with its official installer: curl -fsSL https://openclaw.ai/install.sh | bash on macOS, Linux or WSL2, or iwr -useb https://openclaw.ai/install.ps1 | iex in Windows PowerShell. The installer sets up Node.js if needed and starts onboarding, where you connect a model and, optionally, a chat app such as Telegram. Run it on a VPS or a spare machine rather than your main computer, keep the gateway on localhost, and run openclaw security audit before you connect any accounts.

OpenClaw is an open-source personal AI agent that runs on a machine you control and takes instructions from chat apps like Telegram, WhatsApp, Discord and Slack. It started as Clawdbot, was renamed Moltbot in late January 2026, and is now OpenClaw. Older tutorials, including some of mine, use the earlier names.

This guide covers where to run it, the official install and first-run steps, connecting a chat app, the security settings to check, and the hosted alternatives I have tried. Commands and requirements come from the OpenClaw documentation, checked November 3, 2026. The hands-on notes come from my installs on a VPS, on Emergent and on KiloClaw between January and March 2026.

Guide card: How to install OpenClaw safely. Where: a VPS or hosted, not your main computer; Install: one installer, then onboarding; Lock down: pairing, loopback, security audit.
Decide where it runs before you install it: the agent can act on whatever machine it is on.
Watch on YouTube: Clawdbot Is Blowing Up - Here's How To Install It! (25:52). Also on this site with notes: the watch page.

Decide where OpenClaw runs before you install it

OpenClaw can read files, run commands and send messages on the machine it runs on. That is the point of it, and it is also the risk. When I first installed it, as Clawdbot, I chose not to put it on my own computer for that reason and used a VPS instead.

WhereCostGood forWatch out for
Your own computerFree, plus model usageTrying it for an hourThe agent can reach your personal files and logged-in sessions
A VPS or spare machineA small monthly server billRunning it 24/7, kept away from your own filesYou maintain the server, updates and firewall
A hosted serviceA monthly fee or creditsNo server to manageYou trust the host with your agent and its keys; features can be limited

Whichever you pick, start with a separate email or test accounts, not your main ones. You can connect more once you know how it behaves.

Install OpenClaw with the official installer

OpenClaw needs Node.js 24.16.0 or later on the 24 line, or 26.1.0 or later. The docs recommend Node 26, and 24.22.1+ or 26.12.1+ for security fixes. The installer script installs Node for you if it is missing.

macOS, Linux or WSL2

curl -fsSL https://openclaw.ai/install.sh | bash

Windows

iwr -useb https://openclaw.ai/install.ps1 | iex

With npm instead

npm install -g openclaw@latest --allow-scripts=openclaw
openclaw onboard --install-daemon

On npm 11.15 or earlier, leave out --allow-scripts=openclaw. pnpm and bun installs are also documented. As with any curl | bash command, you can download the script first and read it before running it.

Check the install worked:

openclaw --version
openclaw doctor
openclaw gateway status

On my Ubuntu VPS in January, the installer set up Node.js and the agent in just over a minute.

First run and onboarding

  1. The installer starts onboarding. To run it later, use openclaw onboard.
  2. Choose Quick start. It looks for a model you can already use, such as an existing Claude Code or Codex CLI login, checks it with a real request, and saves the settings. If nothing is found, it asks for a provider and an API key.
  3. Read the security notice it shows and accept only if you understand it. The agent will act with the permissions of the account it runs under.
  4. Let it install the gateway as a background service, or run openclaw gateway install later. That creates a systemd user service on Linux and WSL2, a LaunchAgent on macOS, or a scheduled task on Windows.
  5. Run openclaw gateway status. It should show the gateway listening on port 18789.
  6. Run openclaw dashboard to open the Control UI, type a message, and check you get a reply.

Model costs are separate from OpenClaw itself, which is free and open source. In my first install I used a Gemini API key from Google AI Studio. If you want one key for many models with spending limits, the OpenRouter setup guide covers that, and the Claude model comparison helps you pick a model that is not more expensive than the job needs.

Connect Telegram or WhatsApp

A chat app is how you talk to OpenClaw from your phone. The docs call Telegram the quickest to set up, because it only needs a bot token from Telegram’s BotFather. WhatsApp links your account with a QR code, the same way WhatsApp Web does. On my VPS install I used WhatsApp; on KiloClaw I could not get the QR code to show and Telegram returned an error, so test the channel before you rely on it.

Once connected, OpenClaw sends anyone it does not know a pairing code instead of answering them, and group chats need to be allowlisted. Leave that on. Only approve your own accounts.

Security settings to check first

This is not hypothetical. Days after Moltbot went viral, a security researcher showed thousands of exposed API keys and email addresses from Moltbook, a social network for these agents; I covered it in Why Moltbook is a security nightmare. The same habits that protect any coding agent apply here: separate accounts, revocable keys, and reviewing what it did. The Claude Code beginner guide covers those habits for a coding agent.

Hosted options if you do not want a server

Prices and features of hosted services change often; check them on the day you sign up.

OpenClaw vs Hermes Agent vs GrokBot

Since those tests I have moved most of my personal-agent work to two other tools:

If you are still deciding whether you need an autonomous agent at all, the agentic AI vs traditional automation guide helps. Many “assistant” jobs are better as a fixed workflow in self-hosted n8n, which is easier to check and cheaper to run.

When it fails

FAQ

How do I install OpenClaw?

Run the official installer: curl -fsSL https://openclaw.ai/install.sh | bash on macOS, Linux or WSL2, or iwr -useb https://openclaw.ai/install.ps1 | iex in Windows PowerShell. It installs Node.js if needed and starts onboarding.

Is OpenClaw free?

OpenClaw itself is free and open source. You pay for the AI model it uses, through an API key or an existing subscription, and for a server or hosted service if you do not run it on your own machine.

Is OpenClaw safe to run on my computer?

It can read files and run commands with your account’s permissions, so it is safer on a VPS, a spare machine or a hosted service. Keep the gateway on localhost, use pairing for chat apps, and run openclaw security audit.

What happened to Clawdbot and Moltbot?

They are the same project. Clawdbot was renamed Moltbot in late January 2026 and is now called OpenClaw. Older tutorials use the earlier names.

What port does OpenClaw use?

The gateway listens on port 18789. On a normal install it binds to localhost only, so do not open that port to the internet.

Which chat app is easiest to connect to OpenClaw?

Telegram, according to the OpenClaw docs, because it only needs a bot token. WhatsApp links with a QR code, like WhatsApp Web.

Sources

Install commands, Node requirements, onboarding steps, the gateway port and security defaults checked November 3, 2026 against the OpenClaw documentation. Notes on VPS, Emergent and KiloClaw installs come from my videos between January and March 2026; hosted prices and features may have changed since.

Build the next one with AI Income Lab

Step-by-step courses, reusable templates, and a community that answers when you get stuck.

Join AI Income Lab ↗From $29/month. Cancel anytime.
Join 2,900+ members building with AI

Not ready to join? Get the weekly build notes: new guides and tested builds in one short email.