Step 1 of 10

Your Personal AI.
Running on Your Mac. Running on Windows.

This guide walks you through a secure setup. One step at a time.

📖 What you'll do:

1. Download a simple install script

2. Run it in Terminal (we'll show you how)

3. Answer a few questions

4. Start chatting with your AI

Estimated time: 15-20 minutes

📖 What you'll do:

1. Download a PowerShell installer

2. Right-click → Run as Administrator

3. Wait ~20-40 minutes (fully automatic)

4. Open Ubuntu and answer a few questions

5. Start chatting with your AI

🪟 Heads up: Linux terminal incoming

OpenClaw runs inside Ubuntu (Linux) on Windows. After the installer finishes, a Ubuntu terminal will open — that's normal and expected. We'll walk you through it step by step.

Estimated time: 20-40 minutes

Step 2 of 10

Before You Start

Make sure you have everything ready.

✅ Pre-Install Checklist
✅ Pre-Install Checklist
Step 3 of 10

Choose Your Setup Path

How do you want to run your AI?

Dedicated Mac

Use a Mac Mini or old MacBook dedicated to running OpenClaw 24/7. Best for always-on personal AI.

Recommended for production use.

Step 4 of 10

Download the Installer

Click the button below to download the install script.

File will download to your Downloads folder

Advanced: Use curl command instead

If you prefer the one-line install, copy this command:

curl -fsSL https://raw.githubusercontent.com/jeremyknows/clawstarter/main/openclaw-autosetup.sh | bash

Then skip to "Step 6: Run the Script".

openclaw-windows-setup.ps1 · Downloads to your Downloads folder

Step 5 of 10

Open Terminal Run the Installer

Terminal is a built-in Mac app. Here's how to find it. Right-click the downloaded file and run it as Administrator.

👉 How to open Terminal:

1. Hold ⌘ Command and press Space

2. Type "Terminal"

3. Press Enter

⚠️ Must run as Administrator

WSL2 installation requires Administrator access. The script will fail if you open it normally.

👉 How to run the script:

1. Open your Downloads folder in File Explorer

2. Find openclaw-windows-setup.ps1

3. Right-click the file

4. Select "Run with PowerShell"

5. When Windows asks "Do you want to allow changes?", click Yes

🛡️ Seeing a Windows SmartScreen warning?

Windows shows this warning for scripts that haven't been digitally signed yet. This is normal for open-source installers.

To proceed safely:

  1. Click "More info" (small text below the warning)
  2. Click "Run anyway"
  3. Click Yes when asked for Administrator permission

Why is this safe? This script installs official Microsoft software (WSL2) and Ubuntu from Canonical. The script source code is open at github.com/jeremyknows/clawstarter.

❓ "Run with PowerShell" not in the right-click menu?

Open PowerShell as Administrator manually:

  1. Press Win key, type PowerShell
  2. Right-click "Windows PowerShell" → Run as Administrator
  3. In PowerShell, type:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; cd ~\Downloads; .\openclaw-windows-setup.ps1
Last login: Mon Feb 15 14:30:00 on ttys000
YourMacBook:~ yourname$

↑ This is what Terminal looks like

Navigate to Downloads

Copy and paste this command in Terminal, then press Enter:

cd ~/Downloads
Step 6 of 10

Run the Script Complete Setup in Ubuntu

Now we'll run the installer. The installer opened Ubuntu. Run one more command to finish.

⚠️ Don't Close Terminal or Press ⌘C

Keep Terminal open until you see "SUCCESS!" — closing it or pressing ⌘ Command + C will cancel the installation.

bash install.sh
👉 What to do:

1. Make sure Terminal is active (click on it)

2. Hold ⌘ Command and press V to paste

3. Press Enter

ℹ️ What the script is doing

The PowerShell window is automatically installing:

  1. WSL2 — Windows Subsystem for Linux (Microsoft's official Linux layer)
  2. Ubuntu 22.04 — A Linux environment where OpenClaw will run
  3. Node.js — The runtime OpenClaw needs
  4. OpenClaw — Your AI agent

You don't need to do anything — just leave the PowerShell window open.

⚠️ Your PC may restart automatically

If this is the first time WSL2 is installed on your PC, Windows needs a restart to finish. The script will tell you and ask if you want to restart now (type y).

💾 Save any open work before clicking Next!

After restart, come back to this page — the installer will resume automatically.

⏱️ This takes 20-40 minutes

Most of the time is downloading Ubuntu (~500MB). The PowerShell window shows progress.

Don't close the PowerShell window. You'll see a "Setup complete" message when it's done.

Step 7 of 10

Watch It Install Set Up Ubuntu & Run OpenClaw

The script is running. Here's what you'll see. Almost there — two quick steps in the Ubuntu window.

ℹ️ What to Expect

The script will ask you to confirm each step. You'll see prompts like:

? Ready to begin? [y/N]:

Type y and press Enter to continue. You'll do this ~5-6 times during setup.

🔐 PASSWORD PROMPT HEADS-UP

When macOS asks for your password, YOU WON'T SEE ANYTHING when you type.

No dots, no stars, nothing. This is normal! Look for the 🔐 keyhole icon in your menu bar — that means macOS is waiting. Just type your password and press Enter.

═══════════════════════════════════════════════════════════════
Installing Homebrew...
═══════════════════════════════════════════════════════════════
[Text scrolling by — this is normal]
⏱️ This takes 2-5 minutes

You'll see text scrolling — that's the script installing Homebrew, Node.js, and OpenClaw.

Don't close Terminal. Just wait for the next prompt.

💡 Already have Homebrew or Node.js? The script will detect and skip those steps automatically.

🐧 What is Ubuntu?

Ubuntu is a mini Linux computer that lives inside Windows. OpenClaw runs inside it — this is totally normal and safe. You'll see a black terminal window; think of it like a command prompt with a different look.

Part 1 — Create your Ubuntu username & password

⚠️ Ubuntu needs a one-time account setup

When Ubuntu opens for the first time, it asks you to create a username and password inside Ubuntu. This is separate from your Windows password — you can use anything you like.

Note: When typing the password, nothing will appear on screen. This is normal — just type it and press Enter.

👉 What to do:

1. Look for the Ubuntu terminal window (black, with text like Enter new UNIX username:)

2. Type a username (e.g. your first name, lowercase, no spaces) → press Enter

3. Type a password → press Enter

4. Type the password again to confirm → press Enter

Enter new UNIX username: yourname
New password:
Retype new password:
passwd: password updated successfully
yourname@DESKTOP-XYZ:~$

↑ Once you see your prompt like above, Ubuntu is ready.

Part 2 — Run the OpenClaw setup

Copy this command, paste it into the Ubuntu terminal, and press Enter:

openclaw onboard --install-daemon
👉 To paste in Ubuntu terminal:

1. Click inside the Ubuntu window

2. Press Ctrl+Shift+V (Shift+V — not just V)

3. Press Enter

⚠️ The onboarding wizard will ask questions

It will ask for your AI provider API key and a few settings. For most questions, press Enter to accept the default.

Save the gateway token it shows you — you'll need it to connect to the dashboard.

❓ Ubuntu window didn't open after install?

Open Ubuntu manually:

  1. Press the Win key
  2. Type Ubuntu
  3. Click Ubuntu 22.04

Complete the username/password setup (Part 1 above), then run openclaw onboard --install-daemon

Step 8 of 10

Answer the Questions

The OpenClaw setup wizard will ask you a few questions.

ℹ️ What You'll Be Asked

The wizard will guide you through setup. Here's what to expect:

  • AI Provider: Choose OpenRouter (recommended, $5-10 to start) or Anthropic
  • API Key: Paste your OpenCode Zen or OpenRouter key (or press Enter to skip for now)
  • Gateway Port: Accept the default (18789)
  • Install Daemon: Say yes (keeps your bot running 24/7)

For most questions: Press Enter to accept the default.

⚠️ SAVE THE GATEWAY TOKEN

When you see a long random string (the gateway token), COPY IT SOMEWHERE SAFE.

You'll need this token to connect to the dashboard. Think of it like a password for your bot.

💡 Don't have a place to save it? Paste it into Notes, Messages, or take a screenshot.

🔑 Don't have an API key? Get one now

🆓 OpenCode Zen — Free models (payment method required)

Free models available (Kimi K2.5, MiniMax, GLM) — $0/month if you stick to free models, but a credit card is required to sign up.

  1. Go to opencode.ai/auth
  2. Sign up with email or GitHub
  3. Copy your API key from the dashboard
  4. Paste it when the installer asks for your key

💡 The default model (Kimi K2.5 Free) runs at $0/month until you choose to upgrade.

💳 OpenRouter — More models, pay-as-you-go

Best if you want access to GPT-4o, Claude, Gemini, and hundreds of other models.

  1. Go to openrouter.ai/keys
  2. Sign up with email or Google
  3. Add $5-10 in credits
  4. Create an API key (starts with sk-or-v1-)
  5. Save it somewhere safe! You won't be able to see it again.
  6. Paste it when the installer asks for your key

💡 Typical Costs (OpenRouter)

  • Simple chats: ~$0.01 each
  • Complex tasks: ~$0.05-0.10 each
  • Most users spend $5-15/month

You control your budget — set a spending limit in OpenRouter settings.

⚙️ If You See "OpenClaw Config Wizard"

Press ESC to skip it

The Config Wizard asks 20+ questions about tool permissions. ClawStarter already has a curated config — skipping saves 10 minutes and uses safer defaults.

Step 9 of 10

🎉 You're Live!

Your bot is running. Here's what you'll see.

✓ Creating config file...
✓ Setting up workspace...
✓ Installing LaunchAgent...
✓ Starting gateway...

🎉 SUCCESS! Your bot is alive.

Dashboard: http://127.0.0.1:18789/
Gateway token: [long random string]

Save the token somewhere safe!
🎊 Celebration!

Your personal AI is now running.

👉 What to do:

1. Hold ⌘ Command and press A to select all the Terminal output

2. Hold ⌘ Command and press C to copy

3. Save it in Notes or a password manager

4. Click the dashboard URL or copy it to your browser:

http://127.0.0.1:18789/
Step 10 of 10

Now What?

Your bot is ready. Here's what to do next.

🎉 You're all set!

Your bot is running! It will ask you personalization questions to learn your preferences.

💡 If you created a separate user account: You can now log back into your main account. Your bot keeps running in the background — access it at http://127.0.0.1:18789/ from any account on this Mac.

💡 OpenClaw runs inside Ubuntu. To use it in the future:

  1. Press Win key → type Ubuntu → open Ubuntu 22.04
  2. Run openclaw gateway start if the gateway isn't running
  3. Open http://127.0.0.1:18789 in your browser

Your files live at \\wsl$\Ubuntu-22.04\home\[username]\.openclaw\ in Windows Explorer.

🔑 Connecting to the Dashboard

The terminal showed you a gateway token — think of it like a password that lets you control your bot.

  1. Open the dashboard: http://127.0.0.1:18789
  2. Click Control UI (top-right corner)
  3. Paste your gateway token
  4. Click Connect
❓ Troubleshooting

Don't see the token?

jq -r '.gateway.token' ~/.openclaw/openclaw.json

Dashboard shows "disconnected (1008): unauthorized"?

The token is missing or incorrect. Find it with the command above, then paste it in Control UI.

Dashboard won't load at all?

Check if the gateway is running:

openclaw gateway status

If not running, start it:

openclaw gateway start

Port not listening?

Wait 10-15 seconds for the gateway to start, then refresh. Still not working? Restart:

openclaw gateway restart
⚠️ Security: The gateway token grants full control of your bot.
  • Don't share screenshots of the terminal during setup
  • Don't commit openclaw.json to git
  • Regenerate if exposed: openclaw doctor --generate-gateway-token
🔒 Want additional security for API keys?

Current setup: Your API keys are stored in the LaunchAgent (as environment variables) and cached in openclaw.json for performance. File permissions (chmod 600) protect them, but they're readable if someone gets access to your account.

Enhanced security options:

  • macOS Keychain: Store keys in the system Keychain (encrypted, requires user password)
  • 1Password CLI: Reference keys like op://vault/item/field (never written to disk)

Both methods are covered in Foundation Playbook Phase 1 (included in the download). Setup takes ~5 minutes and eliminates plaintext credential storage.

For most personal use cases, the default setup is sufficient. Consider upgrading if you're handling sensitive data or deploying on a shared machine.

💬 Join the OpenClaw Community

Get help, share tips, and connect with other OpenClaw users!

Join Discord →

Try your first prompt:

Read BOOTSTRAP.md and run through the setup questions with me.

This tells your bot to read the personalization file and ask you questions to learn who you are and how to help you.

Add a chat channel

Paste these prompts into your bot's chat (the web dashboard you just opened):

🎊 Congratulations! You've completed the setup.

← Back to Home

🔧 Troubleshooting

Common Errors

🚨 "Permission denied" error

Fix: Run the script with sudo:

sudo bash install.sh

You'll be asked for your password. Type it (you won't see it) and press Enter.

🚨 "Command not found" error

This means: Homebrew isn't in your PATH yet.

Fix: Close Terminal and open a new window, then try again.

If that doesn't work, run:

eval "$(/opt/homebrew/bin/brew shellenv)"
🚨 "Connection refused" when opening dashboard

This means: The gateway didn't start.

Fix: Start it manually:

openclaw gateway start

Wait 10 seconds, then try opening the dashboard again.

🚨 Bot isn't responding

Check if gateway is running:

openclaw gateway status

If stopped, start it:

openclaw gateway start

Check logs for errors:

tail -n 50 ~/.openclaw/logs/gateway.err.log
🚨 "API key invalid" error

Common causes:

  • Extra spaces before/after the key when you pasted it
  • Copied the wrong key (check it starts with sk-or-v1- for OpenRouter or sk-ant- for Anthropic)
  • Key was revoked or deleted from provider dashboard

Fix: Re-run the setup and paste the key carefully.

🗑️ How do I remove everything?

Complete uninstall steps:

  1. Stop the bot:
    openclaw gateway stop
  2. Remove OpenClaw:
    npm uninstall -g openclaw
  3. Delete config:
    rm -rf ~/.openclaw
  4. (Optional) Remove the Mac user account you created for testing
🆘 Still Stuck? Ask Claude for Help

If none of the above works, copy this prompt and paste your error into Claude.ai:

I'm setting up OpenClaw on my Mac using ClawStarter and hit this error: [paste error here] I'm on macOS [your version]. Help me fix it.

Go to claude.ai, paste the prompt, replace [paste error here] with your actual error, and send.