Active Development
Complete Guide: Setting Up Claude Code, OpenClaw & ClawdBot on Windows
Tutorials
Trending

Complete Guide: Setting Up Claude Code, OpenClaw & ClawdBot on Windows

Step-by-step PowerShell instructions for installing and configuring the most powerful AI coding assistants on your Windows development environment.

C

Charles Kim

Conversational AI Lead at HelloFresh

18 min readJan 15, 202628.4k views
Claude Code
Windows
PowerShell
Setup Guide
MCP

If you've been following the AI coding assistant space, you've probably heard whispers about Claude Code, OpenClaw, and ClawdBot. These tools represent a new paradigm in how developers interact with AI—moving from chat interfaces to fully autonomous coding agents that live in your terminal.

In this guide, I'll walk you through setting up each of these tools on Windows using PowerShell, with step-by-step instructions and screenshots.

AI Coding Tools
The new generation of AI coding assistants runs directly in your terminal.

What Are These Tools?

Before we dive into setup, let's understand what each tool does:

Claude Code (Official Anthropic CLI)

Claude Code is Anthropic's official command-line interface for Claude. It allows you to:

  • Have conversations with Claude directly in your terminal
  • Give Claude access to your codebase for context-aware assistance
  • Let Claude read, write, and execute code autonomously
  • Use MCP (Model Context Protocol) servers for extended functionality

OpenClaw

OpenClaw is an open-source alternative that provides similar functionality with additional customization options:

  • Self-hosted option for enterprise environments
  • Plugin architecture for extensibility
  • Support for multiple LLM backends
  • Community-driven development

ClawdBot (MCP Bot Framework)

ClawdBot is a bot framework built on MCP that enables:

  • Automated workflows triggered by events
  • Integration with Slack, Discord, and other platforms
  • Scheduled AI tasks
  • Multi-agent coordination

Prerequisites

Before we begin, ensure you have the following installed on your Windows machine:

RequirementVersionPurpose
Windows 10/1121H2+Operating system
PowerShell7.0+Command-line interface
Node.js18.0+JavaScript runtime
Git2.40+Version control
VS CodeLatestCode editor (optional)

Part 1: Installing Claude Code on Windows

Step 1: Open PowerShell as Administrator

Press Win + X and select "Windows Terminal (Admin)" or search for PowerShell and run as administrator.

PowerShell Admin
Always run installation commands with administrator privileges.

Step 2: Install Node.js (if not already installed)

powershell
# Check if Node.js is installed
node --version

# If not installed, use winget
winget install OpenJS.NodeJS.LTS

Step 3: Install Claude Code via npm

powershell
# Install Claude Code globally
npm install -g @anthropic-ai/claude-code

# Verify installation
claude --version

Step 4: Authenticate with Anthropic

powershell
# Start the authentication flow
claude auth login

# This will open your browser to authenticate
# Follow the prompts to connect your Anthropic account

Step 5: Configure Your Environment

powershell
# Set your preferred editor
claude config set editor "code"

# Enable extended thinking for complex tasks
claude config set extended_thinking true

# Set default model
claude config set model "claude-sonnet-4"

Step 6: Test Your Installation

powershell
# Start an interactive session
claude

# Or run a one-off command
claude "Explain what this PowerShell script does" -f ./script.ps1

Part 2: Setting Up OpenClaw

OpenClaw provides more flexibility for custom deployments. Here's how to set it up:

Step 1: Clone the Repository

powershell
# Navigate to your projects directory
cd C:\Projects

# Clone OpenClaw
git clone https://github.com/openclaw/openclaw.git
cd openclaw

Step 2: Install Dependencies

powershell
# Install Node.js dependencies
npm install

# Copy the example environment file
Copy-Item .env.example .env

Step 3: Configure API Keys

Open the .env file and add your API keys:

powershell
# Open in VS Code
code .env

Add your configuration:

