OpenClaw Install Guide: Mac, Windows, Linux and Docker

Install OpenClaw in about 10 minutes. Pick your system below and get the exact commands, what the installer does, how to finish onboarding and how to fix the most common install errors.

  • Time5–10 minutes
  • NeedsNode 24.16+ (the installer adds it)
  • PriceFree, MIT license
Install helper

Get your exact install steps

1. Your system
2. How you like to install
macOS · Installer script
    Full Mac install guide →
    By platform

    How to install OpenClaw on each system

    Each card has the fastest method. Follow the link for a full, illustrated guide.

    Install OpenClaw on Mac

    macOS 15+ · Apple silicon and Intel
    Terminal
    curl -fsSL https://openclaw.ai/install.sh | bash

    Or download the macOS app, which adds a menu bar icon and bundles the gateway. A Mac is also the only way to use iMessage.

    Mac install guide →

    Install OpenClaw on Windows

    Windows 10 / 11 · x64 and ARM64
    PowerShell
    iwr -useb https://openclaw.ai/install.ps1 | iex

    Or download the Windows app. Already use WSL2? The Mac/Linux installer script works inside it too.

    Windows install guide →

    Install OpenClaw with Docker

    Compose v2 · 6 GB RAM recommended
    Terminal
    git clone https://github.com/openclaw/openclaw.git
    cd openclaw
    export OPENCLAW_IMAGE="ghcr.io/openclaw/openclaw:latest"
    ./scripts/docker/setup.sh

    Keeps OpenClaw in containers, separate from the rest of your system. Great for servers and sandboxed setups.

    Docker install guide →
    Before you install

    Requirements

    Operating system
    macOS 15+, Windows 10/11, or 64-bit Linux
    Node.js
    24.16+ or 26.1+ (26 recommended). The installer script sets it up for you.
    npm
    npm 12 or 11.16+ for the --allow-scripts flag
    Docker
    Docker Engine or Desktop with Compose v2, at least 6 GB RAM
    AI model
    An API key from a provider, or a local model
    Full system requirements →
    Behind the scenes

    What the installer does

    1. Checks for Node.js and installs a supported version if needed
    2. Installs the openclaw command from the official npm package
    3. Creates ~/.openclaw for your config, memory and workspace
    4. Starts onboarding so you can pick a model and chat app
    5. Offers to install the gateway service so OpenClaw keeps running in the background

    Want to read the script first? Download it with curl -fsSL https://openclaw.ai/install.sh -o install.sh, check it, then run bash install.sh.

    Every method

    All OpenClaw install commands

    For developers and advanced setups. All from the official docs.

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

    On npm 11.15 or older, leave out --allow-scripts=openclaw.

    Skip the onboarding wizard with --no-onboard (bash) or -NoOnboard (PowerShell). Also supported: Nix, Podman, Ansible, Kubernetes and Raspberry Pi, covered in the official docs.

    After installing

    Finish setup in 4 steps

    The onboarding wizard usually does steps 2 and 3 for you.

    1. Check the install
      bash
      openclaw --version
      openclaw doctor
    2. Connect an AI model, then confirm it
      bash
      openclaw models status
    3. Connect a chat app like Telegram or WhatsApp and approve yourself
      bash
      openclaw pairing approve telegram <code>
    4. Open the Control UI at http://127.0.0.1:18789 and send your first message.

    Next: build a real automation with our first workflow tutorial.

    Fix install problems

    Common OpenClaw install errors

    openclaw: command not found

    The install folder isn't on your PATH yet. Close and reopen your terminal. If it still fails, run npm prefix -g and add its bin folder to your PATH.

    Unsupported Node.js version

    OpenClaw needs Node 24.16+ or 26.1+. Update Node, or use the installer script or local-prefix installer, which bring their own.

    EACCES: permission denied

    npm is trying to write to a system folder. Don't use sudo npm. Use the installer script, or a Node version manager so global packages install in your home folder.

    Unknown option --allow-scripts

    Your npm is older than 11.16. Update npm, or run the install command without --allow-scripts=openclaw.

    Control UI won't open

    The gateway may not be running. Run openclaw gateway status, then openclaw gateway start. Check nothing else is using port 18789.

    Stops when I close the terminal

    Install the background service with openclaw onboard --install-daemon. On Linux servers, also run loginctl enable-linger.

    Still stuck? Run openclaw doctor and see our troubleshooting guide.

    Update OpenClaw

    bash
    openclaw update

    Back up ~/.openclaw first. See the update and backup guide.

    Uninstall OpenClaw

    bash
    openclaw uninstall

    It asks what to remove. Move any workspace you want to keep out of ~/.openclaw first.

    FAQ

    OpenClaw install questions

    How do I install OpenClaw?

    On macOS or Linux, run curl -fsSL https://openclaw.ai/install.sh | bash. On Windows, run iwr -useb https://openclaw.ai/install.ps1 | iex in PowerShell. You can also download the desktop app, install with npm, or use Docker.

    How long does it take to install OpenClaw?

    The install itself takes a few minutes. Allow 10 to 30 minutes in total to finish onboarding, add a model API key and connect your first chat app.

    Do I need Node.js to install OpenClaw?

    OpenClaw runs on Node.js 24.16+ or 26.1+, but you don't need to install it yourself if you use the installer script, the local-prefix installer, the desktop app or Docker.

    Can I install OpenClaw on Windows without WSL?

    Yes. Use the PowerShell installer or the Windows desktop app. WSL2 is optional, and the Mac/Linux script works inside it if you prefer.

    Is it safe to install OpenClaw?

    Install only from official sources: openclaw.ai, github.com/openclaw and the npm package named openclaw. After installing, keep sender pairing on and review our security guide before connecting personal accounts.

    How do I update or uninstall OpenClaw?

    Run openclaw update to update, and openclaw uninstall to remove it. Back up your ~/.openclaw folder before either.

    Install guides