How to Use Claude Code on Windows: Browser, Desktop App, and Native CLI
Claude Code runs in a Windows browser at claude.ai/code and installs natively with one PowerShell command. This guide lists the plans, the steps, and the documented errors for each option.
Quick Answer
Open claude.ai/code in any Windows browser, connect a GitHub repository, and submit a task. The session runs on Anthropic’s cloud infrastructure and requires a Pro, Max, Team, or Enterprise plan, because the free plan excludes Claude Code. To edit local files, install the native version from PowerShell with irm https://claude.ai/install.ps1 | iex. WSL and Node.js are optional.
The phrase “Claude Code in the browser” has a specific meaning. Anthropic calls it Claude Code on the web, and it is a cloud session. The code runs on a virtual machine that Anthropic manages, and the session continues after the browser tab closes.
A cloud session cannot change files on a Windows drive. It works on a clone of a GitHub repository and pushes its results to a branch. Readers who need direct edits in a local folder should use the desktop app, the native command line, or the editor extension described below.
Which Windows Option Fits Your Work
Five routes exist. Each one reads the same account and plan, so the choice depends on where the code lives and how much of the terminal a user wants to see.
| Option | Where it runs | Requirements | Edits local files | Suits |
|---|---|---|---|---|
| Browser (claude.ai/code) | Anthropic cloud VM | Paid plan; GitHub repository | No; works on a clone and pushes a branch | Long tasks, pull requests, monitoring from a phone |
| Desktop app, Code tab | Local, cloud, or SSH | Paid plan; Git for Windows on first open | Yes, in Local mode | Users who prefer a graphical interface |
| Native CLI | Your PC | Paid plan or Console account | Yes | Terminal workflows on Windows projects |
| WSL 2 | Linux inside Windows | WSL 2 enabled | Yes | Linux toolchains and sandboxed commands |
| VS Code extension | Inside the editor | VS Code 1.98 or later; paid plan or API key | Yes | Review of diffs next to the code |
What Claude Code on the Web Does
A task starts with a prompt and a repository. The cloud environment clones the repository, Claude edits files and runs commands, and the results appear in a Changes card with line counts such as +42 −18. A user can comment on single lines of the diff and send the comments with the next message.
Anthropic lists the feature as a research preview. Usage counts toward the same plan limits as chat and terminal sessions, and the cloud VM carries no separate charge. Parallel sessions consume limits faster, which matters on the Pro plan.
Quality of output is a separate question from access. Our developer review of Claude for coding covers benchmark scores, code review, and debugging results. A reader who compares assistants more broadly can start with the roundup of AI tools for developers.
Method 1: Start a Cloud Session in the Browser
- 1Confirm the plan
Cloud sessions are available on Pro, Max, and Team plans, and on Enterprise seats with premium or Chat + Claude Code access. A free account cannot start one.
- 2Open claude.ai/code
Use Chrome, Edge, or Firefox on Windows and authenticate with the Anthropic account that holds the plan.
- 3Connect GitHub
Onboarding asks for authorization of the Claude GitHub App. The App reaches public repositories and any private repository where it is installed. Auto-fix for pull requests also requires the App.
- 4Accept the Default environment
Onboarding creates or requests a Default environment with Trusted network access. The environment controls network rules, environment variables, and setup scripts.
- 5Submit a task
Choose the repository and branch, then describe the change in plain language. A specific request works better than a vague one, for example “fix the null check in src/auth/login.ts and add a test.”
- 6Review and create the pull request
Open the Changes card, read the diff, and ask for revisions. The session creates a pull request when the result is ready.
Push before submitting. The cloud VM clones the GitHub remote at the selected branch. Commits that exist only on the local machine are absent from the session. If a branch is missing from GitHub, the interface reports that the branch is not on GitHub.
Developers who prefer the terminal can reach the same infrastructure from the command line by running claude --cloud "task description". The command creates a new cloud session for the current repository.
Try a Cloud Session
Open the web interface, connect GitHub, and submit a small task first.
Open claude.ai/codeMethod 2: Install Claude Code Natively on Windows
Claude Code runs on Windows 10 version 1809 or later and on Windows Server 2019 or later. The machine needs 4 GB of RAM and an internet connection. Administrator rights are unnecessary for the default install.
- 1Open PowerShell
The prompt starts with
PS C:\. A prompt without the “PS” prefix belongs to Command Prompt, which needs a different command. - 2Run the installer
Paste this command and press Enter:
irm https://claude.ai/install.ps1 | iexWinGet users can run
winget install Anthropic.ClaudeCodeinstead. Command Prompt users can runcurl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd. - 3Open a new terminal and verify
Run
claude --version. A version number confirms the install. The installer placesclaude.exein%USERPROFILE%\.local\bin, and an older terminal window does not see the updated PATH. - 4Move to a project folder
Use
cd C:\Users\YourName\YourProject. Claude Code reads the folder where it starts, so a project directory is a safer choice than the root of the C: drive. - 5Start Claude and authenticate
Type
claudeand follow the browser prompt. Pro, Max, Team, Enterprise, and Console accounts work. When theANTHROPIC_API_KEYvariable exists, Claude Code asks once for approval to use the key.
Native installations update themselves in the background. WinGet installations do not, so winget upgrade Anthropic.ClaudeCode must run from time to time. The claude doctor command prints read-only diagnostics when something looks wrong.
Is Git for Windows still required?
The current setup page lists Git for Windows as optional. With Git for Windows installed, Claude Code uses Git Bash for its Bash tool. Without it, Claude Code runs shell commands through its PowerShell tool. Older guides state that Git is mandatory, and that statement no longer matches the documentation for the command line.
Is Node.js still required?
The native installer needs no Node.js. An npm route remains available through npm install -g @anthropic-ai/claude-code. As of version 2.1.198, that package asks for Node.js 22 or later, although an older version only produces an EBADENGINE warning because the package downloads a native binary. Version 18, which many older guides cite, is below the current requirement.
Method 3: Use the Desktop App
The Claude desktop app has a Chat tab, a Cowork tab, and a Code tab. The Code tab works without a terminal. Anthropic offers an x64 installer and a separate ARM64 installer for Windows.
After installation, launch the app, authenticate, and open the Code tab. The first visit on Windows requires Git for Windows, and the app must restart once Git is installed. Each conversation is a session with its own folder, chat history, and code changes. An environment selector offers Local, cloud, or SSH.
Local mode edits a folder on the PC. The cloud choice sends the work to the infrastructure described in Method 1, so the same GitHub rules apply.
Method 4: WSL 2 and the VS Code Extension
WSL is optional. Its main advantage is sandboxing, which Anthropic documents for WSL 2 and lists as unsupported on native Windows and WSL 1. A user who needs sandboxed command execution or Linux toolchains should install WSL 2 and run the Linux installer inside the distribution. The command is launched from the WSL terminal, not from PowerShell.
The VS Code extension comes from Anthropic through the Extensions panel (Ctrl+Shift+X). It requires VS Code 1.98 or later, and it also works with forks such as Cursor. Anthropic documents CLAUDE_CODE_GIT_BASH_PATH for cases where Claude Code cannot locate Git Bash, and some users reported a Git Bash error in extension versions 2.1.68 and 2.1.69 despite a correct path. Updating the extension is the first remedy to try. Readers who weigh editor-based tools against agents can compare the options in the Verdent AI review.
Move Work Between the Browser and the Terminal
The two surfaces share one account, so a task started in one place can continue in the other. The handoff runs in a single direction from the command line. A terminal session cannot move to the cloud, although the desktop app can send a local session to the cloud from its Open in menu.
| Command | Effect | Condition |
|---|---|---|
claude --cloud "task" | Creates a cloud session for the current repository | Anthropic account; no third-party provider |
claude --teleport | Pulls a cloud session and its branch into the terminal | Clean git state; same repository; branch pushed; same account |
claude -p "message" --cloud <session-id> | Queues a follow-up message in a running session | Signed in through claude auth login |
API-key authentication cannot start cloud sessions. A user who sees the message “Unable to get organization UUID” should run claude auth login with the claude.ai account and retry.
Plans and Cost
Claude Code has no standalone price. It is bundled with Claude subscriptions, and usage draws from the same pool as chat. Figures below come from Anthropic’s published plans as reported in November 2026, and the pricing page at claude.com/pricing remains the final reference.
| Plan | Price | Claude Code |
|---|---|---|
| Free | $0 | Not included |
| Pro | $20 a month, or $17 a month billed annually | Included |
| Max 5x | $100 a month | Included, with 5x the Pro usage per session |
| Max 20x | $200 a month | Included, with 20x the Pro usage per session |
| Console (API) | Per token | Works in the CLI; cannot start cloud sessions |
Per-token rates for the newest models appear in our Claude Opus 5 pricing and benchmark breakdown. A reader who is choosing between Anthropic and OpenAI can read the Claude Fable 5 and ChatGPT 5.5 comparison and the ChatGPT coding review.
Strengths and Limits
✅ Browser sessions
- No local installation
- Work continues after the tab closes
- Monitoring from the Claude mobile app
- Pull request creation and auto-fix
❌ Browser sessions
- Paid plan required
- GitHub is the main repository host
- No direct edits to local files
- Research preview status
✅ Native CLI
- Reads and edits local project files
- Works from PowerShell, CMD, or Git Bash
- Background updates for the native install
- Optional WSL and Node.js
❌ Native CLI
- PATH errors after the first install
- Sandboxing is unsupported on native Windows
- Terminal comfort helps
- Usage limits are shared with chat
Common Windows Errors and Fixes
| Message or symptom | Cause | Fix |
|---|---|---|
'claude' is not recognized | The install folder is missing from PATH, or the terminal predates the install | Open a new terminal; confirm that %USERPROFILE%\.local\bin sits in the user PATH |
The token '&&' is not a valid statement separator | The CMD command ran in PowerShell | Use the irm command in PowerShell |
'irm' is not recognized | The PowerShell command ran in CMD | Open PowerShell, or use the curl command in CMD |
syntax error near unexpected token '<' or a 403 during install | The install script returned HTML or was blocked | Retry later, check network filters, or use WinGet |
| Code tab asks for Git for Windows | First launch of the desktop Code tab on Windows | Install Git for Windows and restart the app |
Branch <name> is not on GitHub | The branch was never pushed or GitHub deleted it | Push the branch and start a new session |
| Teleport refuses to resume | Uncommitted changes, a different repository, or a different account | Stash or commit; run from a checkout of the same repository |
| Session creation failed | No VM was allocated | Check status.claude.com and retry after a minute |
Safety and Data Handling
Each cloud session runs in an isolated VM. Network access is limited by default, and GitHub credentials stay on Anthropic’s servers outside the VM. These controls reduce exposure, although they do not make a repository safe to share by default, so secrets should stay out of committed code.
One Windows detail deserves attention. When a local repository is uploaded as a bundle, native Windows sends uncommitted changes to tracked files as they are, whatever the file name. macOS, Linux, and WSL leave out files such as .env and key files. A Windows user should stash any edit that must stay private before running claude --cloud from a repository without the GitHub App.
Local sessions ask for permission before commands that modify the system. External tool connections add further reach, and the guide to Claude Cowork MCP servers explains how to review them. Readers without a development background may prefer an app builder, and the examples of AI-generated full-stack apps show what such tools produce.
How This Guide Was Checked
Every command, requirement, and limit above was compared with Anthropic’s Claude Code documentation for cloud sessions, advanced setup, and the desktop app in November 2026. Plan prices were compared across the published pricing page and independent reports. The Git for Windows and Node.js statements changed during 2026, so older tutorials may disagree with this page.
Install the Native Version
Read the official setup page before running the installer, and use the troubleshooting table above if the command is not found.
Open the official setup guideFAQ
Can I use Claude Code on Windows without installing anything?
Yes. Claude Code on the web at claude.ai/code needs only a browser, a paid Claude plan, and a GitHub repository. Sessions run on Anthropic’s cloud infrastructure.
Is Claude Code free on Windows?
No. The free Claude plan excludes Claude Code. Pro costs $20 a month, or $17 a month on annual billing, and Max starts at $100 a month. A Console account bills per token for the command line.
Do I need WSL to run Claude Code on Windows?
No. Claude Code runs natively on Windows 10 version 1809 or later. WSL 2 adds sandboxing and Linux toolchains for users who need them.
Do I need Node.js or Git for Windows?
The native installer needs neither. Git for Windows is optional for the command line and enables the Bash tool. The desktop Code tab asks for Git for Windows on its first launch.
Can the browser version edit files on my computer?
No. Cloud sessions work on a clone of a GitHub repository and push a branch. For local files, use the desktop app in Local mode, the native CLI, or the VS Code extension.
Does Claude Code work offline?
No. Claude Code requires an internet connection, because every request goes to Anthropic or to a configured third-party provider.
Conclusion
The browser route suits tasks that live in a GitHub repository and benefit from unattended runs. The native command line and the desktop app suit work on files stored on the Windows machine. Both need a paid plan, and neither needs WSL.
A reasonable first step is a small task in a test repository at claude.ai/code. The result shows how the diff review, usage limits, and pull request flow behave before a larger project depends on them.