Free | No tracking | Every fact with a source|German and English

Set Up Claude Code on Windows

Install Claude Code, sign in, and use it safely — in the command line, in the Claude desktop app window, and in VS Code. Includes permissions, key commands, privacy, and solutions for typical Windows errors.

Claude Code is a programming agent from Anthropic: You describe what you want, and Claude reads your project, changes files, runs commands, and explains what it is doing. It runs on Windows directly in PowerShell, in the Code tab of the Claude desktop app, and as an extension in VS Code. By the end of this guide, you’ll have Claude Code installed, know the most important commands, and know how to configure it safely. Time needed: about 20 minutes.

Important upfront: Claude Code does not run locally on your graphics card. The models run at Anthropic, and everything Claude reads from your project is sent there. What it costs and what the privacy setup looks like is on the Claude Code page. An alternative that runs completely on your PC is at the end.

What you need

  • Windows 10 (version 1809 or later) or Windows 11, 64-bit
  • At least 4 GB RAM and an internet connection
  • A Claude subscription (Pro, Max, Team, or Enterprise) or an Anthropic Console account with credit. Claude Code does not work with the free Claude account.
  • Recommended: Git for Windows. This lets Claude Code use Git Bash and manage changes in Git. Without Git, it uses PowerShell.
  • You do not need administrator rights.

1. Install Claude Code

  1. Open PowerShell (Windows key, type “PowerShell”). You’ll recognize it by PS C:\ at the start of the line.
  2. Paste this command and press Enter:
irm https://claude.ai/install.ps1 | iex
  1. The installer does not show a progress bar — wait until the prompt appears again.
  2. Close PowerShell and open it again. Then check the installation:
claude --version

If you see a version number, everything worked. If there are problems, claude doctor can help.

Other ways: In the classic Command Prompt (CMD, no PS at the start of the line), the command is curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd. You can also use winget install Anthropic.ClaudeCode — but then Claude Code will not update itself (winget upgrade Anthropic.ClaudeCode).

2. Sign in

  1. Change to a project folder, for example:
cd C:\Projekte\meine-webseite
  1. Start Claude Code with claude.
  2. On first launch, the browser opens. Sign in with your Claude account (or your Console account if you want to pay per token).
  3. Back in PowerShell, you’ll see the version, model, and working folder at the top.

You can switch accounts later with /login, and sign out with /logout.

3. First steps

Just write in German what you want. Claude reads the needed files on its own — you do not need to paste anything in.

  • What does this project do? Explain the folder structure.
  • Add validation on the contact page so the email address is valid.
  • This error happens on startup: … Find the cause and fix it.

Before every change, Claude shows you what it plans to do and asks for approval (see step 4).

Tip for getting started: Use /init to create a CLAUDE.md file. It contains the most important info about your project (structure, commands, rules). Claude reads it every time it starts and then works more precisely. You can add to it anytime with /memory, for example: “Reply in German” or “Never change files in the vendor folder.”

4. Permissions: How much can Claude do on its own?

Use Shift + Tab to switch between modes. The current one appears at the bottom of the input line.

ModeWhat Claude may do without askingWhen it makes sense
Manual (default)read onlyat the beginning and in important projects
acceptEditschange files, simple file commandsif you check the changes anyway
planread only and suggest a planfor larger changes: plan first, then implement
autoalmost everything, with background safety checksif you trust Claude and have Git as a backup

There is also a mode with no prompts at all. According to Anthropic, that is only meant for isolated test environments — you should not use it on your normal PC.

Safety: Back up your project with Git before major changes (or copy the folder). Read commands before you allow them — especially anything that deletes, installs, or sends something to the internet. Do not give Claude passwords or keys in the chat.

5. The most important commands

CommandWhat it does
/helpshow all commands (or just type /)
/initcreate CLAUDE.md with project info
/memoryedit CLAUDE.md
/modelswitch models (Opus, Sonnet, Haiku)
/usageshow usage and limits for your plan
/clearstart a new conversation
/compactsummarize a long conversation to save space
/resumecontinue an earlier conversation (or use claude -c at startup for the last one)
/configopen settings
/exitquit

6. Claude Code in a window: desktop app and VS Code

Claude desktop app: If you prefer a window over the command line, use the Code tab in the Claude desktop app. Download it from claude.com/download (Windows has x64 and ARM64 versions), sign in, and choose Code at the top. There you choose a project folder and work like you would in the command line — just with a mouse and a clear view of changes. Sessions can run locally, in WSL, or in the cloud.

VS Code: In VS Code (version 1.94 or later), install the Claude Code extension from the Marketplace. Then open Claude through the icon in the sidebar and see changes directly as a comparison in the editor. The extension also works in Cursor and other VS Code derivatives.

7. Keep it up to date

With the installer from step 1, Claude Code updates itself in the background; the new version takes effect the next time you start it. To update immediately, use claude update. Under /config, you can choose the channel: latest (newest version) or stable (about one week older, tested version).

8. Privacy: What leaves your PC?

  • Everything Claude reads and writes is sent encrypted to Anthropic: your messages, the responses, and the contents of the files Claude opens.
  • Training: For personal plans (Pro, Max), Anthropic may use your sessions for training if that setting is enabled. Turn it off at claude.ai/settings/data-privacy-controls. There is no training for Team, Enterprise, or API.
  • Telemetry (usage data without your code) can be disabled with the environment variable DISABLE_TELEMETRY = 1; error reports with DISABLE_ERROR_REPORTING = 1.
  • /feedback and /bug send the entire conversation, including code, to Anthropic — it is stored for 5 years.
  • Locally, Claude Code stores your conversations in readable form for 30 days in the .claude\projects folder in your user directory.
  • Caution with cloud sessions on Windows: According to the docs, even files that have not been committed yet, such as .env files with passwords, are uploaded too. Remove such files from the project first or work locally.

Common problems

ProblemSolution
'claude' is not recognized / “is not recognized”Close PowerShell and open it again. If that does not help, the %USERPROFILE%\.local\bin folder is missing from PATH — claude doctor will show this.
irm is not recognizedYou are in CMD instead of PowerShell. Open PowerShell or use the CMD command from step 1.
The token '&&' is not a valid statement separatorYou entered the CMD command in PowerShell. Use the PowerShell command.
running scripts is disabled on this systemThe execution policy is blocking scripts — this happens especially when installing through npm. Use the installer from step 1.
The process cannot access the file …An antivirus program or a second installer is locking the file. Delete the %USERPROFILE%\.claude\downloads folder and reinstall.
Certificate errors (unable to get local issuer certificate)Typical on corporate networks with HTTPS inspection. IT needs to allow or set up the company certificate.
Claude Code does not support 32-bit WindowsYou opened 32-bit PowerShell. In the Start menu, choose “Windows PowerShell” without “(x86)”.
You hit your plan limits/usage shows when your allowance renews (every 5 hours, plus a weekly limit). Smaller tasks with /model set to Sonnet or Haiku save allowance.

And locally, without the cloud?

Claude Code itself does not support local models. If your code must not leave the PC: VS Code with Copilot Chat and the official Ollama extension also works without an account and offline, as does the Cline extension. Good model choices include gpt-oss:20b (16 GB VRAM) or qwen3-coder:30b (24 GB). But they do not come close to the big cloud models for programming. How to set up Ollama is explained in Your own ChatGPT with Ollama.

Compare all programming services: AI services: Programming.

Sources

As of: Oct 26, 2026