Install Claude Code on macOS: Step-by-Step Guide

Want to use Claude Code on your Mac but don't know where to start? This guide shows you exactly how to install and set up Claude Code on macOS, step by step. Whether you have a MacBook Air M1, Mac Studio, or Intel iMac, you'll find all the instructions here to get up and running in less than 10 minutes. We cover system requirements, different installation methods, initial setup, and solutions to the most common problems.

What are the system requirements for installing Claude Code on macOS?

To install Claude Code on macOS, you need macOS 10.15 (Catalina) or later, 4 GB of RAM, 500 MB of disk space, and an active Anthropic account. These requirements are intentionally lightweight to make the tool accessible to everyone.

Here's a breakdown of the technical requirements:

  • Operating System: macOS 10.15 (Catalina) or newer. Monterey, Ventura, and Sonoma are fully compatible.
  • Processor: Compatible with both Intel and Apple Silicon chips (M1, M2, M3). No difference in functionality between the two architectures.
  • RAM: 4 GB minimum, 8 GB recommended for smooth performance when working with multiple projects.
  • Disk Space: 500 MB for the application, plus 1 to 2 GB for dependencies and projects.
  • Internet Connection: Required for initial installation and use (Claude Code runs online).

For your user account, you'll need an Anthropic account. Creating one is free on Anthropic's official website. You can start with the free plan, which offers a monthly quota sufficient for getting started. Paid plans (Pro at $20/month, Team at $30/month per user) unlock higher quotas according to Anthropic's official documentation.

Check your macOS version by clicking the Apple logo in the top-left corner, then "About This Mac." If you're on a version older than Catalina, you'll need to update your system before proceeding.

How do you download and install Claude Code on Mac?

Installing Claude Code on macOS is done by downloading the .dmg file from Anthropic's official website, then dragging the application into the Applications folder. The entire process takes about 5 minutes.

Follow these exact steps:

  1. Visit the official website: Go to claude.ai and log in with your Anthropic account.

  2. Download Claude Code: In the main menu, click "Downloads" then select "Claude Code for macOS." The .dmg file (approximately 150 MB) will download automatically.

  3. Open the .dmg file: Once the download is complete, double-click the "ClaudeCode-macOS.dmg" file in your Downloads folder.

  4. Install the application: A window opens showing the Claude Code icon and a shortcut to the Applications folder. Drag the Claude Code icon onto the Applications folder.

  5. Launch Claude Code: Open your Applications folder (Cmd + Shift + A in Finder) and double-click Claude Code.

  6. Authorize the application: On first launch, macOS displays a security message. Click "Open" to confirm. If the "Open" button doesn't appear, go to System Preferences > Privacy and Security, then click "Open Anyway" next to the Claude Code message.

  7. Sign in: The application asks you to authenticate with your Anthropic account. Enter your email and password.

Installation is now complete. Claude Code appears in your dock and you can pin it for quick access by right-clicking the icon and selecting "Options" > "Keep in Dock."

For advanced users who prefer the command line, installation via Homebrew is also available with the command brew install --cask claude-code, but the .dmg method remains the simplest for beginners.

How do you configure Claude Code after installation?

Initial Claude Code setup involves choosing your preferred model (Claude 3.5 Sonnet recommended), setting your projects folder, and adjusting code generation settings. This step takes 2 to 3 minutes and significantly improves your experience.

Here are the essential settings to configure:

Model selection

Click the gear icon in the top-right corner, then "Model." You have access to several Claude versions:

  • Claude 3.5 Sonnet: The best balance for coding. Fast, accurate, excellent for beginners. This is the default choice and what we recommend.
  • Claude 3 Opus: More powerful but slower and uses more credits. Reserve it for complex projects.
  • Claude 3 Haiku: Very fast, ideal for simple questions and minor edits.

For getting started, stick with Claude 3.5 Sonnet. You can change it anytime based on your needs.

Projects folder

In Settings, under "Projects," define where Claude Code will create and save your projects. By default, it uses ~/Documents/ClaudeCode. You can change it to any folder on your Mac.

Practical tip: Create a dedicated folder like ~/Claude-Projects to keep things organized, especially if you're already using other development tools.

Generation settings

In "Preferences" > "Code Generation," you can adjust:

  • Comment Detail Level: "Medium" is perfect for learning. "High" adds more explanations in the generated code.
  • Code Style: Choose between "Modern" (recommended) or "Classic" based on your preferences.
  • Auto-verification: Enable this option so Claude checks the code before presenting it to you.

