How To Install Claude Code on Windows 11

Claude Code is a powerful AI programming assistant that lets developers write, debug, and refactor code with natural language commands. Whether you’re a seasoned engineer or just starting out, installing Claude Code on Windows 11 is quick and straightforward. In this guide, we’ll walk through every step, from prerequisites to running your first AI‑generated snippet.

Why Claude Code?

Claude Code offers:

Prerequisites

  1. Windows 11 (64‑bit) – the guide assumes the latest updates.
  2. Administrator privileges – required for installing system packages.
  3. Internet connection – for downloading the installer and API keys.
  4. Python 3.9+ (optional) – if you plan to run the CLI directly.

Step 1: Install the Claude Code Extension for VS Code

While Claude Code can be used via the command line, the most user‑friendly method is through Visual Studio Code.

  1. Open Visual Studio Code.
  2. Navigate to the Extensions view by clicking the square icon or pressing Ctrl+Shift+X.
  3. Search for "Claude Code" and locate the official extension.
  4. Click Install, then Reload when prompted.

Step 2: Sign Up for an API Key

Claude Code requires an API key from the Claude platform. Follow the instructions in the Substack article to obtain one.

  1. Visit the Claude website and create a free account.
  2. Navigate to the API Keys section.
  3. Generate a new key and copy it to your clipboard.
  4. In VS Code, open the command palette with Ctrl+Shift+P and type Claude: Set API Key.
  5. Paste the key and confirm.

Step 3: Configure the Extension

After setting the API key, customize Claude Code to fit your workflow.