Skip to content
Cart
0 items

How to Install OpenClaw: Windows Native/WSL, Ubuntu, macOS

by ACEMAGICUS14 Mar 20260 Comments
OpenClaw Installation Guide

1. Hardware Requirements

x86 or Arm (ARM64) PC, or a Mac

Basic Configuration: 2-core CPU, 4 GB RAM, 100 GB storage

Mid-range Configuration: 4-core CPU, 8 GB RAM, 250 GB storage

High-end Configuration: 4-core CPU, 16 GB RAM, 500 GB storage

2. Software Requirements

Operating System: Linux, macOS, or Windows (native or with WSL2)

Core Software: Node.js 24.x (24.16+) or 26.1+

NPM (Node Package Manager)

Windows: Native Install or WSL2

Windows users can now pick between a native install and WSL2. WSL2 is still the most Linux-compatible option, and it's what sections 3 to 6 of this guide follow. To run OpenClaw natively without WSL, open PowerShell and run the official installer:

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

The installer starts onboarding, so finish those steps first, then run openclaw gateway status to check that the Gateway is running. If you go native, skip the Ubuntu and WSL install steps in sections 3 to 5 so you don't install OpenClaw twice.

Startup depends on what the installer could set up. With a registered Scheduled Task, the Gateway can start at boot before you sign in. If task creation was blocked, it falls back to a Startup-folder item that only runs after you log in.

Prefer a desktop app? The Windows Hub can connect to different Gateways, including one on this PC, one in WSL, or a remote one. Its quick Set up locally option creates its own WSL distro and runs the Gateway inside it, so that route still uses WSL. The OpenClaw Windows docs cover both setups.

If you turn on the Hub's sandbox and MXC is available, it contains programs launched through the Windows node's system.run. Commands the Gateway runs directly use the Gateway's own security controls, and without MXC, if strict fallback blocking is disabled, commands can fall back to running uncontained.

If you'd like OpenClaw already on the machine, the ACEMAGIC F2A with OpenClaw pre-installed cuts down the software install steps. You'll still choose your model, sign in to your provider, and approve device pairing yourself.

ACEMAGIC F2A AMD Ryzen AI 9 HX 470 Mini PC with OpenClaw pre-installed
ACEMAGIC F2A AMD Ryzen AI 9 HX 470 Mini PC (OpenClaw Pre-installed)
Ships with OpenClaw pre-installed, which cuts down the software install steps on a new mini PC.
CPU: Ryzen AI 9 HX 470
RAM: 32GB LPDDR5X
Storage: 1TB SSD
Software: OpenClaw pre-installed
Buy Now

3. How to Install Linux on Windows Using WSL

Step-by-Step Guide: https://learn.microsoft.com/en-us/windows/wsl/install

4. Setting Up the Software Environment

For this guide, we use Ubuntu 24.04 LTS(Linux). OpenClaw is written in TypeScript and requires a Node.js runtime environment. Below are the steps to install Node.js and NPM.

4.1 Update Ubuntu packages

Open a terminal and run the following command to update system packages:

sudo apt update && sudo apt upgrade

4.2 Add the NodeSource repository

This allows you to install the latest Node.js version:

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

4.3 Install Node.js and NPM

The -y flag automatically confirms installation prompts.

sudo apt install nodejs -y

4.4 Verify the installation

Check the installed versions of Node.js and NPM:

node -v

npm -v

Ensure Node.js 24.x (24.16+) or 26.1+

5. Installing and Deploying OpenClaw

Choose either Method 1 or Method 2; do not run both.

Method 1: Official Installation Script:

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

Method 2: Using NPM Package Manager:

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

For this guide, we will use the global NPM installation. If your system needs sudo for global installs, run this version instead of the Method 2 command above, not in addition to it:

sudo npm install -g openclaw@latest --allow-scripts=openclaw

On npm 11.15 or earlier, run the same command without --allow-scripts=openclaw.

6. Configuring OpenClaw

6.1 Launch and Full Configuration

If you used the native Windows installer and already finished its onboarding, skip the repeat setup in this section and go straight to checking your model and browser connection.

On WSL, make sure systemd is enabled before you install the background service. If it isn't, follow the official OpenClaw Windows setup steps first.

Open a terminal and run the following command to start OpenClaw and enter the configuration wizard:

