macOS Setup Guide
Complete setup guide for Claude Code, VS Code, and Git/GitHub on macOS
This guide will walk you through setting up your Mac for development with Claude Code, VS Code, and Git/GitHub.
Before You Begin
Make sure you have administrator access to your Mac and a stable internet connection. This guide will take approximately 60 minutes to complete.
What You'll Install
- VS Code
- Claude Code CLI and Extension
- Git
- GitHub account and SSH keys
- Node.js (for this project and others)
- Python or R (for data analysis)
Prerequisites
- macOS 10.15 (Catalina) or later
- Administrator access to your Mac
- Internet connection
- About 60 minutes
Step 1: Install VS Code
- 1
Download VS Code
- Visit https://code.visualstudio.com
- Click "Download for Mac"
- Open the downloaded
.zipfile - Drag
Visual Studio Code.appto your Applications folder
- 2
Open VS Code from Terminal
To open VS Code from the command line:
- Open VS Code
- Press ⌘ + ⇧ + P to open the Command Palette
- Type "shell command"
- Select "Shell Command: Install 'code' command in PATH"
Test it:
Bashcode --versionYou should see the VS Code version number.
Step 2: Install Homebrew (Package Manager)
Homebrew makes it easy to install development tools on Mac.
- 1
Install Homebrew
Open Terminal (Applications → Utilities → Terminal) and run:
Bash/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Follow the prompts. You may need to enter your password.
- 2
Add Homebrew to PATH
After installation, run the commands Homebrew suggests (they'll look like this):
Bashecho 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"Test it:
Bashbrew --version
Step 3: Install Git
Git is the version control system you'll use to track changes and collaborate.
- 1
Install Git via Homebrew
Bashbrew install git - 2
Configure Git
Set your name and email (use the email you'll use for GitHub):
Bashgit config --global user.name "Your Name"git config --global user.email "your.email@example.com"Set VS Code as your default editor:
Bashgit config --global core.editor "code --wait"Set default branch name to
main:Bashgit config --global init.defaultBranch main - 3
Create Useful Aliases
Bashgit config --global alias.st statusgit config --global alias.co checkoutgit config --global alias.br branchgit config --global alias.cm commitTest it:
Bashgit --versiongit config --list
Step 4: Set Up GitHub
- 1
Create GitHub Account
- Go to https://github.com
- Click "Sign up"
- Follow the prompts to create your account
- 2
Generate SSH Key
SSH keys let you connect to GitHub securely without entering your password every time.
Generate a new SSH key:
Bashssh-keygen -t ed25519 -C "your.email@example.com"When prompted:
- Press ↵ to accept the default file location
- Enter a passphrase (optional but recommended)
- Press ↵ again to confirm
Start the SSH agent:
Basheval "$(ssh-agent -s)"Add your key to the agent:
Bashssh-add ~/.ssh/id_ed25519 - 3
Add SSH Key to GitHub
Copy your public key:
Bashpbcopy < ~/.ssh/id_ed25519.pubThis copies your key to the clipboard.
Add to GitHub:
- Go to https://github.com/settings/keys
- Click "New SSH key"
- Title: "My Mac" (or any descriptive name)
- Key type: Authentication Key
- Paste your key (⌘ + V)
- Click "Add SSH key"
Test your connection:
Bashssh -T git@github.comSuccess
You should see: "Hi [username]! You've successfully authenticated..."
Step 5: Install Node.js
Node.js is needed for many modern development tools.
brew install nodeTest it:
node --versionnpm --versionStep 6: Install Claude Code
Install the Extension
- Open VS Code
- Click the Extensions icon (or press ⌘ + ⇧ + X)
- Search for "Claude Code"
- Click "Install" on the official Anthropic extension
Sign In to Claude
- In VS Code, click the Claude icon in the sidebar
- Click "Sign in to Claude"
- Follow the prompts to authenticate with your Anthropic account
Step 7: Install Python (For Data Analysis)
If you plan to do data analysis with Python:
- 1
Install Python via Homebrew
Bashbrew install python@3.11 - 2
Create a Virtual Environment
For your first project:
Bashmkdir ~/my-first-projectcd ~/my-first-projectpython3 -m venv venvsource venv/bin/activateYou'll see
(venv)in your prompt when activated. - 3
Install Common Data Science Packages
Bashpip install pandas numpy matplotlib jupyterDeactivate when done:
Bashdeactivate
Step 8: Install R (Optional - For R Users)
Note
Skip this section if you're not planning to use R for data analysis.
- 1
Install R
Bashbrew install r - 2
Install RStudio (Optional)
Download from https://posit.co/download/rstudio-desktop/
- 3
Install R Extension for VS Code
- Open VS Code Extensions
- Search for "R"
- Install the official R extension
Step 9: Clone Your First Project
Let's clone a starter project with Claude templates.
- 1
Create a Projects Folder
Bashmkdir ~/projectscd ~/projects - 2
Clone This Repository
Bashgit clone git@github.com:yourusername/claude-code-integration.gitcd claude-code-integration - 3
Open in VS Code
Bashcode . - 4
Explore the Templates
Check out these files:
- CLAUDE.md
- .claudeignore
- settings.json
- package.json
- README.md
Step 10: Verify Your Setup
Run these commands to verify everything is installed:
# VS Codecode --version # Gitgit --version # Node.jsnode --versionnpm --version # Pythonpython3 --version # SSH to GitHubssh -T git@github.comAll Done!
All commands should work without errors. You're ready to start coding!
Next Steps
You're all set! Here's what to do next:
- Learn Git Basics: Go to the Git & GitHub track
- Start a Data Project: Try the Data Analysis track
- Build an App: Check out the App Builder track
- Automate Tasks: Explore the Automation track
Troubleshooting
Command Not Found
If you get "command not found" errors:
- Close and reopen Terminal
- Check your PATH:
echo $PATH- Ensure Homebrew is in your PATH (Step 2.2)
Tips for Mac Users
- Use ⌘ + ⇧ + P frequently in VS Code for the Command Palette
- Terminal shortcuts:
- ⌘ + T: New tab
- ⌘ + K: Clear screen
- Ctrl + C: Cancel current command
- Keep your system updated: Check for macOS updates regularly
- Use Time Machine for backups before major changes
Additional Resources
- VS Code Tips for Mac
- Oh My Zsh - Make your terminal better
- Homebrew Packages - Explore what you can install
Ready to code! Proceed to the Git & GitHub Basics to learn version control.