System requirements
- Operating Systems: macOS, Linux, or Windows WSL2
- Hardware: 4 GB+ RAM
Installation
To install Claude Code, use one of the following methods:
Latest Version (default)
Stable Version
Specific Version
curl -fsSL https://claude.ai/install.sh | bash
curl -fsSL https://claude.ai/install.sh | bash -s stable
curl -fsSL https://claude.ai/install.sh | bash -s 2.0.76
After the installation process completes, verify the installation with:
claude --version
# 2.0.76 (Claude Code)
Run claude doctor after installation to check your installation type and version.
Authentication
To use Claude Code, a coding plan subscription or an Anthropic-API compatible endpoint is required.
Coding plans utilize a non-token billing model, while API usage operates on a token-based system.
Coding Plans