One setup for every operating system
How a team keeps one set of steps when its laptops run Windows, macOS and Linux. It is written from the side of the Windows developer, because that is where written steps break first. No PowerShell lessons required.
01 · The problemA team where most laptops run Windows
A team of ten backend engineers starts with Claude Code. Two have a Mac. Eight have a Windows laptop from the company. All of them know VS Code and an assistant inside the editor. Most have never used an AI tool in a terminal.
"Open a terminal and type claude"
On Windows the terminal that opens is PowerShell. Many developers avoid it, and teaching it is a project of its own.
Every command is a bash command
make test, set -a; . ./.env, grep. The README, the team notes and the skills are written for a Linux shell.
Two sets of instructions
One for the Mac, one for Windows. They drift apart. A step that works for one colleague fails for the next one.
02 · The key ideaThe developer does not type the commands. Claude Code does.
With Claude Code a developer writes what they want in plain English. Claude Code chooses the commands and runs them. So the question is not "can our developers use PowerShell". The question is "in which shell, and in which environment, does Claude Code run its commands".
Claude Code runs on Windows directly
Windows 10 version 1809 or later, no administrator rights for the install. WSL is not required.
With Git for Windows, it uses Git Bash
Git for Windows brings a small Linux-like shell, Git Bash. Claude Code runs its shell commands there. Almost every developer has Git installed already.
Without Git Bash, it uses PowerShell itself
Claude Code has a PowerShell tool (in preview). The developer still types English. Claude Code writes the PowerShell.
03 · The conceptWhat a dev container is
A container is an isolated process with its own filesystem, started from an image. A dev container is a container that is used as the development machine for one repository. The repository describes that machine in one file, .devcontainer/devcontainer.json.
- Which image or compose file to start
- Which tools to add ("features")
- Which VS Code extensions to install inside
- Which command to run after the container is created
- One container with Python 3.12,
makeandgit - Features: Claude Code
- After creation:
make install - The sign-in of Claude Code is kept in a volume, so it survives a rebuild
- A project with a database adds a second container for it
Isolation is an effect. Sameness is the purpose.
Yes, the project is kept apart from the personal settings of the laptop. The bigger gain is that every developer gets the same Python, the same database and the same bash terminal, whatever the laptop runs.
One set of steps, for every laptop
A step written once ("run make test") works for the Mac user and for the Windows user. Claude Code's hooks and skills are bash scripts, and they run the same for everyone.
04 · The optionsFive ways to use Claude Code from a Windows laptop
They are not exclusive. A and B are the same install and belong together: they are the standard on every laptop. C, D and E are added where a repository or a company rule calls for them.
| Option | Where Claude Code runs | Its shell | What must be installed | Good for | Limit |
|---|---|---|---|---|---|
| A · Editor panelstandard | Windows, inside VS Code | Git Bash, or PowerShell | VS Code, the Claude Code extension, Git for Windows | The first weeks. Nobody opens a terminal | Project commands like make may not exist on Windows |
| B · Terminal on Windowsstandard | Windows | Git Bash, or PowerShell | Claude Code, Git for Windows | Developers who like a terminal | Same as A. No sandbox on native Windows |
| C · WSL 2 | Linux inside Windows | bash | WSL 2 (needs to be switched on, often by IT), Claude Code inside it | One developer who wants real Linux | Each person builds the environment by hand |
| D · Dev containerper repository | A Linux container | bash | Docker, VS Code, the Dev Containers extension | A team that shares a repository | Docker must be allowed on the laptops |
| E · In the cloud | Anthropic's cloud, or a hosted dev container | bash | A browser | Laptops where nothing can be installed | Code leaves the laptop. Needs GitHub, or an upload of the repository |
05 · RecommendationWhich one, in which situation
devcontainer.json.make, a database, Redis, or one exact Python version, Git Bash is not enough. The dev container is described once in the repository, and every laptop gets the same result. Adding the file is a small ticket, and Claude Code can write it.The everyday commands, as on Linux
git,ls,cd,cat,grep,sed,awk,curl,ssh- Bash scripts, pipes,
&&,export,source - Paths with forward slashes:
/c/Users/name/project
It is a shell on Windows. It is not Linux.
- No
make, nojq, noapt, unless someone installs them for Windows - Python, Node and Java are the Windows versions. The command can be
python, notpython3.12 - A Linux database or Redis still needs Docker or WSL
PowerShell opens first. Git Bash is one setting away.
VS Code finds Git Bash by itself once Git for Windows is installed, and lists it in the terminal menu. It does not make it the default. One time: Command Palette, "Terminal: Select Default Profile", Git Bash.
One line in the settings
"terminal.integrated.defaultProfile.windows": "Git Bash"
In the user settings of each developer, or rolled out by IT. Mac and Linux laptops ignore this line.
06 · A normal dayTwo parts: the session, and the terminal
The Claude Code panel in VS Code
This is where most of the work happens: give the ticket, read the plan, approve an edit, see the diff. It looks the same on Windows, on a Mac and inside a dev container.
Skills are started here too, by typing / and choosing from the list.
The VS Code terminal, not a separate window
For the few commands a person runs by hand: start the app, run the tests, look at git status.
- In a dev container or WSL: the VS Code terminal is bash already. Nothing to set.
- On Windows directly: set Git Bash as the default terminal profile of VS Code, once. From then on the commands of the team's notes can be typed as written, as far as the tools exist on Windows.
"Run the tests and tell me which ones fail." The developer does not need to know the command. Claude Code reads it from CLAUDE.md.
The memory file CLAUDE.md holds how to start, test and check. It is the same file for every laptop.
Deny rules and hooks in .claude/settings.json apply to everyone, whatever shell is used.
07 · SetupThe steps, per option
In PowerShell, once. The developer copies three lines and never needs PowerShell again.
winget install Git.Git irm https://claude.ai/install.ps1 | iex claude
Then in VS Code: install the extension Claude Code (anthropic.claude-code), and choose Git Bash under "Terminal: Select Default Profile".
Also possible: winget install Anthropic.ClaudeCode. That way does not update itself.
Once per laptop: Docker, VS Code, and the extension Dev Containers. Once per repository, in devcontainer.json:
"features": {
"ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
}
Then: "Dev Containers: Reopen in Container". The panel and the claude command both run inside the container.
On Windows, keep the repository inside WSL 2 or in a container volume. A folder on the Windows disk is slow when it is mounted into Linux.
08 · Before the rolloutWhat an enterprise should check first
Is it allowed, and is it licensed?
Docker Desktop needs a paid plan in larger companies, and it needs virtualization switched on. Some companies use another engine instead. Ask IT before the team plans on dev containers.
Proxy and company certificates
Claude Code reads HTTPS_PROXY and trusts the certificate store of the system. NODE_EXTRA_CA_CERTS adds a company certificate. A SOCKS proxy is not supported. Image downloads for containers need the same care.
Not on Windows directly
The sandbox of Claude Code works on macOS, Linux and WSL 2. On native Windows it does not. A dev container or WSL 2 gives the isolation instead.
Written for bash
A command hook runs in Git Bash on Windows, or in PowerShell when Git Bash is missing. A hook written for bash, using tools like jq, is only safe where bash and those tools exist: in the container, in WSL, or with Git Bash set up.
Where the model is called
With a cloud provider account (Bedrock, Vertex, Foundry) the PowerShell tool is off until CLAUDE_CODE_USE_POWERSHELL_TOOL=1 is set. With Git Bash installed this does not matter.
One rule in the repository
Windows editors can write other line endings than Linux. A .gitattributes file settles it for everyone. This is general git practice, not something the Claude Code documentation covers.
09 · EvidenceHow Windows developers use Claude Code today
This is what public guides and the developer survey show in 2026. It supports the order of the recommendation above: Git Bash first, Linux where the project needs it.
About half of professional developers work on Windows
Stack Overflow's 2025 survey: Windows 49.5% for professional use, macOS 32.9%. WSL is named by 16.8%. So the Windows question concerns most teams, and most Windows developers do not use WSL.
Native Claude Code with Git Bash
Current guides describe this as the simple path: install Git for Windows, install Claude Code, and commands work. It fits projects that are built on Windows itself, such as .NET or Node.
WSL 2 or a container, when the project demands it
Guides name two reasons: the project needs Linux tools, or the team wants the sandbox, which does not exist on native Windows.
- Line endings. A hook script saved by a Windows editor can fail in Git Bash because of a stray carriage return. A
.gitattributesrule prevents it. - Two environments on one laptop. A tool installed on Windows is not found inside WSL, and the other way round. A developer picks one place to run
claudefor a repository. - Old advice. Many guides still say Git for Windows is required. The current documentation says it is optional, and that PowerShell is used without it.
10 · One instructionHow one written instruction works on every operating system
A team writes three kinds of things for Claude Code. Each one becomes independent of the operating system in a different way.
| What the team writes | Why it can differ per laptop | How to make it one |
|---|---|---|
Prompts, skills, CLAUDE.md | It does not. This is plain language, and Claude Code turns it into commands for the shell it has | Keep it free of one system's commands. Write "run the tests with make test", not a path that exists only on one laptop |
| Hooks | A hook is a real command. A bash script needs bash and its tools | Let the hook start a script in the language the project already has, for example Python. Or state the shell of each hook with "shell" |
Project commands (make, the database, the tests) | The tools must exist on the laptop, in the same version | The dev container. This is the only one of the three that needs Linux |
Runway Board, the sample of this training, shows the second row: its guard hook is a few lines of shell that start a Python file, and the rule itself is in Python.
11 · This trainingWhere the Runway Board steps were made, and where they run
The steps of these notes were prepared and run on one operating system, macOS. They need a Unix shell, because the sample uses make, a bash start script and shell hooks.
As written
Every step can be typed as it stands. The first step of the workspace page, "Check the machine", names the four tools: make, uv, Python 3.12 and git.
Inside Linux: WSL 2, or a dev container
Git Bash alone is not enough here, because it has no make. Inside WSL 2 or a dev container the terminal of VS Code is Linux, and the steps are the same as on a Mac.
The Windows path was not run
The recorded runs and the times on the notes pages come from macOS. Before a Windows team starts, one person should run the workspace page once inside WSL 2.
Runway Board has no dev container file
The dev container in section 3 is the general answer for a team. For this sample it would be one small file. It has not been added, so WSL 2 is the shortest way today.
Sources for sections 9 and 10. Operating system figures: Stack Overflow Developer Survey 2025, as reported in secondary coverage (windowsforum.com, windowslatest.com); the survey page itself was not read. Usage patterns and pitfalls: public guides from 2026 on dev.to ("Claude Code on Windows, native or WSL, and what trips people up"), codeagentswarm.com, and buildthisnow.com on cross-platform hooks. These are blogs, so they show what people do, not what is official. One claim found there was left out because it is no longer true: that Node.js is always present where Claude Code runs.
What is verified, and what is experience. The facts about Claude Code (Windows support, Git Bash, the PowerShell tool, install commands, the dev container feature, hooks, sandbox, proxy and certificates, Claude Code on the web) were checked on November 24, 2026 against the documentation at code.claude.com/docs: Setup, Tools reference, Environment variables, Sandboxing, VS Code, Dev containers, Hooks, Claude Code on the web. The notes on Docker licensing, file speed on Windows and line endings are general experience and should be checked against the current terms and the company's own rules.