Claude Code Society, home

Learn, setup

Set up on macOS

Everything the six lessons need on a Mac: Claude Code, Git, and the GitHub command line tool. Do the steps in order, and each one tells you what you should see when it worked.

  1. Open Terminal

    Press Cmd + Space, type Terminal and press Enter. Keep it in your Dock; you'll use it a lot.

  2. Install Claude Code

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

    When it finishes you'll see Claude Code successfully installed! This version updates itself in the background.

  3. Check Claude Code

    Open a new Terminal window (Cmd + N) and run:

    Terminal
    claude --version

    A version number followed by (Claude Code). If you get command not found: claude, see the troubleshooting page.

  4. Check for Git

    Terminal
    git --version

    If you see a version number, you have Git. If not, install Apple's Command Line Tools, which include it, and follow the window that opens:

    Terminal
    xcode-select --install
  5. Install Homebrew

    Homebrew is a free installer for command line tools. It's the official way to get the GitHub CLI on a Mac. Paste the line from brew.sh:

    Terminal
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    It explains what it will do and pauses before doing it. When it's done, it prints a "Next steps" section; run the commands listed there, then open a new Terminal window.

  6. Install the GitHub CLI

    Terminal
    brew install gh
    gh --version

    The second line prints a version number.

  7. Sign in and make an account

    Run claude once to sign in (Claude Code guide), and make a free GitHub account and connect it (Git and GitHub).

Other ways to install Claude Code

With Homebrew in place you can also run brew install --cask claude-code. That version doesn't update itself, so you'd run brew upgrade claude-code from time to time. Prefer not to use the terminal at all? There's a Claude Code desktop app for macOS, linked from the Advanced setup page. The lessons are written for the terminal.

You're set up when

  • claude --version, git --version and gh --version each print a version number.
  • Running claude opens a session without asking you to log in again.

Sources

Read on October 4, 2026.

  1. Claude Code, Advanced setup: system requirements, install commands, Homebrew cask and updates, the desktop app.
  2. Claude Code, Terminal guide for new users: opening Terminal, the success message.
  3. Git, Install for macOS: Xcode Command Line Tools.
  4. Homebrew: the install line.
  5. Installing gh on macOS: Homebrew as the recommended method.