Keyboard shortcuts

In "Preferences" > "Shortcuts," customize quick keys. The most useful ones:

  • Cmd + N: New project
  • Cmd + Shift + P: Open command palette
  • Cmd + K: Launch code generation

Once these settings are configured, save by clicking the "Apply" button at the bottom of the preferences window.

What are common installation errors and how do you fix them?

The three most common errors when installing Claude Code on macOS are Gatekeeper blocking, permission issues, and conflicts with other development tools. Here's how to identify and fix them.

"The application cannot be opened" error

This message appears when Gatekeeper blocks Claude Code. Solution:

  1. Go to System Preferences > Privacy and Security
  2. Scroll down until you see the Claude Code message
  3. Click "Open Anyway"
  4. Confirm with your administrator password
  5. Relaunch Claude Code

If the problem persists, open Terminal and type:

xattr -cr /Applications/ClaudeCode.app

This command removes quarantine attributes that sometimes block downloaded applications.

Server connection error

If Claude Code can't connect after authentication:

  • Check your internet connection (open a browser and test)
  • Temporarily disable your VPN if you use one
  • Verify your firewall isn't blocking Claude Code (System Preferences > Security > Firewall > Firewall Options)
  • Restart the application

If the error persists, the issue may be with Anthropic's servers. Check status.anthropic.com to verify service status.

Projects folder permission error

If Claude Code displays "Unable to write to projects folder":

  1. Open Finder and navigate to the folder in question
  2. Right-click > "Get Info"
  3. Unlock permissions by clicking the lock at the bottom
  4. Change "Read Only" to "Read and Write" for your user
  5. Click the gear icon > "Apply to Enclosed Items"

Conflict with other code editors

If you've already installed VS Code, Cursor, or other IDEs, they can sometimes conflict with Claude Code. The solution: set Claude Code as the default editor for code files in System Preferences > Extensions > Default Text Editor.

For Cursor users weighing both tools, our article Cursor vs Claude Code compares the strengths and weaknesses of each solution in detail.

How do you verify your installation is working correctly?

To test your Claude Code installation, create a simple first project that displays "Hello World" on a web page. This test takes 2 minutes and confirms all components are working.

Here's the complete test to perform:

  1. Launch Claude Code from your Applications folder

  2. Create a new project: Click "New Project" or press Cmd + N

  3. Name it: Call it "test-installation"

  4. Ask Claude: In the chat bar, type exactly: "Create a simple HTML page that displays 'Hello World' in large text centered on the screen with a light blue background"

  5. Verify generation: Claude Code should generate an index.html file in a few seconds. You'll see the code appear in the editor on the right.

  6. Preview the result: Click the "Preview" button in the top-right. A window opens with your web page.

  7. Test modifications: Ask Claude "Change the background color to mint green." The code should update automatically.

If all these steps work, your installation is perfect. You're ready to create your first real projects with Claude Code.

To go further with the tool, check out our complete Claude Code tutorial for beginners which covers advanced features and best practices.

How do you update Claude Code on macOS?

Claude Code updates automatically on startup, but you can force a manual update from the Help menu > Check for Updates. Updates regularly bring new features and bug fixes.

The automatic update process:

  • Each time you launch Claude Code, it checks for a new version
  • If one exists, a notification appears in the top-right
  • Click "Update" to download the new version
  • The application automatically restarts after installation
  • Your projects and settings are preserved

For a manual update:

  1. Open Claude Code
  2. Go to the "Help" menu at the top of the screen
  3. Click "Check for Updates"
  4. If a newer version exists, click "Download and Install"
  5. Wait for the download to complete (usually 1 to 2 minutes)
  6. Let the application restart

Major updates (version changes, like 1.0 to 2.0) may require a complete Mac restart. Claude Code will inform you before proceeding.

Update frequency: Anthropic releases minor updates every 2 to 3 weeks and major versions every 2 to 3 months. You can view complete release notes on Anthropic's official website to see what's new in each update.

Tip: Enable automatic updates in Preferences > General > "Automatically install updates" to always benefit from the latest improvements without thinking about it.

Conclusion

Installing Claude Code on macOS is a straightforward process that takes less than 10 minutes. Once the application is configured, you have a powerful AI assistant to create websites, applications, and scripts without prior programming knowledge. Automatic updates ensure you always benefit from the latest improvements.

If you encounter a problem not covered in this guide, Anthropic's official documentation and the Claude Code community on Discord are valuable resources for getting help quickly.