Install

brew install --cask claude-code
claude --version

The 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-code

Stable or latest: pick one cask

The two Homebrew casks for Claude Code
CaskRelease channel
claude-codeStable, usually about a week behind, skips releases with major regressions
claude-code@latestLatest, every release as soon as it ships
brew install --cask claude-code         # stable
brew install --cask claude-code@latest  # latest

The two casks conflict, so only one can be installed. To see which one you have:

brew list --cask | grep claude-code

Updating

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@latest

Upgrading 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 claude

Keep 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  # npm

To 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 claude

The 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.

Single Mac mini base plans (USD)
PlanPaid upfrontTerm
Monthly$1691 month
Quarterly$481.653 months
Half-yearly$912.606 months
Yearly$1,723.8012 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.

Start with one real task

Tell us what you want to build.

Share the task, owner and acceptance criteria, then confirm configuration, cost and support.

Contact WodeMac ↗See current plans