Install Claude Code on Mac

Quick answer. The easiest way to set up Claude Code on a Mac is the free app Set Up Your Mac for Claude Code, which installs Claude Code and the developer tools it needs and verifies it works. If you're a developer with Homebrew installed, to install just the CLI yourself, run one Homebrew command:

brew install --cask claude-code@latest

Then run claude inside a project to start it. ✓ Every command verified on macOS 26.5, 2026-06-26, arm64.

Download the app "Set Up Your Mac for Claude Code"

This page covers Claude Code, the command-line coding tool you run with the claude command. For the graphical Claude Desktop app, see Claude Code vs Claude Desktop.

Before you install: Claude Code needs a developer environment — a terminal, Homebrew, the Xcode Command Line Tools, git, and a paid Claude plan. If your Mac isn't set up for development, see Prerequisites for Claude Code, or let the app above set it all up.

Install with Homebrew (recommended)

brew install --cask claude-code@latest

Homebrew is the recommended method for developers: one command, and the same brew upgrade path as the rest of your tools. Homebrew installs do not auto-update — see Update Claude Code. For the Homebrew details (release channels, auto-update, uninstall), see Brew Install Claude Code.

Start Claude Code and sign in

cd your-project
claude

The first launch opens your browser to sign in. Claude Code requires a paid Claude plan (Pro, Max, Team, or Enterprise) or an Anthropic Console / API account; the free Claude.ai plan does not include it.

Verify the install

claude --version

For a fuller check (install path, config, last update, Keychain):

claude doctor

✓ Every command verified on macOS 26.5, 2026-06-26, arm64.

If claude is not found, see command not found: claude.

Download the app "Set Up Your Mac for Claude Code"

Other install methods

Sources

Command verification

Every command on this page was executed top-to-bottom on a clean macOS 26.5 (arm64) system on 2026-06-26.

CommandStatusResolved version
brew install --cask claude-code@latestpass
brew install --cask claude-code@latestpass
cd your-projectskipped
claudeskipped
claude --versionpass2.1.193
claude doctorskipped

Verification run 20260626T160057Z.