Installation & Deployment ✅ Beginner

Ollama + OpenClaw Quick Start | Windows

A Windows-only guide: using WSL + Node 22 and Ollama's free cloud quota to get OpenClaw talking — no API key setup required at all.

📝 建立:2026年3月4日 ✅ 最後驗證:2026年3月4日
鴨編 卡住很正常——點段落旁的 😵 卡關 讓我們知道,或直接往下滾到問答區發問。 也可以用 👍 看懂 / 😢 看不懂 告訴我們哪裡寫得好、哪裡要改。

Ollama + OpenClaw — happily working alongside AI

Duck Editor Windows users, read this first: On Windows, OpenClaw runs through WSL (Windows Subsystem for Linux). This is Microsoft’s officially supported approach and is far more stable than a native Windows environment. The whole process takes about 15 minutes — just follow along and you’ll be fine.


Prerequisites

  • Windows 10 (version 2004 or later) or Windows 11
  • An internet connection
  • No API key needed

Step 1: Install WSL

Open PowerShell as Administrator (search for PowerShell in the Start menu, right-click, and choose “Run as administrator”):

Opening PowerShell as administrator

Type the install command:

wsl --install

PowerShell running the wsl --install command

When it finishes, reboot.

Reboot prompt screen

After rebooting, WSL automatically continues installing Ubuntu. During this step it asks you to set a Linux username and password (these credentials are only used inside WSL — set anything you like, but remember it):

WSL Ubuntu first-launch setup for username and password

🚨 If wsl --install does nothing, you may need to enable Virtualization in your BIOS first. For detailed steps, see the Windows WSL Setup Guide.

Confirm WSL installed successfully:

wsl --version

Step 2: Install Node.js 22 in WSL

Be sure to install Node 22 — too old a version will stop OpenClaw from working properly.

In the WSL terminal (Ubuntu), first install nvm (the Node version manager):

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

WSL terminal running the nvm install command

Once installed, close and reopen the terminal (so nvm takes effect), then install Node 22:

nvm install 22
nvm use 22
nvm alias default 22

WSL terminal installing Node 22

Confirm the version is correct — it must be v22.x.x:

node --version

Terminal showing node --version as v22.x.x

🚨 If it shows an old version, run nvm use 22 and check again. If the nvm command isn’t found, close and reopen the terminal and try again.


Step 3: Install OpenClaw

In the WSL terminal, run:

npm install -g openclaw

WSL terminal running npm install -g openclaw

Verify after installation:

openclaw --version

Terminal showing the openclaw version number


Step 4: Install Ollama in WSL

Run the one-line install script directly in the WSL terminal:

curl -fsSL https://ollama.com/install.sh | sh

Confirm the version after installation:

ollama --version

Confirm the Ollama service is running (it starts automatically after install):

curl http://localhost:11434/api/tags

If you see a JSON response, Ollama is running fine.


Step 5: Run ollama launch openclaw

In the WSL terminal, type:

ollama launch openclaw

WSL terminal running ollama launch openclaw


Step 6: Authenticate Your Ollama Account

The first run asks you to log in to your Ollama account to use the free cloud quota. The screen shows a verification link or a QR code:

Terminal showing the Ollama login prompt and link

  1. Copy the URL shown in the terminal and open it in your Windows browser (or scan the QR code)
  2. Sign in to Ollama with your Google account

Browser opening the Ollama login page

Browser showing authentication success — you can close this page

Back in the terminal, the launch process continues once authentication is done.


Step 7: Pick a Model and Start Chatting

When the model menu appears, choose “Cloud” to use Ollama’s free cloud models — no local download required:

OpenClaw model selection list (choose Cloud)

Duck Editor Recommended cloud models:

ModelStrengths
minimax-m2.5🥇 Tested pick: best tool-calling ability, excellent on Agent tasks
kimi-k2.51T parameters, strong conversation quality
glm-4.7General-purpose, stable and reliable

Note: these models are fine for playing around, but if you want to roll them into a real workflow, it’s better to switch to mainstream models like Claude or GPT-4o — there’s still a clear gap in stability and tool-use reliability.

OpenClaw ready screen

When the ready screen appears, you’ve launched it successfully!

Try typing:

Hi! I'm the owner here. Please introduce yourself in English — who you are and what you can do.
Also, pick a distinctive name for yourself!

OpenClaw first conversation screen (Windows)

Congratulations 🎉 Your lobster is officially up and running on Windows!


FAQ

🚨 curl to Ollama Gets No Response

The Ollama service may not have started yet. Start it manually:

ollama serve &

Then re-run curl http://localhost:11434/api/tags to confirm.

🚨 nvm Command Not Found

# Reload your shell config
source ~/.bashrc
# or
source ~/.zshrc

🚨 npm install Shows Permission Denied

Don’t use sudo npm install -g. Use the Node installed via nvm and you won’t have permission problems.

🚨 The Model Replies in a Language You Don’t Want

Just tell it: “Please reply in English,” and it’ll switch.


About the Free Quota

Ollama’s cloud models come with a free quota (official details):

  1. Go to ollama.com/settings and sign in with your Google account
  2. There you can see your remaining free quota and usage

Out of quota? You can switch to the Gemini Flash cloud API.


Next Steps

Questions? Join the homepage discussion and let’s talk!

這篇文章對你有幫助嗎?

💬 問答區

卡關了?直接在這裡問,其他讀者和作者都能幫忙解答。

載入中...