← All posts

How to Install Claude Code on Mac (2026 Step-by-Step)

How to install Claude Code on a Mac in 2026: native installer, Homebrew or npm, first login, the terminal settings that matter, and fixes for common errors.

To install Claude Code on a Mac, open a terminal and run the native installer: curl -fsSL https://claude.ai/install.sh | bash. Then type claude in any project folder and sign in with your Claude account. That is the whole install. Homebrew (brew install --cask claude-code) and npm also work, but the native installer is the one Anthropic recommends because it updates itself. You need macOS 13 or later and a paid Claude plan or API key. The rest of this guide covers which method to pick, the first-run steps, and the five-minute terminal setup that makes daily use far less annoying.

Before you start
  • macOS 13 (Ventura) or newer. Apple Silicon and Intel both work.
  • A Claude plan that includes Claude Code (Pro, Max, Team, Enterprise) or a Claude Console account with API billing. The free Claude plan does not include Claude Code. Our guide on whether Claude Code is free breaks down the options.
  • A terminal. The built-in Terminal app is fine to start. We cover better options at the end.
Three install methods compared
Method Command Auto-updates Needs Node.js Pick it if
Native installer curl -fsSL https://claude.ai/install.sh | bash Yes No You want the default, recommended path
Homebrew brew install --cask claude-code No (you run brew upgrade) No You manage every app with Homebrew
npm npm install -g @anthropic-ai/claude-code No Yes, Node 22+ You already live in Node and want it pinned per machine

A note on Homebrew: there are two casks. claude-code follows the stable channel, and claude-code@latest gets new versions sooner. If you are not sure, take the stable one.

Pick one method and stick with it. Installing two ways at once is the most common reason claude launches an old version: whichever binary is first on your PATH wins.

Step 1: run the installer

Open Terminal (Spotlight, type "Terminal", Enter) and paste:

curl -fsSL https://claude.ai/install.sh | bash

It downloads a single binary and puts it on your PATH. When it finishes, close the terminal window and open a new one so your shell picks up the change. Then check it:

claude --version

If you see a version number, you are done with the install.

Step 2: first launch and login

Move into a project folder and start it:

cd ~/code/my-project
claude

The first run walks you through a few choices: a color theme, then sign-in. Choosing your Claude account opens a browser tab to authorize; choosing Console uses API billing instead. After that Claude Code asks whether you trust the folder you are in, because it can read and edit files there. Say yes only for folders you actually want it working in.

Run it from the root of the project, not your home folder. Claude Code works best when the folder it starts in is the codebase you care about.

Step 3: the five-minute terminal setup

Claude Code works in the stock Terminal app with no configuration, but three Mac-specific settings are worth doing on day one.

Option as Meta. Some Claude Code shortcuts use the Option key (Option+Enter for a newline, Option+P to switch models). In Apple Terminal, go to Settings, Profiles, Keyboard and tick "Use Option as Meta Key". In iTerm2, set the left and right Option keys to "Esc+". Claude Code's first-run setup can do this for you.

Newlines. Shift+Enter inserts a newline without setup in Apple Terminal, iTerm2, Ghostty, Kitty, WezTerm and Warp. If you run Claude Code inside VS Code's terminal, run /terminal-setup once. If Shift+Enter ever submits your prompt instead, our Shift+Enter fix guide covers every terminal.

Notifications. Claude Code can tell you when it finishes or needs permission. Ghostty, Kitty and iTerm2 show a desktop notification by default. In Apple Terminal you get nothing unless you add a Notification hook or switch to the terminal bell. See our Claude Code notifications guide for the setup.

Step 4: a CLAUDE.md, then real work

Inside a session, run /init. Claude reads the project and writes a CLAUDE.md file with build commands and conventions, which it reloads every session. Trim it to what actually matters; our CLAUDE.md best practices post explains why shorter is better.

Then just ask for something small: "explain how auth works in this repo" or "add a test for the date parser". You will learn the permission prompts faster on a low-stakes task.

Common install errors on Mac
  • command not found: claude. Open a new terminal window. If it still fails, the install folder is not on your PATH; the installer prints the line to add to ~/.zshrc.
  • Old version keeps launching. You have two installs. Run which -a claude to see them and remove the one you do not want.
  • npm EACCES permission errors. Do not fix this with sudo npm. Use the native installer instead, which needs no Node and no root.
  • Login tab never opens. Copy the URL Claude Code prints into your browser manually.
  • Corporate laptop blocks curl scripts. Homebrew is usually allowed where curl-pipe-bash is not.
Which terminal should you run it in?

Once Claude Code is installed, the terminal around it decides how pleasant the next few hundred hours are. The built-in Terminal is fine for one session. Ghostty is the fast, minimal pick. iTerm2 has the deepest feature set.

If you plan to run several Claude Code sessions at once, that is where MOLTamp comes in. It is a skinnable terminal shell for Claude Code and other agent CLIs on Apple Silicon and Intel Macs, with up to 50 tabs, attention badges that flag which session finished or needs you, desktop notifications when an agent goes quiet while you are in another app, and a customizable status line. Shift+Enter works out of the box. It is free to use with every feature working; a one-time $10 license removes a recurring popup. Download MOLTamp if that sounds like your setup.

For the full comparison, see the best terminal for Claude Code round-up, or the Mac-specific best terminal for Claude Code on Mac guide.

FAQ

Does Claude Code need Node.js on Mac? Not with the native installer or Homebrew. The installed binary does not invoke Node. Only the npm install method needs Node.js, version 22 or later.

Is Claude Code free to install on Mac? The install is free. Using it needs a Claude Pro, Max, Team or Enterprise plan, or a Claude Console account with API billing.

How do I update Claude Code on Mac? Native installs update themselves in the background. Homebrew installs need brew upgrade claude-code. npm installs need npm install -g @anthropic-ai/claude-code again.

Does Claude Code work on Intel Macs? Yes. Claude Code supports macOS 13 and later on both Apple Silicon and Intel.

How do I uninstall Claude Code on Mac? Remove the binary using the same method you installed with (for Homebrew, brew uninstall --cask claude-code). Your settings live in ~/.claude/ if you want to delete those too.