How to Install and Set Up OpenClaw: Prerequisites, Onboarding and Daemon
Step-by-step OpenClaw install for macOS, Linux, WSL2 and Windows: Node requirements, the installer, onboarding modes, running it as a background service, and what to check afterwards.
OpenClaw is an open-source, MIT-licensed assistant that runs a Gateway on hardware you control. This page covers installing it and getting a working, persistent Gateway. For what it is and who it suits, see the OpenClaw guide. For safe configuration, see the security checklist.
What do I need first?
- Node.js: 24.16.0 or later on the 24.x line, or 26.1.0 or later. Node 26 is recommended. The docs say to use 24.22.1+ or 26.12.1+ for security fixes. Check with
node --version. The installer scripts can provision a supported runtime when needed. - AI access: an existing Claude Code or Codex CLI login, or a provider API key. Onboarding can reuse either. Running a local model is also possible; see the main guide.
- A machine that stays on. A Gateway that runs only on a sleeping laptop stops when the laptop does. Many users place it on a small always-on computer or VPS.
How do I install it?
- macOS, Linux or WSL2Run
curl -fsSL https://openclaw.ai/install.sh | bash. Because this executes a downloaded script, open that URL in a browser first if you want to read it. - Windows (PowerShell)Run
iwr -useb https://openclaw.ai/install.ps1 | iex. The same advice applies: read the script first if you prefer. - Alternatives
npx openclaw@latestis a quick try without a permanent install. The README also documentsnpm install -g openclaw@latest --allow-scripts=openclaw, noting that the flag should be omitted on npm 11.15 and earlier.
What does onboarding do?
The installer starts the onboarding wizard automatically. There are two main paths:
- Quick Start: detects existing AI access, verifies it with a real completion, saves the config and opens the web dashboard. If no detected route works, it falls back to manual provider setup.
- Custom setup: walks through all guided options.
For the step-by-step version run openclaw onboard --classic. Adjust settings later with openclaw configure. Until you press Ctrl+C the Gateway runs in the terminal, and your configuration stays saved.
How do I keep it running in the background?
Quick Start asks whether to keep OpenClaw running and installs the service if you accept. Otherwise stop the foreground Gateway with Ctrl+C and run openclaw gateway install. The docs list the mechanism per platform:
| Platform | Service type |
|---|---|
| macOS | LaunchAgent |
| Linux and WSL2 | systemd user unit |
| Native Windows | Scheduled Task, with a per-user Startup-folder login item as the fallback |
Background service by platform (OpenClaw docs).
How do I check it works?
- Run
openclaw gateway status. The Gateway should be listening on port 18789. - Run
openclaw dashboardto open the Control UI in your browser. - After changing config, run
openclaw gateway restart. - Run
openclawon its own to open the terminal UI.
Which chat app should I connect first?
OpenClaw lists Discord, iMessage, Slack, Teams, Telegram, WhatsApp, Google Chat, Signal and more than 20 others. Which to start with is your call. Whichever you pick, note that direct-message channels pair unknown senders by default, and you approve requests with openclaw pairing approve <channel> <code>. Do that deliberately: anyone you approve can message an agent that may have tool access.
Based on the vendor's documentation on 3 November 2026; not hands-on tested by us. Commands, versions and defaults change, so confirm in the current docs.
Frequently asked questions
What do I need before installing OpenClaw?+
Node.js 24.16.0 or later on the 24.x line, or 26.1.0 or later (Node 26 is recommended), plus AI access: an existing Claude Code or Codex CLI login, or a provider API key. The docs advise 24.22.1+ or 26.12.1+ to get security fixes.
How long does setup take?+
We did not time it, so we make no promise. The installer and Quick Start wizard are designed to be short when you already have credentials; connecting channels and hardening take longer.
How do I keep OpenClaw running after I close the terminal?+
Accept the background-service prompt in Quick Start, or run `openclaw gateway install`. That sets up a LaunchAgent on macOS, a systemd user unit on Linux and WSL2, and a Scheduled Task on native Windows.
Is it safe to pipe the installer into bash?+
It is a common pattern, but it runs code you have not read. Open the script URL first, or use the npm install. Whichever you choose, do the security steps in our OpenClaw security checklist before connecting channels or sensitive accounts.
Sources
- Getting started — OpenClaw docs (accessed November 3, 2026). Prerequisites, install commands, onboarding, daemon install, status and dashboard commands.
- openclaw/openclaw (README) — GitHub (accessed November 3, 2026). MIT license; about 393.8k stars on the access date; install commands; sandboxing not on by default for the main session.
Related reading
Who writes this?
This piece carries the Technology Desk byline. The site was co-founded by Liyam Flexer, Co-Founder & Investor. Content is managed by Adam Green, Content Manager, with Tal Slavin joining as Writer & Editor. A byline identifies who is responsible for the editorial content; it does not claim the author tested a product. Articles carry an editorial-review status, and those awaiting review say so. Questions or corrections: contact.