Claude Code installation for teams: Mac, Windows and Linux
The official commands per system, the real output of an install run on December 3, 2026, then what makes every machine in a team identical: channel and version, account, repository files, managed settings, disposable machines.

Claude Code installation takes one command: curl -fsSL https://claude.ai/install.sh | bash on macOS, Linux or WSL, irm https://claude.ai/install.ps1 | iex on Windows (PowerShell). Check with claude --version, then sign in with a paid or Console account. For a team, fix the update channel, the account type and the files in the repository.
Yet a test run on December 3, 2026 on a clean Linux environment gave two results. The default command installed version 2.1.335, its stable variant version 2.1.332. Same morning, two documented commands, two versions.
This guide gives the commands per system and the real output of that test. It then covers what makes every machine identical: the update channel (the stream of versions a machine receives), the account, the repository files and managed settings, the ones the organization enforces.
Updated December 3, 2026.
Claude Code installation: which command for each system?
The native installer is the method recommended by the setup documentation. Open a terminal, the window where you type commands, and run the line for your system. The first is for macOS, Linux and WSL (the Windows Subsystem for Linux), the second for PowerShell, the third for CMD.
curl -fsSL https://claude.ai/install.sh | bash
irm https://claude.ai/install.ps1 | iex
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Each line downloads an install script and runs it. No progress shows while it downloads. That's expected.
Check the oldest machine in the fleet first. You need at least macOS 13.0, Windows 10 1809, Ubuntu 20.04 or Debian 10, with 4 GB of RAM.
Other methods exist. The table compares them on one point: who keeps the machine up to date.
| System | Command | Automatic updates | Good to know |
|---|---|---|---|
| macOS | Native script install.sh | Yes, in the background | macOS 13.0 or later |
| Linux | Native script install.sh | Yes, in the background | On Alpine, run apk add bash curl first |
| Native Windows | Native script install.ps1 or install.cmd | Yes, in the background | No Administrator rights needed. Git for Windows recommended |
| WSL 2 | Native script install.sh, inside the WSL terminal | Same as Linux | Sandboxing (isolated command execution) supported, unlike native Windows |
| Homebrew | brew install --cask claude-code | No by default: brew upgrade claude-code | This cask tracks the stable channel, claude-code@latest the latest channel |
| WinGet | winget install Anthropic.ClaudeCode | No by default: winget upgrade Anthropic.ClaudeCode | Plan the upgrades |
| npm | npm install -g @anthropic-ai/claude-code@latest | Yes, if the install did not need sudo | Node.js 22 or later. Never sudo npm install -g |
Table built from the setup documentation. It also covers apt, dnf and apk.
The first team decision sits in the third column. A machine on the native installer updates itself. A machine on Homebrew waits for a brew upgrade. Pick one method.
Once the command has run, check what it really installed.
What should you check right after installing?
Three checks are enough: the PATH (the list of folders where the terminal looks for programs), the version and the claude doctor diagnostic. In the December 3 test (empty home directory, minimal PATH, a separate environment for each command), the install took 4.3 seconds (4.336 s measured by time). Here is an excerpt of the real output.
β Claude Code successfully installed!
Version: 2.1.335
Location: ~/.local/bin/claude
Next: Run claude to get started
β Setup notes:
β Native installation exists but ~/.local/bin is not in your PATH. Run:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
The install succeeded. A warning follows. The installer placed claude in ~/.local/bin, a folder missing from the PATH of this fresh machine. According to the troubleshooting guide, it prints the fix but doesn't change the PATH itself.
In the suggested line, echo saves the setting for every new terminal and source applies it to the open window. Without it, the terminal can't find claude. On fresh machines, add that line to your setup script.
For claude --version, the test printed 2.1.335 (Claude Code). Last check: claude doctor, a read-only diagnostic of the install and the settings that starts no session. Excerpt:
Config install method: native
Search: OK (bundled)
Auto-updates: enabled
Auto-update channel: latest
Last update attempt: none recorded
Further down, the report read No installation issues found. Note the Auto-update channel line. Along with the version, it's the one to compare from one machine to the next.
The same report said Not signed in to claude.ai. An account was still missing.
Which account do you need to sign in?
Claude Code requires a Pro, Max, Ultra, Team, Enterprise or Console account. The free claude.ai plan doesn't include it. To sign in, run claude and follow the browser.
For a team, the authentication documentation recommends Claude for Teams or Enterprise in most cases. Teams is self-service and aimed at smaller teams. Enterprise adds domain capture, role-based permissions and the compliance API. The other routes: the Claude Console, billed through the API, a self-hosted gateway (Claude apps gateway), or Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry.
The account type changes what each machine receives. A Console API key belongs to a Console organization, separate from your claude.ai organization. So the settings defined in the claude.ai admin don't reach a session opened with that key.
Another trap: a forgotten ANTHROPIC_API_KEY variable. If the developer approves it, Claude Code uses that key instead of the subscription. /status shows the active method.
Pick one account type. On the budget side, Claude Code pricing for a team has its own guide.
Same command, same account: two machines can still drift apart on their version.
Why do two machines end up on different versions?
Two machines drift because each install follows an update channel, chosen by the install command. The docs describe two. latest, the default, gets new features as soon as they ship. stable serves a version that is typically about one week old and skips releases with major regressions.
The December 3 test shows it. The default command had just installed 2.1.335. On a second empty environment, curl -fsSL https://claude.ai/install.sh | bash -s stable installed 2.1.332. Along the way, the installer wrote a ~/.claude/settings.json file with the autoUpdatesChannel key set to "stable".
According to the docs, the channel chosen at install time becomes the default for automatic updates. So each machine stays on its own stream.
To align a machine that is already installed, the docs give two keys to put in ~/.claude/settings.json, the settings file in your home directory. Example in the documented format, for the test machine on 2.1.335:
{
"autoUpdatesChannel": "stable",
"minimumVersion": "2.1.335"
}
autoUpdatesChannel moves the machine to the stable channel. Alone, that setting would take a native install down to the stable version, even an older one. minimumVersion prevents it. The machine stays on 2.1.335 until the stable channel serves a newer version.
In place of stable, the installer accepts a version number. And if you distribute Claude Code through your own channels, DISABLE_UPDATES blocks every update, manual ones included.
Set in managed settings, minimumVersion enforces a floor that user and project settings can't override. requiredMinimumVersion and requiredMaximumVersion go further: Claude Code refuses to start outside the range.
The stable channel has a cost. A newly launched model can require a newer version than the one it serves.
With versions aligned, what remains is what Claude Code knows about your project. That lives in the repository.
Which files belong in the repository?
Three files versioned with the code give the same behavior to everyone who clones the repository.
.claude/settings.json: the project's shared settings. Once you commit the file, everyone who clones the repository gets the same permissions, hooks and plugin settings, per the settings docs. A hook is a shell command that runs at a fixed moment. Personal exceptions go in.claude/settings.local.json..mcp.json, at the project root: the list of shared MCP servers. MCP (Model Context Protocol) connects Claude Code to outside tools, such as an issue tracker or a database. According to the official MCP guide, each teammate who clones the repository sees a prompt to approve the server.CLAUDE.md, at the root or in.claude/: a plain-text instruction file that Claude reads at the start of every session. The memory docs advise writing the build and test commands and the conventions there, aiming for under 200 lines.
One detail explains why a committed file doesn't act everywhere. permissions.allow rules and most env values wait until each developer trusts the folder. deny and ask rules apply right away.
If you also share skills, procedures loaded on demand, plan for Claude Code skills governance. Before a newcomer's first session, read what Claude Code plan mode is really worth.
These files change with a simple commit. What must stay fixed belongs to the administrator.
What must the administrator lock down?
The administrator locks what a developer must not be able to change, through managed settings. The organization deploys them to every machine. They sit above every other level, apart from a few security exceptions.
They arrive by two routes, described in the managed settings docs.
- On the device, through an MDM (the tool that manages the fleet) or a
managed-settings.jsonfile placed in a system directory:/Library/Application Support/ClaudeCode/on macOS,/etc/claude-code/on Linux and WSL,C:\Program Files\ClaudeCode\on Windows. - From the server, with server-managed settings, entered in the claude.ai console for Claude for Teams and Enterprise. The client fetches them at startup, then every hour.
For installation, three groups of keys deserve a place there.
- The version:
minimumVersion, orrequiredMinimumVersionto block an outdated binary at startup. - The account:
forceLoginMethodandforceLoginOrgUUIDrequire the claude.ai login to belong to your organization. - The network: the proxy (
HTTPS_PROXY) and the corporate CA (NODE_EXTRA_CA_CERTS). The network docs list the domains to allow, includingdownloads.claude.aifor the native installer and its updates.
The Claude Code enterprise rollout guide covers permissions and the pilot.
You configure a laptop once. A disposable machine starts from zero at every launch.
And for disposable machines, containers or sandboxes?
On a disposable machine, you prepare the environment once, in a versioned file. A dev container (development container) defines an identical, isolated environment that every engineer on the team can run. You add Claude Code through a "Feature", declared in .devcontainer/devcontainer.json:
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
}
}
One point in the dev container docs is a surprise. The :1.0 tag pins the Feature's install script. The Claude Code version itself stays the latest release, and updates itself inside the container. For reproducible builds, the docs advise installing a specific version from the Dockerfile, with npm install -g @anthropic-ai/claude-code@X.Y.Z and DISABLE_AUTOUPDATER set to 1.
In my own practice: I apply the same idea with Armada, my AI orchestrator, which runs agents in sandboxes, isolated and disposable machines. "In the sandboxes, you can connect MCPs, add environment variables, pre-install CLIs." The environment, command-line tools included, gets set up once, and every agent starts identical.
That leaves the errors that stop an install before any of this, mostly behind a corporate network.
Which errors block an installation at work?
Four messages keep coming up on corporate machines and small servers, each with its fix in the troubleshooting guide.
syntax error near unexpected token '<': the install URL returned a web page instead of the script. Retry after a few minutes. If it persists, check the proxy.TLS connect error: a proxy inspects TLS. On macOS and Linux, pointCURL_CA_BUNDLEandNODE_EXTRA_CA_CERTSto the PEM file of the proxy's root CA.PSSecurityException: on Windows, PowerShell blocks the.ps1launchers that npm creates. The PowerShell installer isn't affected.Killedon Linux: the machine ran out of memory. Installing needs roughly 512 MB of free memory.
For PSSecurityException, the usual message looks like this:
npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
...
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
Test the command on one machine of the fleet, behind the proxy, before sending it to the whole team. After that, repeat the first check. On two machines, claude --version and the Auto-update channel line must show the same thing.
FAQ
Is Claude Code free?
No. The free claude.ai plan does not include Claude Code. You need a Pro, Max, Ultra, Team, Enterprise or Console account, or a cloud provider such as Amazon Bedrock.
Do you need Node.js to install Claude Code?
No with the native installer: Node.js is not in Claude Code's system requirements. The npm install, however, requires Node.js 22 or later.
Does Claude Code run on Windows without WSL?
Yes. Claude Code installs natively from PowerShell or CMD, without Administrator rights. Sandboxing, though, needs WSL 2.
Which command updates Claude Code?
claude update applies the update right away. A native Claude Code install also updates itself in the background.
Installing Claude Code takes one command, and 4.3 seconds in the December 3, 2026 test. Making every machine identical means fixing the channel, the account, the repository files and the managed settings. On a deployment, The Vibe Company configures managed settings and permissions, writes the CLAUDE.md files with your teams and trains them during the pilot, as part of its AI agents in production offer.
To install Claude Code identically on every machine, book a call with me.


