- Published on
How to Install OpenClaw (formerly ClawdBot/Moltbot) on Windows
- Authors

- Name
- Stryxon
How to Install OpenClaw (formerly ClawdBot/Moltbot) on Windows
OpenClaw (formerly known as ClawdBot or Moltbot) is a powerful automation bot that helps streamline your workflow on Windows. This comprehensive guide will walk you through the complete installation process on Windows 10 and Windows 11, from prerequisites to advanced configuration.
Don't want to mess with the terminal?
Hire us to set up a secure OpenClaw instance for you.
Prerequisites
Before installing ClawdBot, ensure your system meets the following requirements:
- Windows 10 (version 1909 or later) or Windows 11
- Python 3.8 or higher
- Git for Windows
- At least 2GB of free disk space
- Administrator access for system-wide installation
- PowerShell 5.1 or later (included in Windows 10/11)
Step 1: Install Python for Windows
Download and install Python from the official website:
- Visit python.org/downloads
- Download Python 3.11 or later (64-bit version recommended)
- Run the installer
Important: During installation, make sure to check:
- ✅ "Add Python to PATH" (very important!)
- ✅ "Install pip"

Verify the installation by opening PowerShell and running:
POWERSHELLpython --version pip --version
If you see version numbers, Python is correctly installed.
Step 2: Install Git for Windows
ClawdBot requires Git to download and update the repository.
- Download Git from git-scm.com
- Run the installer with default options
- Choose "Git from the command line and also from 3rd-party software"
Verify Git installation:
POWERSHELLgit --version
Step 3: Install Visual C++ Build Tools (If Needed)
Some Python packages require compilation tools. Install Visual C++ Build Tools:
- Download from visualstudio.microsoft.com
- Run the installer
- Select "Desktop development with C++"
- Click Install (this may take 10-15 minutes)
Alternatively, for a lighter installation:
POWERSHELL# Using Chocolatey (if installed) choco install visualcpp-build-tools -y
Step 4: Clone the ClawdBot Repository
Open PowerShell and navigate to your desired installation directory:
POWERSHELLcd $HOME\Documents git clone https://github.com/clawdbot/moltbot.git cd moltbot
Note: Replace the repository URL with the actual ClawdBot/Moltbot repository if different.
Step 5: Create a Virtual Environment
It's best practice to use a virtual environment for Python projects:
POWERSHELLpython -m venv venv .\venv\Scripts\Activate.ps1
If you encounter an execution policy error:
POWERSHELLSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser .\venv\Scripts\Activate.ps1
Your prompt should now show (venv) indicating the virtual environment is active.

