Windows Setup Guide
Complete setup guide for Claude Code, VS Code, and Git/GitHub on Windows
This guide will walk you through setting up your Windows PC for development with Claude Code, VS Code, and Git/GitHub.
What You'll Install
- VS Code
- Claude Code CLI and Extension
- Git for Windows
- GitHub account and SSH keys
- Node.js
- Windows Terminal (recommended)
- Python or R (for data analysis)
Prerequisites
- Windows 10 or Windows 11
- Administrator access
- Internet connection
- About 75 minutes
Step 1: Install Windows Terminal (Recommended)
Windows Terminal is a modern, powerful terminal application.
1.1 Install from Microsoft Store
- Open Microsoft Store
- Search for "Windows Terminal"
- Click "Get" or "Install"
- Pin it to your taskbar for easy access
Alternative: Download from GitHub
Step 2: Install VS Code
2.1 Download and Install
- Visit https://code.visualstudio.com
- Click "Download for Windows"
- Run the installer (
.exefile) - Important: Check these boxes during installation:
- Add "Open with Code" action to Windows Explorer file context menu
- Add "Open with Code" action to Windows Explorer directory context menu
- Add to PATH (important!)
2.2 Verify Installation
Open Windows Terminal or Command Prompt and run:
code --versionYou should see the VS Code version number.
Step 3: Install Git for Windows
3.1 Download and Install
- Visit https://git-scm.com/download/win
- Download the installer
- Run the installer
3.2 Installation Options
Use these settings (most are defaults):
- Adjusting your PATH: "Git from the command line and also from 3rd-party software"
- Choosing HTTPS transport backend: "Use the OpenSSL library"
- Configuring the line ending conversions: "Checkout Windows-style, commit Unix-style line endings"
- Configuring the terminal emulator: "Use Windows' default console window"
- Choose a credential helper: "Git Credential Manager"
- Configuring extra options: Enable file system caching
3.3 Configure Git
Open Windows Terminal and run:
git config --global user.name "Your Name"git config --global user.email "your.email@example.com"Set VS Code as your default editor:
git config --global core.editor "code --wait"Set default branch to main:
git config --global init.defaultBranch mainConfigure line endings for Windows:
git config --global core.autocrlf trueCreate useful aliases:
git config --global alias.st statusgit config --global alias.co checkoutgit config --global alias.br branchgit config --global alias.cm commitVerify:
git --versiongit config --listStep 4: Set Up GitHub
4.1 Create GitHub Account
- Go to https://github.com
- Click "Sign up"
- Follow the prompts
4.2 Generate SSH Key
SSH keys provide secure authentication to GitHub.
Check for existing keys:
ls ~\.sshIf you see id_ed25519.pub, you already have a key. Skip to Step 4.3.
Generate a new key:
ssh-keygen -t ed25519 -C "your.email@example.com"When prompted:
- Press
Enterto accept the default location - Enter a passphrase (optional but recommended)
- Press
Enterto confirm
Start the SSH agent:
# Start the service (run as Administrator if needed)Get-Service -Name ssh-agent | Set-Service -StartupType ManualStart-Service ssh-agentAdd your key:
ssh-add ~\.ssh\id_ed255194.3 Add SSH Key to GitHub
Copy your public key:
Get-Content ~\.ssh\id_ed25519.pub | Set-ClipboardThis copies your key to the clipboard.
Add to GitHub:
- Go to https://github.com/settings/keys
- Click "New SSH key"
- Title: "My Windows PC" (or any name)
- Key type: Authentication Key
- Paste your key (Ctrl + V)
- Click "Add SSH key"
Test your connection:
ssh -T git@github.comYou should see: "Hi [username]! You've successfully authenticated..."
Step 5: Install Node.js
5.1 Download and Install
- Visit https://nodejs.org
- Download the LTS (Long Term Support) version
- Run the installer
- Accept all defaults
- Important: Check "Automatically install the necessary tools" for native modules
Verify:
node --versionnpm --versionStep 6: Install Claude Code
6.1 Install Claude Code Extension
- Open VS Code
- Click Extensions icon (or press
Ctrl + Shift + X) - Search for "Claude Code"
- Click "Install" on the official Anthropic extension
6.2 Install Claude Code CLI (Optional)
npm install -g @anthropic-ai/claude-code6.3 Sign In
- Click the Claude icon in VS Code sidebar
- Click "Sign in to Claude"
- Follow the authentication prompts
Step 7: Install Python (For Data Analysis)
7.1 Download and Install Python
- Visit https://www.python.org/downloads/
- Download Python 3.11.x (latest stable)
- Run the installer
- Important: Check "Add Python to PATH"
- Click "Install Now"
Verify:
python --versionpip --version7.2 Create a Virtual Environment
For your first project:
# Create project foldermkdir ~\projectscd ~\projectsmkdir my-first-projectcd my-first-project # Create virtual environmentpython -m venv venv # Activate it.\venv\Scripts\Activate.ps1You'll see (venv) in your prompt.
If you get an execution policy error:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser7.3 Install Data Science Packages
pip install pandas numpy matplotlib jupyterDeactivate when done:
deactivateStep 8: Install R (Optional - For R Users)
8.1 Install R
- Visit https://cran.r-project.org/bin/windows/base/
- Click "Download R x.x.x for Windows"
- Run the installer
- Accept all defaults
8.2 Install RStudio (Optional)
Download from https://posit.co/download/rstudio-desktop/
8.3 Install R Extension for VS Code
- Open VS Code Extensions
- Search for "R"
- Install the official R extension
Step 9: Clone Your First Project
9.1 Create Projects Folder
mkdir ~\projectscd ~\projects9.2 Clone Starter Repository
git clone git@github.com:yourusername/claude-code-integration.gitcd claude-code-integration9.3 Open in VS Code
code .9.4 Explore Templates
Check out:
CLAUDE.md- Project context for Claude.claudeignore- Context management.vscode\settings.json- VS Code configuration
Step 10: Verify Your Setup
Run these commands to check everything:
# VS Codecode --version # Gitgit --version # Node.jsnode --versionnpm --version # Pythonpython --version # SSH to GitHubssh -T git@github.comAll should work without errors!
Next Steps
You're ready to code! Choose your path:
- Learn Git: Git & GitHub Basics
- Data Analysis: Python or R track
- Build Apps: App Builder track
- Automate: Automation track
Troubleshooting
PowerShell Execution Policy
If scripts won't run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserCommand Not Found
If commands aren't recognized:
- Close and reopen Windows Terminal
- Check if the program is in PATH:
powershell$env:PATH -split ';'
- Restart your computer if needed
Git Authentication Issues
If git keeps asking for credentials:
- Verify SSH key:
ssh -T git@github.com - Use Git Credential Manager (should be installed with Git)
- Store credentials:
powershellgit config --global credential.helper manager
VS Code Can't Find Git
- Open VS Code settings (Ctrl + ,)
- Search for "git.path"
- Set to:
C:\Program Files\Git\cmd\git.exe
Python Not Found
If Python isn't recognized:
- Find Python installation:
powershellwhere python
- Add to PATH manually:
- Search "Environment Variables" in Windows
- Edit "Path" variable
- Add:
C:\Users\[YourUsername]\AppData\Local\Programs\Python\Python311
Windows-Specific Tips
PowerShell Useful Commands
# List filesls # Change directorycd path\to\folder # Create directorymkdir folder-name # Delete filerm file.txt # Clear screencls # Show command historyGet-HistoryKeyboard Shortcuts
-
Windows Terminal:
Ctrl + Shift + T: New tabCtrl + Shift + W: Close tabCtrl + Shift + D: Split pane
-
VS Code:
Ctrl + Shift + P: Command Palette- `Ctrl + ``: Toggle terminal
Ctrl + B: Toggle sidebar
Path Differences
Windows uses backslashes (\) in paths, but Git and many tools use forward slashes (/). PowerShell usually handles both.
Windows path:
C:\Users\YourName\projectsGit/Unix path:
/c/Users/YourName/projectsAdditional Tools (Optional)
Git Bash
Installed with Git for Windows. Provides a Unix-like terminal:
- Find it in Start Menu: "Git Bash"
- Right-click folder � "Git Bash Here"
WSL (Windows Subsystem for Linux)
For advanced users who want a full Linux environment:
wsl --installRestart required. Provides Ubuntu on Windows.
Windows Package Manager (winget)
Modern package manager for Windows:
# Already installed on Windows 11# Install VS Codewinget install Microsoft.VisualStudioCode # Install Pythonwinget install Python.Python.3.11Additional Resources
You're all set! Proceed to Git & GitHub Basics to learn version control.