Search for a command to run...
Install Anthropic's Claude Code with the native installer or the signed apt, dnf and apk repositories, authenticate, and verify the release signature.
Claude Code is Anthropic's terminal agent. It reads your repository, edits files, runs commands and works through a plan with you — from the shell, in CI, or inside your editor.
Claude Code 2.1.x · native installer (claude.ai/install.sh) · signed apt, dnf and apk
repositories with a stable and a latest channel · release fingerprint
31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE
# macOS, Linux and WSL
curl -fsSL https://claude.ai/install.sh | bash# Windows PowerShell
irm https://claude.ai/install.ps1 | iexREM Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdThe installer shows no progress while it downloads. When it finishes, open a new terminal and check the version:
claude --versionNative installations update themselves in the background.
Claude Code publishes signed apt, dnf and apk repositories. Each has a stable channel
(about a week old, skips regressions) and a latest channel (every release as it ships).
# Prerequisites
sudo apt install curl gnupg
# The signing key
sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsSL https://downloads.claude.ai/keys/claude-code.asc \
-o /etc/apt/keyrings/claude-code.asc
# Check the fingerprint — it must be 31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE
gpg --show-keys /etc/apt/keyrings/claude-code.asc
# The repository
echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/stable stable main" \
| sudo tee /etc/apt/sources.list.d/claude-code.list
sudo apt update
sudo apt install claude-code# Homebrew (stable channel)
brew install --cask claude-code
# Homebrew (latest channel)
brew install --cask claude-code@latest# WinGet
winget install Anthropic.ClaudeCode# npm — requires Node.js 22 or newer
npm install -g @anthropic-ai/claude-codesudo npm install -g causes permission problems and is a security risk. If the global
npm directory is not writable, use the native installer or a package manager instead.
Alpine needs bash, curl, libgcc, libstdc++ and ripgrep, plus
USE_BUILTIN_RIPGREP=0:
apk add bash curl libgcc libstdc++ ripgrep{
"env": {
"USE_BUILTIN_RIPGREP": "0"
}
}# Start an interactive session and follow the browser prompts
claude
# Or authenticate with an API key
export ANTHROPIC_API_KEY="sk-ant-..."
claude# Use a different provider — Bedrock, Google Cloud or Microsoft Foundry
export CLAUDE_CODE_USE_BEDROCK=1
export CLAUDE_CODE_USE_VERTEX=1
export CLAUDE_CODE_USE_FOUNDRY=1# Update now
claude update
# Or let the background updater do it{
"autoUpdatesChannel": "stable",
"minimumVersion": "2.1.100"
}"latest" (default) — new features as soon as they ship"stable" — about a week old, skips releases with major regressions{
"env": {
"DISABLE_AUTOUPDATER": "1"
}
}DISABLE_AUTOUPDATER only stops the background check — claude update still works. Use
DISABLE_UPDATES to block every update path.
Each release publishes a manifest.json with the SHA256 checksum of every platform
binary, signed with the Anthropic GPG key:
# 1. Import the key and check the fingerprint
curl -fsSL https://downloads.claude.ai/keys/claude-code.asc | gpg --import
gpg --fingerprint security@anthropic.com
# 31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE
# 2. Download the manifest and its signature
REPO=https://downloads.claude.ai/claude-code-releases
VERSION=2.1.89
curl -fsSLO "$REPO/$VERSION/manifest.json"
curl -fsSLO "$REPO/$VERSION/manifest.json.sig"
# 3. Verify
gpg --verify manifest.json.sig manifest.json
# gpg: Good signature from "Anthropic Claude Code Release Signing <security@anthropic.com>"
# 4. Check the binary against the manifest
sha256sum ~/.local/share/claude/versions/2.1.89/claudeCLAUDE.md in the repository with the conventions the agent should
follow, and commit it.stable channel on shared machines so nobody gets a broken release on a
Monday morning.ANTHROPIC_API_KEY from a secret store, never from a committed file.Install AWS Kiro, the agentic IDE for spec-driven development, and connect the CLI, web and cloud surfaces to the same project context.
Install Google's Gemini CLI with npm, npx or Homebrew, authenticate with OAuth, an API key or Vertex AI, script it in headless mode and migrate to Antigravity CLI.