openclaw onboard --install-daemon

A configuration interface will appear. A security prompt will ask if you want to continue—select Yes and press Enter.

OpenClaw terminal security warning prompt

Select QuickStart and press Enter

Selecting QuickStart onboarding mode in OpenClaw

In the configuration, for security purposes, select the Gateway bound to the Loopback network interface and press Enter.

6.2 Model Configuration

The following interface will appear. Select the model provider. OpenClaw supports multiple major model providers, including leading providers from both international and Chinese markets.

💡 IMPORTANT NOTE FOR ACEMAGIC & LOCAL AI USERS:

If you are setting up this system on your ACEMAGIC Mini PC to run models locally and avoid cloud API costs, do not select a cloud provider.

For the purpose of this general demonstration (if you are not running a local model yet), we select Z.AI as the model provider and press Enter.

Selecting Z.AI model provider in OpenClaw

Next, the model authentication method options will appear. OpenClaw supports authentication for both global and Chinese regions. Here, we select CN and press Enter.

Choosing CN authentication for Z.AI in OpenClaw

Select the API Key method for model access. Here, we choose Paste API Key now and press Enter.

Selecting paste API key option in OpenClaw

Then, copy and paste the API key you obtained from the model provider into the field.

Entering Z.AI API key in OpenClaw terminal

After verification, OpenClaw sets Z.AI zai/glm-5 as the default model. However, since glm5 is relatively expensive, we ultimately select the more cost-effective zai/glm-4.5-air model and press Enter.

Setting zai/glm-4.5-air default model in OpenClaw

Once the model configuration is complete, the Skills configuration screen will appear. We will skip this step for now and configure it later. Select No and press Enter.

Skipping OpenClaw skills configuration

Next, the Hooks configuration screen will appear. We will skip this for now and configure it later if needed. Press Space to select Skip for now, then press Enter.

Skipping OpenClaw hooks configuration

At this point, all default configurations are complete. The system will prompt that OpenClaw has been successfully installed and configured, and ask whether to restart the service. Select Restart and press Enter to apply all the configurations.

Restarting OpenClaw gateway service

The following interface will appear, indicating that OpenClaw is now online. OpenClaw has launched a main Agent, which is ready for use.

OpenClaw terminal UI launch and web token

In the Control UI section, the OpenClaw Web UI access link is displayed: http://127.0.0.1:18789. The access token is also shown here—copy it, as you will need it later.

6.3 Accessing OpenClaw via Browser

Open a web browser on your computer and enter the OpenClaw Web UI access address: http://127.0.0.1:18789

OpenClaw will indicate that the connection to the gateway is currently disconnected. Paste the token you copied earlier into the corresponding field in the Web UI settings.

OpenClaw Web UI disconnected missing token error

Move your mouse to the Overview menu. The Web UI will still show Offline and will not be functional. Paste the token you copied earlier into the Gateway Token field, then click the Connect button.

The Web UI will successfully connect to the gateway. You can interact with OpenClaw here and issue commands.

OpenClaw Web UI overview successful connection

OpenClaw will indicate that it is online. You can ask it questions—for example, “Hello?”, “What can you do for me?”, and it will respond accordingly.

OpenClaw Web UI chat greeting test
OpenClaw Web UI chat AI capabilities list

You can define OpenClaw’s identity and have it remember this information to better serve you.

OpenClaw Web UI AI assistant identity setup

At this point, the installation and setup are complete. Start your OpenClaw journey now.

Further reading:

Prev Post
Next Post

Leave a comment

Please note, comments need to be approved before they are published.

ACEMAGIC
ABOUT ACEMAGIC

ACEMAGIC is a consumer electronics brand focused on mini PCs, AI mini workstations, and Windows laptops. Since 2013 we’ve worked to put more computing power into smaller devices—so you can work, create, and play without a full-size tower taking over your desk.

Our slogan is “Mini Space, Big World.” From everyday office mini PCs to Ryzen AI Max+ local-AI machines and portable laptops, we design compact hardware that is practical to buy, set up, and use. Follow us for new products, guides, and updates.

Thanks for subscribing!

This email has been registered!

Shop the look

Choose Options

Edit Option
Have Questions?

Choose Options

this is just a warning
Login
Shopping Cart
0 items