System requirements
- Operating system: macOS, Linux, or Windows
- Runtime: Node.js with npm, or Bun
- Architecture: x64 or ARM64
Installation methods
Verify the installation
Confirm Claude Code installed correctly by checking the version:Authentication setup
Run Claude Code for the first time and authenticate with your Anthropic account:/login command launches an OAuth 2.0 flow in your browser. Sign in with your Anthropic account to complete authentication. On macOS, credentials are stored securely in the system Keychain.
Environment check
After authenticating, run/doctor inside the REPL to verify your environment:
/doctor diagnoses your Claude Code installation and settings, reporting on authentication status, configuration validity, and connectivity.
Updating
To update Claude Code to the latest version, use the/upgrade command inside the REPL:
Uninstallation
On macOS, Claude Code stores credentials in the system Keychain. Uninstalling the package does not remove those entries. You can remove them manually via Keychain Access if needed.