How to Install Claude Code on Mac: Step-by-Step Guide
Install Claude Code on Mac with a single curl command (no Node.js required) or Homebrew. You'll need a Pro or Max plan subscription, macOS 13.0+, and about 5 minutes. This guide covers native installation, authentication, and how to monitor your usage with Usagebar to avoid hitting hard limits during critical tasks.
What is Claude Code and what's required to use it on Mac?
Claude Code is Anthropic's development tool that runs in your terminal, giving Claude direct access to your codebase for efficient coding assistance. Before you install, make sure you have:
- macOS 13.0 or later (runs on M1/M2/M3 Macs and Intel)
- Claude Pro or Max subscription at claude.ai/pricing
- 4 GB RAM minimum
- Internet connection (required for API calls)
- Bash or Zsh shell (standard on all modern Macs)
A Pro plan costs $20/month and includes both Claude on the web and Claude Code. If you're a student, you can access both tools free.
How to install Claude Code on Mac using the native installer
The native installer is the recommended method. It requires no additional dependencies and updates automatically in the background.
Step 1: Open Terminal on your Mac (press Cmd + Space, type "Terminal", press Enter).
Step 2: Copy and paste this command, then press Enter:
curl -fsSL https://claude.ai/install.sh | bash
The installer downloads and sets up Claude Code in seconds. You'll see output confirming the installation completed.
Step 3: Verify the installation by running:
claude doctor
This command confirms your installation type, version, and detects any configuration issues.
Step 4: Navigate to any project directory and start Claude Code:
cd your-awesome-project
claude
The official setup docs recommend checking the troubleshooting guide if you encounter permission errors or other issues.
Installing Claude Code on Mac with Homebrew
If you use Homebrew, installation is one command:
brew install --cask claude-code
This installs Claude Code directly from the Homebrew cask repository. Important note: Homebrew installations do not auto-update. To get new features and security fixes, periodically run:
brew upgrade claude-code
The native installer (curl method) is preferred because it auto-updates silently, but Homebrew works perfectly if you prefer package manager control.
How to authenticate Claude Code after installation
After installation, you need to authenticate with your Claude credentials. The process differs based on your subscription type:
For Claude Pro or Max subscribers
Claude Code integrates with your Pro or Max plan. When you first run the claude command, you'll be prompted to log in with your claude.ai account. This is the simplest setup.
Important: Check if you have an ANTHROPIC_API_KEY environment variable set on your Mac. If you do, Claude Code will use it for API authentication instead of your subscription, which means you'll be charged per-token usage rather than staying within your subscription limit.
To check for this variable, run:
echo $ANTHROPIC_API_KEY
If it returns anything other than blank, you may want to unset it to use your subscription billing instead:
unset ANTHROPIC_API_KEY
For Claude Console (team/organizational) users
If your organization uses the Claude Console, you'll authenticate through OAuth during your first Claude Code run. This requires active billing in your organization's Anthropic Console account.
Team members use their existing claude.ai accounts to log in, keeping authentication centralized.
Monitoring Claude Code usage to avoid hitting limits
Claude Code has usage limits based on your subscription tier. Pro users get a certain monthly allowance, and Max users get higher limits. Running claude /usage in your terminal shows your current balance, but this only works in active Claude Code sessions.
To check usage outside Claude Code, you can:
- Visit claude.ai/settings/usage in your web browser
- Use Usagebar, a macOS menu bar tool that shows real-time usage limits with smart 50%, 75%, and 90% alerts
Usagebar prevents the frustration of hitting a 5-hour lockout mid-project by notifying you before you run out of credits. It securely stores your credentials in macOS Keychain and updates usage instantly. Get Usagebar to stay in flow without context switching to check usage elsewhere.
The tool uses a "pay what you want" pricing model, and students get free access. Most developers use it to catch overage before it becomes a problem, since Claude Code can consume credits quickly on large codebases.
What to do after installing Claude Code on Mac
Configure your shell: Claude Code works best with Bash or Zsh. If you're using a different shell, the official setup docs have shell-specific configuration tips.
Enable auto-updates: Native installations auto-update by default, but you can configure whether you want the "latest" or "stable" release channel:
claude /config
Then navigate to "Auto-update channel" and choose your preference. The stable channel gets updates about one week after release.
Set up project-specific configs: Each project can have its own .mcp.json file for Claude Code customization. Setup guides for macOS terminal workflows cover this in detail.
Understand usage windows: Pro and Max plans reset on different schedules. Check when your usage resets so you know when your credits refresh each month.
Common installation issues on Mac
Command not found: If you get "command not found: claude" after installation, the binary may not be in your PATH. Restart Terminal or run source ~/.bashrc (or ~/.zshrc if using Zsh).
Permission denied: Don't use sudo with npm installation (if using the deprecated npm method). Instead, use the native installer or configure Node permissions properly.
API key conflicts: If you set an ANTHROPIC_API_KEY before installing Claude Code, you may need to unset it to use your subscription billing instead of pay-as-you-go API charges.
For other issues, the official troubleshooting guide covers search issues, network configuration, and platform-specific edge cases.
Key takeaways
- Install Claude Code on Mac with one curl command:
curl -fsSL https://claude.ai/install.sh | bash - Authenticate with your Claude.ai account (requires Pro or Max plan)
- Run
claudein any project directory to start using it - Monitor usage with the
/usagecommand or Usagebar to stay within limits - Configure auto-updates and project settings using
/configif needed - Check for
ANTHROPIC_API_KEYenvironment variable to avoid unexpected API billing
Claude Code integrates deeply with your terminal workflow once installed. The biggest challenge for most developers isn't the setup—it's managing usage limits during intensive coding sessions. Get Usagebar to eliminate the guesswork and keep your focus on shipping code.
Track Your Claude Code Usage
Never hit your usage limits unexpectedly. Usagebar lives in your menu bar and shows your 5-hour and weekly limits at a glance.
Get Usagebar