macOS Setup Guide
Complete setup guide for Claude Code, VS Code, and Git/GitHub on macOS
By the end of this guide, you'll have a professional development environment on your Mac—the same setup used by engineers at top tech companies.
Pro Tip
Already have some tools installed? Use the checklist below to skip sections you've already completed.
Your Setup Checklist
- VS Code installed and working from terminal
- Homebrew (Mac's package manager)
- Git configured with your identity
- GitHub account with SSH authentication
- Node.js for development tools
- Claude Code extension signed in
- Python or R (optional, for data analysis)
Part 1: VS Code — Your Code Editor
VS Code is where you'll spend most of your time. It's free, fast, and has an incredible ecosystem of extensions.
- 1
Download and Install
- Go to code.visualstudio.com
- Click Download for Mac
- Open the downloaded
.zipfile - Drag Visual Studio Code.app to your Applications folder
Note
If you see a security warning, go to System Preferences → Security & Privacy → Open Anyway.
- 2
Enable Terminal Command
This lets you open VS Code by typing
codein the terminal—a huge time saver.- Open VS Code
- Press ⌘ + ⇧ + P (Command Palette)
- Type shell command
- Select Shell Command: Install 'code' command in PATH
Test it — Open Terminal and run:
Bashcode --versionYou should see a version number like
1.85.0.
Part 2: Homebrew — Your Mac's Missing App Store
Ever downloaded a sketchy .pkg file from a random website to install a developer tool? Homebrew fixes that. It's how professional Mac developers install everything.
- 1
Install Homebrew
Open Terminal (press ⌘ + ␣, type "Terminal", press Enter) and paste this command:
Bash/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Terminal
You'll be asked for your password. Type it (nothing appears—that's a security feature) and press Enter. Then follow any prompts.
- 2
Add to PATH
After installation, Homebrew shows you some commands to run. They look like this:
Bashecho 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"Run both commands, then verify:
Bashbrew --versionYou should see something like
Homebrew 4.2.0.
Part 3: Git — Never Lose Your Work Again
Git tracks every change you make to your code. Made a mistake? Go back. Want to experiment? Create a branch. Collaborating? Merge your changes.
Pro Tip
Think of Git as an "infinite undo" for your entire project—but better, because you can also see what you changed and why.
- 1
Install Git
Bashbrew install gitThat's it. Homebrew handles the rest.
- 2
Configure Your Identity
Git tags every change with your name and email. Set these once:
Bashgit config --global user.name "Your Name"git config --global user.email "your.email@example.com"Warning
Use the same email you'll use for GitHub. This links your commits to your GitHub profile.
- 3
Set Sensible Defaults
Bash# Use VS Code for commit messagesgit config --global core.editor "code --wait"# Default branch name (GitHub standard)git config --global init.defaultBranch main# Handy shortcutsgit config --global alias.st statusgit config --global alias.co checkoutgit config --global alias.br branchVerify everything:
Bashgit config --list
Part 4: GitHub — Your Code's Home in the Cloud
GitHub is where your code lives online. It's also where you'll collaborate with others and showcase your work.
- 1
Create a GitHub Account
- Go to github.com
- Click Sign up
- Pick a professional username (this shows up on your profile and contributions)
- 2
Generate SSH Key
SSH keys let you push code to GitHub without entering your password every time.
Bashssh-keygen -t ed25519 -C "your.email@example.com"When prompted:
- File location: Press Enter (accept default)
- Passphrase: Type one (or press Enter for none)
- Confirm: Press Enter
- 3
Start SSH Agent
Basheval "$(ssh-agent -s)"ssh-add ~/.ssh/id_ed25519 - 4
Add Key to GitHub
Copy your public key:
Bashpbcopy < ~/.ssh/id_ed25519.pubNow add it to GitHub:
- Go to github.com/settings/keys
- Click New SSH key
- Title: "My Mac" (or whatever you want)
- Key type: Authentication Key
- Paste with ⌘ + V
- Click Add SSH key
- 5
Test the Connection
Bashssh -T git@github.comSuccess
You should see: "Hi [username]! You've successfully authenticated..."
If you see a warning about authenticity, type
yesand press Enter.
Part 5: Node.js — Foundation for Modern Tools
Node.js powers many development tools, including Claude Code. It's a one-liner:
brew install nodeVerify:
node --version # Should show v20+ or similarnpm --version # Should show 10+ or similarPart 6: Claude Code — Your AI Coding Partner
Now the reason you're here. Claude Code understands your entire codebase and can read files, write code, run commands, and help you ship real projects.
Part 7: Python (For Data Analysis)
Note
Skip this if you're not planning to do data analysis. You can always come back later.
- 1
Install Python
Bashbrew install python@3.11 - 2
Create a Virtual Environment
Virtual environments keep each project's packages separate (trust us, you want this):
Bashmkdir ~/my-first-projectcd ~/my-first-projectpython3 -m venv venvsource venv/bin/activateYour prompt now shows
(venv)— you're in the virtual environment. - 3
Install Data Science Packages
Bashpip install pandas numpy matplotlib jupyterWhen done working:
Bashdeactivate
Part 8: R (Optional)
Note
Skip this unless you specifically need R for statistical analysis.
brew install rFor RStudio, download from posit.co/download/rstudio-desktop
Verify Your Setup
Run this checklist to confirm everything works:
# Should all return version numberscode --versiongit --versionnode --versionnpm --versionpython3 --version # If installed # Should authenticate successfullyssh -T git@github.comSuccess
All working? You're ready to code with Claude.
Troubleshooting
Quick Reference: Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Open Command Palette | ⌘ + ⇧ + P |
| Open Extensions | ⌘ + ⇧ + X |
| Open Terminal in VS Code | Ctrl + ` |
| New Terminal Tab | ⌘ + T |
| Clear Terminal | ⌘ + K |
| Cancel Running Command | Ctrl + C |
What's Next?
Your Mac is ready. Here's where to go:
- New to version control? → Git & GitHub Basics
- Want to analyze data? → Data Analysis Track
- Ready to build apps? → App Builder Track
- Have repetitive tasks? → Automation Track
Or try the Quick Start Exercise to test your setup with Claude Code.