# How do you install OpenClaw? A step-by-step setup guide

Run the official installer, pick Quick start in onboarding, and let the Gateway run in the background. Inside: the commands for Mac, Linux and Windows, plus first checks.

Tool: OpenClaw. By Julien Lieben. Updated 2026-12-02. Source: https://coldiq.com/university/openclaw/how-to-install-openclaw

## In short

- OpenClaw needs Node.js 24.16.0 or newer on the 24 line, or 26.1.0 or newer. The docs recommend Node 26.
- On macOS, Linux and WSL2, install with curl -fsSL https://openclaw.ai/install.sh | bash. On Windows PowerShell, use iwr -useb https://openclaw.ai/install.ps1 | iex.
- Onboarding offers Quick start, which reuses an existing Claude Code or Codex CLI login or an API key, or Custom setup for every option.
- Say yes to "Keep OpenClaw running in the background?" so the Gateway starts on its own after a reboot.
- Check the install with openclaw gateway status. The Gateway listens on port 18789.

## Steps

1. Check that you have Node.js 24.16 or newer, or Node 26.
2. Run the installer for your system and choose Quick start.
3. Run openclaw gateway status, then open the dashboard and send a message.

## What do you need before you install OpenClaw?

You need three things: a computer, Node.js and access to an AI model. OpenClaw runs on macOS, Linux and Windows. On Windows, the docs call the native Windows Hub app the easiest desktop path, and the PowerShell installer and a WSL2 Gateway are also supported.

Node.js is the program that runs OpenClaw. Check your version with node --version. You need 24.16.0 or newer on the 24 line, or 26.1.0 or newer. The docs recommend Node 26, and 24.22.1 or 26.12.1 or newer for the latest security fixes.

For the AI model, you need an existing Claude Code or Codex CLI login, or an API key (a secret code from a model provider such as Anthropic or OpenAI). Onboarding can reuse what you already have.

If you prefer an app, the OpenClaw website lists desktop downloads for macOS, for Windows 10 and 11 (x64 and ARM64), and for Linux as an AppImage or .deb package.


## How do you install OpenClaw on Mac or Linux?

Open the Terminal app and run the official install script. It installs OpenClaw and starts the onboarding wizard on its own.

If you only want to try OpenClaw first, run npx openclaw@latest. It runs the latest version without a full install.

1. Install: curl -fsSL https://openclaw.ai/install.sh | bash
2. In onboarding, choose Quick start.
3. When asked "Keep OpenClaw running in the background?", choose Yes.
4. Check it: openclaw gateway status
5. Open the dashboard: openclaw dashboard


## How do you install OpenClaw on Windows?

The simplest path is the native Windows Hub app, a desktop app for Windows 10 and 11. If you prefer the command line, open PowerShell and run the official script.

- Install: iwr -useb https://openclaw.ai/install.ps1 | iex
- Follow the same onboarding steps: Quick start, then Yes to the background question.
- On Windows, the background service is a Scheduled Task, with a Startup folder item as a fallback.

Tip: If you already use WSL2 (Linux inside Windows), you can run the Mac and Linux script there instead. The docs support both paths.


## What happens during onboarding?

Onboarding is a guided setup in the terminal. It starts with a short pointer to the security guide, then asks you to choose Quick start or Custom setup.

Quick start looks for a Claude Code or Codex CLI login, or an API key. It checks that the access works with a real test request, saves the settings and opens the web dashboard. Custom setup walks you through every option, such as channels, models and tools.

When you answer Yes to the background question, OpenClaw installs a copy of itself under ~/.openclaw and runs the Gateway from there, so clearing the npx cache does not stop it. You can change settings later with openclaw configure. If you prefer the older step-by-step flow, run openclaw onboard --classic.


## How do you keep OpenClaw running in the background?

The Gateway is the part of OpenClaw that must stay on. It links your chat apps to the agent. If you said No to the background question, or used npx, install the service yourself.

openclaw gateway install registers the service. openclaw gateway start waits until the Gateway passes its health checks. On macOS this is a LaunchAgent, on Linux and WSL2 a systemd user unit, and on Windows a Scheduled Task.

1. openclaw gateway install
2. openclaw gateway start
3. openclaw gateway status (you should see port 18789)


## What should you do right after installing?

Send a first message in the dashboard chat. If you get an AI reply, the install works. Then connect a chat app so you can reach the assistant from your phone. The docs name Telegram as the fastest channel to set up, because it only needs a bot token.

Next, run openclaw security audit to check your settings. If something does not work, openclaw doctor checks your install and suggests fixes.

> Tell me which tools and channels you can use right now, which ones need a login or a key, and the three settings I should check before I connect my work email.


## How do you update OpenClaw later?

Run openclaw update on an existing install. The same command can also switch between the two install types: the npm install, best if you just want to run OpenClaw, and the git install, a full copy of the source code for people who want to edit it.

Switching does not delete your data. The docs say your state in ~/.openclaw and your workspace in ~/.openclaw/workspace stay untouched. Only the OpenClaw code changes, and the Gateway restarts at the end unless you add --no-restart.

Back up the ~/.openclaw folder before a big upgrade. It holds your settings, memory and history.

- Preview the change first: openclaw update --channel stable --dry-run
- Stay on stable releases: openclaw update --channel stable
- Move to the source (git) install: openclaw update --channel dev


## Command

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

## Sources

- [OpenClaw docs: Getting started](https://docs.openclaw.ai/start/getting-started)
- [OpenClaw docs: Install](https://docs.openclaw.ai/install)
- [OpenClaw docs: Node setup](https://docs.openclaw.ai/install/node)
- [OpenClaw docs: Windows](https://docs.openclaw.ai/platforms/windows)
- [OpenClaw docs: first run FAQ](https://docs.openclaw.ai/help/faq-first-run/quick-start)
- [OpenClaw website (downloads)](https://openclaw.ai)

## Questions

**Is OpenClaw free to install?** Yes. OpenClaw is open source under the MIT license and has no subscription. You pay only for the AI model you connect, unless you run a local model.

**Can I install OpenClaw with npm?** Yes. Run npm install -g openclaw@latest, then openclaw onboard --install-daemon. On npm 11.16 or newer, the docs add --allow-scripts=openclaw to the install command.

**Is there an OpenClaw desktop app?** Yes. The website lists desktop apps for macOS, Windows 10 and 11, and Linux as an AppImage or .deb package.

**How do I check which version I have?** Run openclaw --version in a terminal.

**How do I fix a broken install?** Run openclaw doctor. It checks your setup and can repair common problems. openclaw triage helps you find the cause of a specific issue.


## Related

- [How do you run OpenClaw in Docker?](https://coldiq.com/university/openclaw/openclaw-docker)

## Try ColdIQ free

ColdIQ gives new accounts up to 1,450 free credits as they get started, no credit card required.
One subscription covers 40+ B2B data providers for finding, enriching and verifying
contacts and companies, through the web app, the API or the MCP server for AI agents.

1. Create an account: https://coldiq.com/marketplace/sign-up?utm_source=ai-assistant&utm_medium=markdown&utm_content=university
2. Run a first search on your own market with the free credits.
3. Connect the MCP server to Claude, ChatGPT or Cursor: https://coldiq.com/mcp