Step 6: Install ClawdBot
With the virtual environment activated, install ClawdBot and its dependencies:
POWERSHELLpython -m pip install --upgrade pip pip install -r requirements.txt
If ClawdBot is available on PyPI:
POWERSHELLpip install clawdbot
Step 7: Configure ClawdBot
Create a configuration directory:
POWERSHELLNew-Item -ItemType Directory -Force -Path "$HOME\.clawdbot" Copy-Item config.example.yml "$HOME\.clawdbot\config.yml"
Edit the configuration file with Notepad or your preferred editor:
POWERSHELLnotepad "$HOME\.clawdbot\config.yml"
Update the following settings:
- API keys (if required)
- Bot preferences and automation rules
- Notification settings
- Log file locations (use Windows paths like
C:\Users\YourName\...)
Step 8: Verify Installation
Test that ClawdBot is properly installed:
POWERSHELLclawdbot --version
Run a test command:
POWERSHELLclawdbot test
Step 9: Set Up Auto-Start with Task Scheduler
To have ClawdBot start automatically when you log in, create a scheduled task:
Method 1: Using Task Scheduler GUI
Press
Win + R, typetaskschd.msc, and press EnterClick "Create Task" in the right panel
General Tab:
- Name:
ClawdBot - Description:
Runs ClawdBot automation service - Check "Run whether user is logged on or not"
- Check "Run with highest privileges"
- Name:
Triggers Tab:
- Click "New"
- Begin the task: "At log on"
- Specific user: Your username
- Click OK
Actions Tab:
- Click "New"
- Action: "Start a program"
- Program:
C:\Users\YourName\Documents\moltbot\venv\Scripts\python.exe - Arguments:
-m clawdbot start - Start in:
C:\Users\YourName\Documents\moltbot - Click OK
Conditions Tab:
- Uncheck "Start the task only if the computer is on AC power"
Click OK to save the task
Method 2: Using PowerShell
Create a scheduled task with PowerShell:
POWERSHELL$action = New-ScheduledTaskAction -Execute "$HOME\Documents\moltbot\venv\Scripts\python.exe" ` -Argument "-m clawdbot start" ` -WorkingDirectory "$HOME\Documents\moltbot" $trigger = New-ScheduledTaskTrigger -AtLogOn $principal = New-ScheduledTaskPrincipal -UserId "$env:USERNAME" -LogonType Interactive -RunLevel Highest $settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries Register-ScheduledTask -TaskName "ClawdBot" ` -Action $action ` -Trigger $trigger ` -Principal $principal ` -Settings $settings ` -Description "ClawdBot Automation Service"
Step 10: Configure Windows Firewall (If Needed)
If ClawdBot requires network access, add a firewall rule:
POWERSHELLNew-NetFirewallRule -DisplayName "ClawdBot" ` -Direction Inbound ` -Protocol TCP ` -LocalPort 8080 ` -Action Allow
Troubleshooting
Issue: "Python is not recognized"
If Windows can't find Python:
- Search for "Environment Variables" in Windows
- Click "Environment Variables"
- Under "System Variables", find "Path"
- Click "Edit" and add:
C:\Users\YourName\AppData\Local\Programs\Python\Python311\C:\Users\YourName\AppData\Local\Programs\Python\Python311\Scripts\
Restart PowerShell after making changes.
Issue: PowerShell Execution Policy Error
If you can't activate the virtual environment:
POWERSHELLSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Issue: SSL Certificate Errors
If you encounter SSL errors:
POWERSHELLpip install --upgrade certifi python -m certifi
Issue: Module Not Found
Ensure your virtual environment is activated:
POWERSHELLcd $HOME\Documents\moltbot .\venv\Scripts\Activate.ps1 pip install -r requirements.txt
Issue: Permission Denied
Run PowerShell as Administrator:
- Right-click PowerShell icon
- Select "Run as Administrator"
- Navigate to your ClawdBot directory and retry
Issue: Long Path Error
Windows has a 260-character path limit. Enable long paths:
POWERSHELL# Run as Administrator New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Restart your computer for changes to take effect.
Issue: Antivirus Blocking ClawdBot
Some antivirus software may flag Python scripts. Add an exception:
Windows Defender:
- Open Windows Security
- Go to "Virus & threat protection"
- Click "Manage settings"
- Scroll to "Exclusions" and click "Add or remove exclusions"
- Add folder:
C:\Users\YourName\Documents\moltbot
Issue: Dependencies Compilation Fails
If pip fails to build packages:
POWERSHELL# Install pre-compiled wheels pip install --only-binary :all: package-name # Or install Visual C++ Build Tools as mentioned in Step 3
Updating ClawdBot
To update ClawdBot to the latest version:
POWERSHELLcd $HOME\Documents\moltbot .\venv\Scripts\Activate.ps1 git pull origin main pip install --upgrade -r requirements.txt
If using Task Scheduler, the scheduled task will automatically use the updated version.
Uninstalling ClawdBot
If you need to uninstall ClawdBot:
- Stop any running ClawdBot processes:
POWERSHELLGet-Process python | Where-Object {$_.Path -like "*moltbot*"} | Stop-Process
- Remove the scheduled task:
POWERSHELLUnregister-ScheduledTask -TaskName "ClawdBot" -Confirm:$false
- Remove the installation directory:
POWERSHELLRemove-Item -Recurse -Force "$HOME\Documents\moltbot"
- Remove configuration files:
POWERSHELLRemove-Item -Recurse -Force "$HOME\.clawdbot"
- (Optional) Uninstall Python if not needed elsewhere
Running ClawdBot Manually
To run ClawdBot manually instead of auto-start:
POWERSHELLcd $HOME\Documents\moltbot .\venv\Scripts\Activate.ps1 clawdbot start
To run in the background:
POWERSHELLStart-Process -NoNewWindow -FilePath "$HOME\Documents\moltbot\venv\Scripts\python.exe" ` -ArgumentList "-m clawdbot start"
Advanced Configuration
Running as a Windows Service
For production environments, run ClawdBot as a Windows Service using NSSM (Non-Sucking Service Manager):
POWERSHELL# Download NSSM Invoke-WebRequest -Uri "https://nssm.cc/release/nssm-2.24.zip" -OutFile "$HOME\Downloads\nssm.zip" Expand-Archive "$HOME\Downloads\nssm.zip" -DestinationPath "$HOME\Downloads\nssm" # Install service .\nssm.exe install ClawdBot "$HOME\Documents\moltbot\venv\Scripts\python.exe" "-m clawdbot start" .\nssm.exe set ClawdBot AppDirectory "$HOME\Documents\moltbot" .\nssm.exe start ClawdBot
Setting Up Logging
Configure ClawdBot to log to a file:
YAML# In config.yml logging: level: INFO file: C:\Users\YourName\Documents\moltbot\logs\clawdbot.log
View logs:
POWERSHELLGet-Content "$HOME\Documents\moltbot\logs\clawdbot.log" -Wait -Tail 50
Using Windows Terminal
For a better experience, consider using Windows Terminal:
- Install from Microsoft Store
- Configure PowerShell profile:
POWERSHELLnotepad $PROFILE
- Add ClawdBot alias:
POWERSHELLfunction Start-ClawdBot { cd "$HOME\Documents\moltbot" .\venv\Scripts\Activate.ps1 clawdbot start } Set-Alias clawdbot Start-ClawdBot
Conclusion
You now have ClawdBot (Moltbot) successfully installed and configured on your Windows system. The bot is set to start automatically on login and will help automate your daily workflows.
For further assistance:
- Official documentation: docs.clawdbot.io
- Windows-specific issues: GitHub Issues
- Community support: Discord server
Enjoy automated productivity on Windows!