SpyBara
Go Premium

setup.md 2025-12-06 18:02 UTC to 2025-12-08 21:01 UTC

5 added, 5 removed.

2025
Sat 27 06:02 Tue 23 18:02 Sat 20 00:04 Fri 19 21:01 Thu 18 21:01 Wed 17 15:02 Tue 16 21:01 Mon 15 21:01 Sat 13 06:02 Fri 12 21:01 Thu 11 21:02 Wed 10 09:03 Tue 9 18:01 Mon 8 21:01 Sat 6 18:02 Fri 5 00:04 Thu 4 21:02 Wed 3 00:04 Tue 2 21:01 Mon 1 03:31

Set up Claude Code

Install, authenticate, and start using Claude Code on your development machine.

System requirements

  • Operating Systems: macOS 10.15+, Ubuntu 20.04+/Debian 10+, or Windows 10+ (with WSL 1, WSL 2, or Git for Windows)
  • Hardware: 4 GB+ RAM
  • Software: Node.js 18+ (only required for npm installation)
  • Network: Internet connection required for authentication and AI processing
  • Shell: Works best in Bash, Zsh or Fish
  • Location: Anthropic supported countries

Additional dependencies

Standard installation

To install Claude Code, use one of the following methods:

Homebrew (macOS, Linux):

brew install --cask claude-code

macOS, Linux, WSL:

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell:

irm https://claude.ai/install.ps1 | iex

Windows CMD:

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

After the installation process completes, navigate to your project and start Claude Code:

cd your-awesome-project
claude

Claude Code offers the following authentication options:

  1. Claude Console: The default option. Connect through the Claude Console and complete the OAuth process. Requires active billing in the Anthropic console. A "Claude Code" workspace is automatically created for usage tracking and cost management. You can't create API keys for the Claude Code workspace; it's dedicated exclusively for Claude Code usage.
  2. Claude App (with Pro or Max plan): Subscribe to Claude's Pro or Max plan for a unified subscription that includes both Claude Code and the web interface. Get more value at the same price point while managing your account in one place. Log in with your Claude.ai account. During launch, choose the option that matches your subscription type.
  3. Enterprise platforms: Configure Claude Code to use Amazon Bedrock, Google Vertex AI, or Microsoft Foundry for enterprise deployments with your existing cloud infrastructure.

Windows setup

Option 1: Claude Code within WSL

  • Both WSL 1 and WSL 2 are supported

Option 2: Claude Code on native Windows with Git Bash

  • Requires Git for Windows
  • For portable Git installations, specify the path to your bash.exe:
    $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
    

Alternative installation methods

Claude Code offers multiple installation methods to suit different environments.

If you encounter any issues during installation, consult the troubleshooting guide.

Native installation options

The native installation is the recommended method and offers several benefits:

  • One self-contained executable
  • No Node.js dependency
  • Improved auto-updater stability

If you have an existing installation of Claude Code, use claude install to migrate to the native binary installation.

For advanced installation options with the native installer:

macOS, Linux, WSL:

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

# Install latest version
curl -fsSL https://claude.ai/install.sh | bash -s latest

# Install specific version number
curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58

Windows PowerShell:

# Install stable version (default)
irm https://claude.ai/install.ps1 | iex

# Install latest version
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) latest

# Install specific version number
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 1.0.58

Windows CMD:

REM Install stable version (default)
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

REM Install latest version
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd latest && del install.cmd

REM Install specific version number
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 1.0.58 && del install.cmd

Binary integrity and code signing

  • SHA256 checksums for all platforms are published in the release manifests, currently located at https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/{VERSION}/manifest.json (example: replace {VERSION} with 2.0.30)
  • Signed binaries are distributed for the following platforms:
    • macOS: Signed by "Anthropic PBC" and notarized by Apple
    • Windows: Signed by "Anthropic, PBC"

NPM installation

For environments where NPM is preferred or required:

npm install -g @anthropic-ai/claude-code

Running on AWS or GCP

By default, Claude Code uses the Claude API.

For details on running Claude Code on AWS or GCP, see third-party integrations.

Update Claude Code

Auto updates

Claude Code automatically keeps itself up to date to ensure you have the latest features and security fixes.

  • Update checks: Performed on startup and periodically while running
  • Update process: Downloads and installs automatically in the background
  • Notifications: You'll see a notification when updates are installed
  • Applying updates: Updates take effect the next time you start Claude Code

Disable auto-updates:

Set the DISABLE_AUTOUPDATER environment variable in your shell or settings.json file:

export DISABLE_AUTOUPDATER=1

Update manually

claude update

To find navigation and other pages in this documentation, fetch the llms.txt file at: https://code.claude.com/docs/llms.txt