Free Setup Guide

Claude Code on Your Mac

A no-code, no-jargon walkthrough for non-technical users. Get set up in under 10 minutes, plus 10 security best practices every user needs.

5
Setup Steps
10
Security Tips
<10
Min to Install

Why Claude Code?

Go beyond the chat window. Claude Code works directly inside your Terminal.

From Chat to Command Line

You already know Claude as a brilliant AI assistant you chat with in your browser. Claude Code takes that a step further. Instead of copying and pasting between a chat window and your files, Claude Code works directly inside your computer's Terminal. It can read your files, write new ones, run commands, and execute multi-step tasks — all through plain English instructions.

What You'll Have When You're Done

Claude Code installed on your Mac, authenticated with your account, and ready to help you with real work — plus the security knowledge to use it safely from day one.

Good News for 2026

Anthropic now offers a native installer that does NOT require Node.js. If you've seen older tutorials mentioning npm or Node.js, skip those steps entirely. The process is much simpler now.

What You Need

Four things to check before installation.

1Compatible Mac

A Mac running macOS 10.15 (Catalina) or newer.

2Active Claude Subscription

Claude Code requires a Claude Pro ($20/month), Max ($100 or $200/month), Teams, or Enterprise plan. The free tier does not include Claude Code access.

3Internet Connection

Claude Code's "thinking" happens on Anthropic's servers, so you need a stable internet connection.

4Terminal

The built-in Terminal app on your Mac. Don't worry — we'll show you exactly how to open it.

Step-by-Step Setup

Five steps. Under 10 minutes. No coding experience required.

1Open Terminal

Terminal is a built-in Mac application. Press Command + Space to open Spotlight Search, type "Terminal", and press Enter. A window will appear with a blinking cursor — you're ready.

Pro Tip

If you'll use Claude Code regularly, right-click the Terminal icon in your Dock and select "Options > Keep in Dock" for quick access.

2Install Claude Code

Copy and paste this single command into Terminal, then press Enter:

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

That's it. This downloads and installs everything automatically. Installation typically takes under a minute.

Alternative: Homebrew

If you already use Homebrew, you can install with: brew install --cask claude-code

3Verify the Installation

Confirm Claude Code installed correctly:

claude --version

You should see a version number (something like 2.1.x). If you see that, you're good to go.

"command not found"?

Close your Terminal window completely, open a fresh one, and try again. The installation updates your system path, which requires a new Terminal session.

4Launch and Authenticate

Navigate to any folder and type:

claude

Claude Code opens a browser window for authentication. Sign in with your Claude Pro, Max, Teams, or Enterprise account, approve the connection, and return to Terminal. You'll see a > prompt — Claude Code is ready.

First Thing to Try

Type a simple request like "Explain what files are in this folder" or "Create a new file called notes.txt with today's date." Start small, then build up.

5Navigate to Your Project

Claude Code works best when launched from inside a project folder:

# Go to your Documents folder cd ~/Documents # Or go to a specific project cd ~/Documents/my-project # Then launch Claude Code claude

Drag and Drop Shortcut

Type cd (with a space), then drag a folder from Finder into Terminal. The path fills in automatically. Press Enter, then type claude.

Account Options

Claude Code uses the same subscription as your Claude.ai account.

Plan Cost Claude Code Best For
Free $0 No access Testing Claude chat only
Pro $20/mo Included Most users starting out
Max 5x $100/mo 5x Pro usage Daily power users
Max 20x $200/mo 20x Pro usage Heavy professional use

Best Entry Point

If you're already paying for Claude Pro, Claude Code is included at no extra cost. That's the best starting point for most small business owners.

10 Security Best Practices

Claude Code is powerful. These practices keep you and your business safe from day one.

1Never Share Your API Key

Your API key is like a password to your Claude account. Never paste it into emails, Slack, shared documents, or public code. Store it as an environment variable, not in project files. If you suspect exposure, revoke it immediately at console.anthropic.com.

2Never Use sudo to Install

Using sudo gives root-level access to your system — a security risk and a source of permission headaches.

# WRONG - do not do this sudo npm install -g @anthropic-ai/claude-code # RIGHT - use the native installer curl -fsSL https://claude.ai/install.sh | bash

3Keep .env Files Out of Version Control

If your projects use .env files for secrets (API keys, database passwords), make sure they're listed in your .gitignore. Claude Code can read files in your project folder — be thoughtful about what secrets live there.

# Add to your .gitignore .env .env.local .env.production

4Review Before You Approve

Claude Code asks permission before editing files or running commands. This is a security feature, not an annoyance. If Claude Code suggests a command you don't understand, ask it to explain before approving. Pay attention to commands that install packages, modify system files, or make network requests.

5Work in Project Folders, Not Home

Always navigate to a specific project folder before launching. Starting from your home directory gives Claude Code broader scope than necessary.

# Good: specific project cd ~/Documents/my-project claude # Avoid: home directory cd ~ claude

6Be Careful with MCP Servers

MCP servers extend Claude Code's capabilities by connecting to external services. Only enable servers from sources you trust (official GitHub or Anthropic integrations). Never enable "all project MCP servers" without reviewing each one.

7Don't Run as Admin

Claude Code should operate with your standard user permissions — never with administrator or root access. It doesn't need elevated privileges for any normal operation.

8Keep Sensitive Data Separate

If your project contains sensitive customer data, financial records, or passwords, move them outside the project directory or use a .claudeignore file to exclude them.

9Use Separate Keys for Separate Purposes

If you use the Anthropic API for other tools, create separate API keys for each — one for Claude Code, one for automation scripts, one for your content engine. If one key is compromised, revoke it without disrupting everything else.

10Stay Updated

Security patches ship with Claude Code updates. The native installer handles this automatically. If you've disabled auto-updates or installed via Homebrew, check for updates weekly. Verify your binaries are signed by "Anthropic PBC" and notarized by Apple.

Essential Commands

Bookmark this. You'll use these daily.

What You Want Command
Install Claude Code curl -fsSL https://claude.ai/install.sh | bash
Install via Homebrew brew install --cask claude-code
Check your version claude --version
Launch Claude Code claude
Update manually claude update
Check installation health claude doctor
Navigate to a folder cd ~/Documents/my-project
Exit Claude Code /exit or Ctrl+C

Ready for More?

This guide got you set up. The Claude Mastery Series teaches everything from basic prompting to advanced automation — built for small business owners who want results.

Explore Products