Install
brew install --cask claude-code
claude --versionThe cask installs the claude command into Homebrew's bin folder, /opt/homebrew/bin on Apple silicon Macs and /usr/local/bin on Intel Macs. Open a new terminal, go to a project folder and run claude to start; the first run asks you to sign in in the browser.
If Homebrew answers "Cask 'claude-code' is unavailable: No Cask with this name exists", your local Homebrew index is older than the cask. Refresh it and try again:
brew update
brew install --cask claude-codeStable or latest: pick one cask
| Cask | Release channel |
|---|---|
| claude-code | Stable, usually about a week behind, skips releases with major regressions |
| claude-code@latest | Latest, every release as soon as it ships |
brew install --cask claude-code # stable
brew install --cask claude-code@latest # latestThe two casks conflict, so only one can be installed. To see which one you have:
brew list --cask | grep claude-codeUpdating
Unlike the official native installer, a Homebrew install does not update itself by default. Upgrade it yourself, using the cask name you installed:
brew upgrade --cask claude-code
# or
brew upgrade --cask claude-code@latestUpgrading the cask you did not install prints "Cask 'claude-code@latest' is not installed". If Homebrew installs an older version than you expect, run brew update first, or switch to claude-code@latest. claude doctor prints install health, settings errors and update status without starting a session.
To have Claude Code run the Homebrew upgrade for you in the background, set the environment variable CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1; it upgrades only the Claude Code package and asks you to restart when done.
Duplicate installs and uninstalling
Installing Claude Code more than one way (Homebrew, npm and the native installer) leaves several claude commands on your PATH, and the one that runs may not be the one you update. List them:
which -a claudeKeep one install and remove only the others. Pick the line for each install you are removing:
brew uninstall --cask claude-code # Homebrew, stable cask
brew uninstall --cask claude-code@latest # Homebrew, latest cask
npm uninstall -g @anthropic-ai/claude-code # npmTo remove a native install, follow the official uninstall steps. The official docs recommend the native installer (curl -fsSL https://claude.ai/install.sh | bash) when you have no reason to prefer Homebrew, because it updates in the background.
Claude Code or the Claude desktop app?
claude-code is the command-line tool you run in a terminal. The Claude desktop app is a separate cask and installs Claude.app, which updates itself:
brew install --cask claudeThe desktop app also lets you use Claude Code without a terminal. Claude Code and the desktop app both need macOS 13 or later (Homebrew itself has its own macOS support policy), and both sign in with your own Claude account: Pro, Max, Ultra, Team, Enterprise or Console for Claude Code; the free plan does not include it.
Already installed on a WodeMac Mac mini
A WodeMac dedicated Mac mini in California arrives with Claude Code and Codex installed, admin rights for you and 24/7 uptime, so there is nothing to install; sign in with your own account and run claude update when you want the newest version. You can still add Homebrew and any other tools you need.
| Plan | Paid upfront | Term |
|---|---|---|
| Monthly | $169 | 1 month |
| Quarterly | $481.65 | 3 months |
| Half-yearly | $912.60 | 6 months |
| Yearly | $1,723.80 | 12 months |
FAQ
What is the Homebrew command for Claude Code?
brew install --cask claude-code. For the newest release instead of the stable channel, use brew install --cask claude-code@latest.
Does Homebrew update Claude Code automatically?
Not by default. Run brew upgrade --cask claude-code (or claude-code@latest) yourself, or set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1 to let Claude Code run the upgrade in the background.
Why does Homebrew say the claude-code cask does not exist?
Your local Homebrew index is out of date. Run brew update, then install again.
Is brew install --cask claude the same thing?
No. That installs the Claude desktop app (Claude.app). The command-line Claude Code cask is claude-code.
Sources
Compiled from information published on the review date. Configuration, stock, prices and rules may change; the current order page, confirmed quotes and terms take precedence. This is a setup guide, not a customer case study.