ANTHROPIC_API_KEY=sk-ant-xxxxx
OPENAI_API_KEY=sk-xxxxx
DEFAULT_MODEL=claude-sonnet-4

Step 4: Build and Run

powershell
# Build the project
npm run build

# Start OpenClaw
npm start

# Or install globally
npm link
openclaw

Part 3: Deploying ClawdBot

ClawdBot is perfect for automated workflows. Let's set it up:

Step 1: Install ClawdBot

powershell
# Install via npm
npm install -g clawdbot

# Initialize a new bot project
mkdir my-clawdbot
cd my-clawdbot
clawdbot init

Step 2: Configure the Bot

powershell
# Edit the configuration
code clawdbot.config.json

Example configuration:

json
{
  "name": "MyDevBot",
  "model": "claude-sonnet-4",
  "triggers": [
    {
      "type": "schedule",
      "cron": "0 9 * * *",
      "action": "daily_code_review"
    },
    {
      "type": "webhook",
      "path": "/github",
      "action": "pr_review"
    }
  ],
  "integrations": {
    "slack": {
      "enabled": true,
      "channel": "#dev-notifications"
    }
  }
}

Step 3: Start the Bot

powershell
# Run in development mode
clawdbot dev

# Run in production
clawdbot start --daemon

Feature Comparison Table

FeatureClaude CodeOpenClawClawdBot
Official SupportYesCommunityCommunity
Self-HostedNoYesYes
Multi-ModelClaude onlyMultipleMultiple
MCP SupportFullPartialFull
AutomationManualManualAutomated
IDE IntegrationVS CodeMultipleN/A
PriceAPI costsFree + APIFree + API
Best ForIndividual devsEnterpriseDevOps/Bots

Troubleshooting Common Issues

Issue: "claude is not recognized as a command"

powershell
# Refresh your PATH
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")

# Or restart PowerShell

Issue: Authentication Errors

powershell
# Clear cached credentials
claude auth logout
claude auth login

# Check your API key
claude config get api_key

Issue: Permission Denied

powershell
# Set execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

# Run as administrator if needed
Start-Process powershell -Verb runAs

Best Practices

  1. Always use virtual environments for project-specific configurations
  2. Keep your API keys secure - never commit them to version control
  3. Use .claudeignore files to exclude sensitive directories
  4. Enable logging for debugging complex interactions
  5. Set spending limits on your Anthropic account
Best Practices
Following best practices ensures a smooth AI-assisted development experience.

What's Next?

Now that you have these tools set up, explore:

  • MCP Servers - Extend Claude's capabilities with custom tools
  • Custom Commands - Create shortcuts for common workflows
  • Team Sharing - Share configurations across your team
  • CI/CD Integration - Automate code reviews and documentation

*Have questions about setting up these tools? Drop me a message on LinkedIn.*

C

Charles Kim

Conversational AI Lead at HelloFresh

Charles Kim brings 20+ years of technology experience to the AI space. Currently leading conversational AI initiatives at HelloFresh, he's passionate about vibe coding and generative AI—especially its broad applications across modalities. From enterprise systems to cutting-edge AI tools, Charles explores how technology can transform the way we work and create.

More from Charles Kim

The Enterprise AI Paradox: Why 70% of AI Projects Fail and How to Beat the Odds
Trending

After advising dozens of Fortune 500 companies on AI adoption, I've identified the critical patterns that separate successful implementations from expensive failures.

CCharles Kim
15.4k
Why Multi-Model Architectures Are the Future of Production AI
Trending

Single-model deployments are leaving performance and cost savings on the table. Here's the architectural pattern that's changing how we build AI systems.

CCharles Kim
12.3k
Why AI Ethics Is Now a Competitive Advantage, Not a Constraint

The companies treating responsible AI as a checkbox are about to learn an expensive lesson. Those treating it as strategy are pulling ahead.

CCharles Kim
8.9k