Skip to content

Instantly share code, notes, and snippets.

@avisek
Created May 15, 2026 17:31
Show Gist options
  • Select an option

  • Save avisek/a50ba7ccc251de652fd0b9366cd735b4 to your computer and use it in GitHub Desktop.

Select an option

Save avisek/a50ba7ccc251de652fd0b9366cd735b4 to your computer and use it in GitHub Desktop.

Setup Claude Code on Windows (WSL)

Add Ubuntu

Install Ubuntu from the Microsoft Store or via WSL.

Add CURL and More

sudo apt install curl wget unzip zip build-essential

Install NVM

Follow the instructions at: https://github.com/nvm-sh/nvm

Install Node (npm)

nvm install --lts

nvm use latest

Install Git

sudo apt update
sudo apt install git

git config --global user.name "Your Name"
git config --global user.email "your@email.com"

Install GitHub CLI

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null

sudo apt update
sudo apt install gh

gh auth login

Install Claude Code

npm install -g @anthropic-ai/claude-code

Clone Your Project

git clone https://github.com/your-user/your-repo.git
cd your-repo/

Run Claude Code

From your project folder, just run:

claude

You can also use /ide open inside Claude Code to open your editor.

Also: You can run any project (even if not inside WSL) just by selecting the "WSL" in the terminal tab from your IDE, it may be a bit slower, but works as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment