Home / Blog / Claude Code install script is down news update
Tech News

Claude Code install script is down news update

The bootstrap installer places everything under the user's $HOME directory and explicitly refuses to run with sudo when invoked from a regular user's shell.

By Dillip Chowdary • Dec 05, 2026 • Source: downloads.claude.ai

Claude Code install script is down news update
Illustration · Pexels

At a glance

Product
Claude Code CLI
Installer
bootstrap.sh at downloads.claude.ai/claude-code-releases
Install location
$HOME (no sudo required by design)
Channels
stable (default), latest, or pinned MAJOR.MINOR.PATCH
Required deps
curl OR wget
Optional deps
jq (JSON), zstd (compressed archives)

Anthropic's Claude Code bootstrap installer is a single-step shell script that downloads and sets up the Claude Code CLI entirely within a user's home directory, with no root access required. The installer script handles dependency checks, sudo detection, version pinning, and binary placement, letting developers install a specific release or track the latest stable build with a single curl or wget command.

This article covers how the bootstrap installer works, the sudo-rejection behavior and its rationale, the version channel options, the optional dependencies that enable faster installs, and how to update Claude Code after it's installed.

01Home-directory install with no sudo requirement

The bootstrap installer places everything under the user's $HOME directory and explicitly refuses to run with sudo when invoked from a regular user's shell. If a user runs the script under sudo, it exits immediately with a human-readable error message that describes the problem and suggests the plain curl -fsSL https://claude.ai/install.sh | bash command as the fix.

The check targets a specific failure mode: when sudo is used, $HOME typically resolves to root's home directory rather than the invoking user's. This would leave the binary in /root/.local/bin or root-owned in the user's home directory, depending on the Linux distribution's sudo configuration, and the claude command would not appear in the user's own shell PATH.

Plain root with no sudo — such as in containers or CI environments running as root directly — passes the check and is unaffected. Users who need to install Claude Code as root explicitly can set the CLAUDE_INSTALL_ALLOW_SUDO=1 environment variable before running the installer.

02Stable, latest, and pinned-version channels

The script accepts an optional first positional parameter that controls which release channel or version to install. Valid values are stable, latest, or a full semantic version string in the format MAJOR.MINOR.PATCH with an optional pre-release suffix. Passing no argument defaults to the stable channel.

Downloads land in $HOME/.claude/downloads and are pulled from the base URL https://downloads.claude.ai/claude-code-releases, the Anthropic-hosted release CDN.

Command
```bash
# Install latest stable (default)
curl -fsSL https://claude.ai/install.sh | bash

03Install from the latest channel

The version parameter validation rejects any string that does not match the stable, latest, or semver patterns, exiting with a usage message rather than attempting a download with a malformed target.

04curl and wget support, with optional jq and zstd

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

The installer requires either curl or wget to download releases; it exits with an error message if neither is present on the system. It detects which tool is available at startup and routes all download calls through that tool automatically without requiring user configuration.

Two optional dependencies improve the install experience when present on the system: jq enables structured JSON processing during the install resolution step, and zstd enables compressed archive extraction for faster binary transfer over the network. Both are detected at startup and silently skipped if unavailable, so the installer works on minimal systems without package installation prerequisites.

05Download location and CDN structure

All release artifacts are fetched from https://downloads.claude.ai/claude-code-releases, the base URL baked into the script. The local download directory on disk is $HOME/.claude/downloads, keeping all Claude Code release artifacts isolated under the user's existing Claude configuration directory tree alongside settings, session data, and project memory.

This placement means the installed binary and downloaded releases are always user-scoped. Multiple users on the same machine each have their own independent Claude Code install under their respective home directories, with no shared system-wide installation.

06Updating and model selection after install

Once Claude Code is installed, the update path runs through the CLI itself rather than re-running the bootstrap script. The standard update command is:

Command
claude update

To launch Claude Code targeting a specific model, use the --model flag:

Command
claude --model claude-sonnet-4-6

To switch models within a running session, use the /model command. Claude Code keeps the binary self-contained in the home directory, making updates and version switches independent of system package managers.

The home-directory-only architecture also means uninstalling Claude Code is a simple matter of removing the $HOME/.claude directory and the binary from $HOME/.local/bin, without touching any system paths or running any privileged commands. This approach keeps Claude Code sandboxed to the user's own account, which aligns with its design as a development tool that runs with the user's own permissions rather than elevated ones. Because the binary lives entirely within the user profile, it also survives system upgrades and package manager changes without requiring reinstallation, and multiple users on the same machine each maintain completely independent installs with separate session histories and configuration.

Frequently asked questions

Does the Claude Code installer need sudo or root access?

No. The installer places everything under the user's home directory and will exit with an error if run with sudo from a regular user's shell. Use CLAUDE_INSTALL_ALLOW_SUDO=1 only when intentionally installing for root itself.

How do I install a specific version of Claude Code?

Pass the version as the first argument: curl -fsSL https://claude.ai/install.sh | bash -s -- 1.2.3, replacing 1.2.3 with the desired version number.

What are the dependencies for the Claude Code installer?

Either curl or wget is required. jq and zstd are optional and improve install performance when present but are not required for a successful install.

How do I update Claude Code after installation?

Run claude update from your terminal to fetch and install the latest stable release.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →