10uGet early access
10u / install-claude-code-mac

Claude Code Mac guide: install and set up Claude Code on macOS

To install Claude Code on a Mac, open Terminal and run curl -fsSL https://claude.ai/install.sh | bash, or brew install --cask claude-code if you use Homebrew. Open a new Terminal window, check it with claude --version, then type claude in your project folder and sign in. Claude Code runs on macOS 13.0 or later, on both Apple Silicon and Intel Macs.

Claude Code on a Mac: the installer running in the macOS Terminal, beside a first session in a project folder
Claude Code on a Mac: the installer running in the macOS Terminal, beside a first session in a project folder

What your Mac needs

  • macOS 13.0 (Ventura) or later. Open the Apple menu and choose About This Mac to see your version.
  • At least 4 GB of RAM and an internet connection. Apple Silicon (ARM64) and Intel (x64) Macs are both supported.
  • A shell. macOS uses Zsh by default, and Bash works too.
  • A Claude Pro, Max, Ultra, Team or Enterprise plan, or a Claude Console account. The free Claude plan does not include Claude Code.

You do not need Node.js, Xcode or administrator rights for the recommended install. Git is optional, but most projects use it, and some features, such as sending a local repository to a cloud session, need git 2.31 or later. Run git --version to check.

Source: Set up Claude Code, Anthropic

Option 1: the native installer (recommended)

Open Terminal. You can find it in Applications, then Utilities, or by pressing Command and Space and typing Terminal. Paste this line and press Return:

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

The installer shows no progress bar while it downloads, so wait for it to finish. It puts the claude command at ~/.local/bin/claude and keeps each version in ~/.local/share/claude/versions/, all inside your home folder. Native installs update themselves in the background, so this is the method to pick if you never want to think about updates.

Source: Set up Claude Code, Anthropic

Option 2: Homebrew

If you already manage your Mac software with Homebrew, Claude Code is a cask:

brew install --cask claude-code

There are two casks. claude-code follows the stable channel, which is typically about a week behind and skips releases with major regressions. claude-code@latest gets every release as soon as it ships:

brew install --cask claude-code@latest

Homebrew installs do not update themselves. Run brew upgrade claude-code, or brew upgrade claude-code@latest, to update, and brew cleanup now and then, because Homebrew keeps old versions on disk. If you want Claude Code to run the Homebrew upgrade for you, set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE to 1.

Source: Set up Claude Code, Anthropic

Native installer or Homebrew: which to pick

QuestionNative installerHomebrew
UpdatesAutomatic, in the backgroundManual, with brew upgrade
Release channelautoUpdatesChannel setting: latest or stableChosen by cask: claude-code or claude-code@latest
Where it lives~/.local/bin and ~/.local/share/claudeHomebrew's own folders
NeedsTerminal and curlHomebrew installed first
Best forMost peoplePeople who already use Homebrew for everything

Pick one. Installing both leaves two copies of claude on your Mac, and your shell runs whichever it finds first on your PATH, which is a common reason an update seems not to work.

Check that Claude Code installed

claude --versionclaude doctor

A working install prints a version number such as 2.1.211 (Claude Code). claude doctor checks the install, your settings files and Keychain access, and prints any warnings with a suggested fix, without starting a session.

Source: Set up Claude Code, Anthropic

Fix zsh: command not found: claude

If Terminal says zsh: command not found: claude, the install worked but ~/.local/bin is not on your PATH. First check that the program is there and whether the folder is on your PATH:

ls -la ~/.local/bin/claudeecho $PATH | tr ':' '\n' | grep -Fx "$HOME/.local/bin"

If the first line lists the file and the second prints nothing, add the folder to your Zsh configuration, which is the default shell on macOS:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrcsource ~/.zshrc

If you use Bash on macOS, the line goes in ~/.bash_profile instead of ~/.bashrc, because Terminal starts Bash as a login shell, and a login shell ignores ~/.bashrc:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profilesource ~/.bash_profile

Then open a new Terminal window and run claude --version again. A window that was already open keeps its old PATH, and the terminal inside an editor such as VS Code takes its PATH from the editor, so quit and reopen the editor too.

Source: Troubleshoot installation and login, Anthropic

Sign in on your Mac

Open Terminal in your project folder, type claude and follow the prompts. Claude Code opens your browser to finish signing in with your Claude account or your Claude Console account. On macOS, Claude Code saves your login in the login Keychain, the same encrypted store your Mac uses for passwords.

If the Keychain rejects the write, for example when it is locked during an SSH session or its password is out of step with your account password, Claude Code falls back to a plain file at ~/.claude/.credentials.json. claude doctor flags this with a warning starting macOS Keychain is not writable, and suggests how to unlock it and move your login back into the Keychain.

Source: Troubleshoot installation and login, Anthropic

Source: Claude Code security, Anthropic

Set up Terminal for Claude Code shortcuts

Some Claude Code shortcuts use the Option key, such as Option and Enter for a new line, or Option and P to switch models. Most Mac terminals do not send Option as a modifier until you turn it on, so these shortcuts do nothing at first.

  • Apple Terminal: open Settings, then Profiles, then Keyboard, and tick Use Option as Meta Key.
  • iTerm2: open Settings, then Profiles, then Keys, then General, and set the left and right Option keys to Esc+.
  • VS Code terminal: add "terminal.integrated.macOptionIsMeta": true to your VS Code settings.

Running /terminal-setup inside Claude Code can make the change for you in Apple Terminal on macOS 26 and earlier. Ghostty, Kitty, iTerm2, WezTerm and Warp handle Shift and Enter for a new line without any setup.

Source: Configure your terminal for Claude Code, Anthropic

The Claude desktop app for Mac

If you would rather not use the terminal at all, Claude Code is also in the Claude desktop app, in the Code tab at the top of the sidebar. The Mac download is a universal build for both Intel and Apple Silicon. Download it, drag it to Applications, launch Claude and sign in. The desktop app needs the same paid plan as the command line, and it can also connect to other machines over SSH and install Claude Code on them for you.

Source: Claude Desktop quickstart, Anthropic

Check the Claude Code binary on macOS

Every Claude Code binary for macOS is signed by Anthropic PBC and notarized by Apple. To confirm the copy on your Mac is genuine, run:

codesign --verify --verbose ~/.local/bin/claude

For a deeper check, each release publishes a manifest.json with SHA256 checksums for every platform, signed with an Anthropic GPG key, so you can compare the output of shasum -a 256 against it.

Source: Set up Claude Code, Anthropic

Where Claude Code keeps its files on a Mac

Knowing where things live helps when you move to a new Mac or want a clean start. The program itself sits in ~/.local/bin and ~/.local/share/claude for a native install, or in Homebrew's folders for a cask. Your own settings, allowed tools, MCP server list and session history live in the ~/.claude folder and the ~/.claude.json file in your home folder. Inside each project, Claude Code reads a .claude folder for that project's settings and a .mcp.json file for project MCP servers. Folders whose names start with a dot are hidden in Finder: press Command, Shift and period to show them.

The VS Code extension, the JetBrains plugin and the desktop app write to ~/.claude as well, so the folder comes back the next time any of them runs, even after you uninstall the command line tool.

Source: Set up Claude Code, Anthropic

Common Mac install problems

dyld: Symbol not found or Abort trap: 6

These errors mean your macOS is older than Claude Code supports. Claude Code needs macOS 13.0 or later. Homebrew downloads the same program, so switching install method does not help: update macOS first.

Claude Code still shows an old version

You probably have two installs, for example the native installer and Homebrew, or an old npm install. Run which -a claude to list every copy your shell can see, then remove the one you do not use.

The install script fails with an error quoting <

What downloaded was a web page rather than the install script, often because a network filter, proxy or captive Wi-Fi page got in the way. Check that your Mac can reach claude.ai, or install with Homebrew instead.

Source: Troubleshoot installation and login, Anthropic

Update or uninstall Claude Code on a Mac

Native installs update in the background; run claude update to update straight away. To remove a native install, delete the program and its versions folder:

rm -f ~/.local/bin/clauderm -rf ~/.local/share/claude

For Homebrew, run brew uninstall --cask claude-code, or claude-code@latest. Your settings and session history live in ~/.claude and ~/.claude.json. Delete those only for a completely clean start, because removing them cannot be undone.

Source: Set up Claude Code, Anthropic

Running more than one session on your Mac

Once Claude Code works, it is easy to end up with four Terminal tabs, each running a session on a different part of a project, and to lose track of which one is waiting for you. 10u is an AI coding agent dashboard that shows every Claude Code and Codex session side by side, each in its real terminal, marked Needs you, Working, Waiting or Parked. They do the building. You decide what gets built.

10u: every sample agent side by side under its goal, with the ones waiting on you marked
10u: every sample agent side by side under its goal, with the ones waiting on you marked

Questions people ask

How do I install Claude Code on a Mac?
Open Terminal and run curl -fsSL https://claude.ai/install.sh | bash, or brew install --cask claude-code. Open a new Terminal window and run claude.
Does Claude Code work on Apple Silicon Macs?
Yes. Claude Code runs natively on Apple Silicon (ARM64) and Intel (x64) Macs with macOS 13.0 or later.
Is there a Claude Code app for Mac?
Yes. Claude Code is in the Code tab of the Claude desktop app, a universal download for Intel and Apple Silicon Macs.
Why does my Mac say zsh: command not found: claude?
The folder ~/.local/bin is not on your PATH. Add export PATH="$HOME/.local/bin:$PATH" to ~/.zshrc and open a new Terminal window.
Does Homebrew update Claude Code automatically?
No. Run brew upgrade claude-code to update, or set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE to 1 so Claude Code runs the upgrade for you.

10u is in early access. Leave your email and we will let you in as places open.