Install Claude Code on your Mac: from terminal to your first chat with the agent in 15 steps

No terminal experience needed. Every step was done for real on a fresh Mac: the screen you see is the screen you'll get. Look at the box, copy the line, paste it, press Enter. At the end you give Claude its first job.

ghostty.org download page with the Universal Binary button Download Ghostty
Download Ghostty
On ghostty.org/download press «Universal Binary». Ghostty.dmg downloads: this is the terminal Claude Code runs in.
  1. Download GhosttyOn ghostty.org/download press «Universal Binary». Ghostty.dmg downloads: this is the terminal Claude Code runs in.
  2. Drag to ApplicationsOpen the downloaded Ghostty.dmg and drag the Ghostty icon onto the Applications folder.
  3. Open on first launchOpen Ghostty from Applications. macOS asks because it came from the internet: press «Open».
  4. Install Claude CodeCopy this line, paste it into Ghostty, press Enter.curl -fsSL https://claude.ai/install.sh | bash
  5. Installed, PATH warningIt says «Claude Code successfully installed». The «~/.local/bin is not in your PATH» note below is expected: the next step fixes it.
  6. PATH linePaste this line, press Enter. Without it, typing «claude» gives «command not found».echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
  7. Start in its own folderStart Claude Code in an empty folder made for it, not your home folder: it only gets access to that folder. Paste this line, press Enter.mkdir -p ~/Projects/ilk-site && cd ~/Projects/ilk-site && claude
  8. Pick a themeClaude Code asks for a theme: press Enter to keep Dark mode.
  9. Login method«1. Claude account with subscription» is selected: press Enter.
  10. Log in in the browserA browser opens by itself: log in with your Claude account (Google · Apple · email) and allow access.
  11. If the browser didn't openThe terminal waits here until you finish logging in. If no browser opened, press c, paste the copied link into a browser; if the page gives you a code, paste it here and press Enter.
  12. Security notesAfter login two security notes appear: read them, press Enter.
  13. Trust only this folder«Yes, I trust this folder» is selected: press Enter. It only asks about the ilk-site folder, not your whole computer.
  14. Empty prompt: the agent is listeningThe box at the bottom is where you talk to Claude. Write what you want in a plain sentence. (The yellow line here comes from our test machine's account; you won't see it.)
  15. Give it its first jobType it and press Enter: Claude asks permission to write the file, say «Yes»; when done it opens the page in your browser.build me a simple HTML page, then open it