Claude Code on a remote Mac: install, login and Xcode builds

Claude Code is Anthropic’s AI coding assistant for the terminal. It reads your project, edits code, runs commands and tests, and works through a task step by step.

Running it on a remote Mac has some clear advantages:

1. Install

SSH into the remote Mac and use the official native installer. It needs no admin rights and installs into your home directory:

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

Then open a new terminal window and check:

claude --version

Native installs update themselves in the background. Homebrew works too: brew install --cask claude-code.

If you prefer a GUI, Claude Code is also available in the Claude desktop app.

On a Mac rented from Tokyo Mac, the easiest way is to open My Macs → Install apps on the website, tick the Claude desktop app and press install — it’s ready in a few minutes. The package comes from Tokyo Mac’s own software server in the same data center as the machine, so it’s faster than downloading it yourself, and it’s checked against the SHA-256 recorded by Homebrew before installing. It works on a standard user account, with no administrator password.

Selecting Claude under My Macs → Install apps on Tokyo Mac

2. Log in

Go to your project and start it:

cd ~/projects/my-app
claude

The first run asks you to log in. You’ll need a paid Claude plan (Pro, Max, Team and so on) or an Anthropic Console API account. Over SSH, the terminal shows a login URL: open it in your own computer’s browser, sign in, and paste the code it gives you back into the terminal. Or connect with Screen Sharing and do it in the remote Mac’s browser.

3. Keep sessions alive with tmux

When SSH disconnects, whatever was running in it stops too. Put Claude Code inside tmux so it keeps going:

brew install tmux
tmux new -s claude      # new session; run claude inside it
# press Ctrl-b, then d: detach, it keeps running
tmux attach -t claude   # next time you SSH in, pick up where you left off

Dropped connection, different computer — you return to the same session.

4. Workflows that work well

Let it run iOS builds and tests. Just describe the task:

Run MyApp’s unit tests on the iPhone Simulator, fix whatever fails, and run them again until they all pass.

It runs commands along these lines and keeps iterating on the output:

xcodebuild test -scheme MyApp \
  -destination 'platform=iOS Simulator,name=iPhone 17'

Write a CLAUDE.md. Put a CLAUDE.md in the project root with your build and test commands, code conventions and directories it shouldn’t touch. Claude Code reads it on every start and wastes far less time.

Look at the Simulator when you need to. Connect with Screen Sharing to check the UI; the rest of the time, stay on SSH — lighter and snappier.

Pair it with VS Code. Connect with VS Code’s Remote - SSH, run claude in its terminal, and watch the edits appear in the editor.

Commit often. Have it git commit after each step so you can always roll back.

5. Staying safe

On Tokyo Mac

Tokyo Mac machines are dedicated Apple silicon Mac minis with sleep and screen lock turned off, so Claude Code can work for hours. Tick Homebrew when you set up your account and tmux, Node and friends are one command away; Install apps also has the Claude desktop app, iTerm2, Ghostty and more. The native Claude Code installer needs no admin rights, so it works straight away on your standard user account.

New to Tokyo Mac? Start with Getting started with Tokyo Mac. Building for iOS? See How to build and publish an iOS app without owning a Mac.

More guides