> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openclaw.kr/llms.txt
> Use this file to discover all available pages before exploring further.

# Install

# Install

## Recommended: installer script

The fastest way to install. It detects your OS, installs Node if needed, installs OpenClaw, and launches onboarding.

> [tab] macOS / Linux / WSL2
>
> ```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
> curl -fsSL https://openclaw.ai/install.sh | bash
> ```

> [tab] Windows (PowerShell)
>
> ```powershell theme={"theme":{"light":"min-light","dark":"min-dark"}}
> iwr -useb https://openclaw.ai/install.ps1 | iex
> ```

To install without running onboarding:

> [tab] macOS / Linux / WSL2
>
> ```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
> curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard
> ```

> [tab] Windows (PowerShell)
>
> ```powershell theme={"theme":{"light":"min-light","dark":"min-dark"}}
> & ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -NoOnboard
> ```

For all flags and CI/automation options, see [Installer internals](https://docs.openclaw.kr/install/installer.md).

## System requirements

* **Node 24** (recommended) or Node 22.16+ — the installer script handles this automatically
* **macOS, Linux, or Windows** — both native Windows and WSL2 are supported; WSL2 is more stable. See [Windows](https://docs.openclaw.kr/platforms/windows.md).
* `pnpm` is only needed if you build from source

## Alternative install methods

### npm or pnpm

If you already manage Node yourself:

> [tab] npm
>
> ```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
> npm install -g openclaw@latest
> openclaw onboard --install-daemon
> ```

> [tab] pnpm
>
> ```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
> pnpm add -g openclaw@latest
> pnpm approve-builds -g
> openclaw onboard --install-daemon
> ```
>
> > [!NOTE]
> >
> > pnpm requires explicit approval for packages with build scripts. Run `pnpm approve-builds -g` after the first install.

> [accordion] Troubleshooting: sharp build errors (npm)
>
> If `sharp` fails due to a globally installed libvips:
>
> ```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
> SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest
> ```

### From source

For contributors or anyone who wants to run from a local checkout:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install && pnpm ui:build && pnpm build
pnpm link --global
openclaw onboard --install-daemon
```

Or skip the link and use `pnpm openclaw ...` from inside the repo. See [Setup](https://docs.openclaw.kr/start/setup.md) for full development workflows.

### Install from GitHub main

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
npm install -g github:openclaw/openclaw#main
```

### Containers and package managers

> [card] [Docker](https://docs.openclaw.kr/install/docker.md)
>
> Containerized or headless deployments.

> [card] [Podman](https://docs.openclaw.kr/install/podman.md)
>
> Rootless container alternative to Docker.

> [card] [Nix](https://docs.openclaw.kr/install/nix.md)
>
> Declarative install via Nix flake.

> [card] [Ansible](https://docs.openclaw.kr/install/ansible.md)
>
> Automated fleet provisioning.

> [card] [Bun](https://docs.openclaw.kr/install/bun.md)
>
> CLI-only usage via the Bun runtime.

## Verify the install

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw --version      # confirm the CLI is available
openclaw doctor         # check for config issues
openclaw gateway status # verify the Gateway is running
```

## Hosting and deployment

Deploy OpenClaw on a cloud server or VPS:

> [card] [VPS](https://docs.openclaw.kr/vps.md)
>
> Any Linux VPS

> [card] [Docker VM](https://docs.openclaw.kr/install/docker-vm-runtime.md)
>
> Shared Docker steps

> [card] [Kubernetes](https://docs.openclaw.kr/install/kubernetes.md)
>
> K8s

> [card] [Fly.io](https://docs.openclaw.kr/install/fly.md)
>
> Fly.io

> [card] [Hetzner](https://docs.openclaw.kr/install/hetzner.md)
>
> Hetzner

> [card] [GCP](https://docs.openclaw.kr/install/gcp.md)
>
> Google Cloud

> [card] [Azure](https://docs.openclaw.kr/install/azure.md)
>
> Azure

> [card] [Railway](https://docs.openclaw.kr/install/railway.md)
>
> Railway

> [card] [Render](https://docs.openclaw.kr/install/render.md)
>
> Render

> [card] [Northflank](https://docs.openclaw.kr/install/northflank.md)
>
> Northflank

## Update, migrate, or uninstall

> [card] [Updating](https://docs.openclaw.kr/install/updating.md)
>
> Keep OpenClaw up to date.

> [card] [Migrating](https://docs.openclaw.kr/install/migrating.md)
>
> Move to a new machine.

> [card] [Uninstall](https://docs.openclaw.kr/install/uninstall.md)
>
> Remove OpenClaw completely.

## Troubleshooting: `openclaw` not found

If the install succeeded but `openclaw` is not found in your terminal:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
node -v           # Node installed?
npm prefix -g     # Where are global packages?
echo "$PATH"      # Is the global bin dir in PATH?
```

If `$(npm prefix -g)/bin` is not in your `$PATH`, add it to your shell startup file (`~/.zshrc` or `~/.bashrc`):

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
export PATH="$(npm prefix -g)/bin:$PATH"
```

Then open a new terminal. See [Node setup](https://docs.openclaw.kr/install/node.md) for more details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.