Claude Code · May 20, 2026 · Last updated 2026-05-21 · 13 min read
Run Claude Code Remotely on an Always-On Mac

Questions this page answers
- How do I run Claude Code remotely?
- What does a remote Mac need for Claude Code sessions?
- How do phone check-ins, SSH, and browser sessions fit together?
- When is a hosted always-on Mac better than a laptop for Claude Code?
Architecture
The Remote Claude Code Stack
| Layer | Use | What can go wrong |
|---|---|---|
| Always-on Mac | Runs Claude Code, repo services, browsers, and local tools. | Sleep, updates, power, or network drops kill the session. |
| SSH | Terminal access, logs, git, builds, and process control. | Weak auth or missing keys turns remote dev into a security risk. |
| VNC or Screen Sharing | GUI checks, browser auth, app permissions, and visual debugging. | Unsecured exposure or slow network makes it painful. |
| Mobile check-in | Approve, steer, or stop work while away. | Too much control from a phone leads to rushed approvals. |
| Runbook | Defines what Claude Code can do unattended. | Without it, every remote session becomes vibes plus hope. |
Host Requirements Before You Start
- The Mac does not sleep while jobs are running.
- SSH is enabled with key-based auth and no shared admin password.
- The repo, package manager cache, and local services live on persistent disk.
- Build, lint, typecheck, test, and e2e commands are documented.
- Logs survive logout and reboot.
- A human approval path exists for deployments, billing, secrets, and account actions.
Do this before remote work
Setup Flow
- Create a least-privilege macOS user for agent work.
- Enable SSH and add a key for your control device.
- Install the repo dependencies, CLIs, browsers, and local services.
- Clone the repo into a stable workspace path.
- Add or update AGENTS.md with commands, guardrails, and handoff rules.
- Start Claude Code from the remote Mac, not your laptop.
- Send status, logs, and final PR notes somewhere you can review later.
ssh agent@remote-mac
cd ~/work/product
claude
# In another terminal:
tail -f logs/agent.log
git status --short
npm run test:changedWhat To Do From A Phone
A phone is good for steering and approval, not deep review. Use it to decide whether the agent should continue, pause, or gather more evidence.
| Good phone action | Bad phone action |
|---|---|
| Approve a harmless next step after reading logs. | Approve a deployment you cannot inspect. |
| Ask for a concise status summary. | Debug a complex merge conflict by chat. |
| Pause a task that is touching sensitive files. | Let the agent rotate credentials unattended. |
| Request screenshots or test output. | Accept a PR because the agent sounds confident. |
Remote Claude Code Failure Modes
| Failure | Symptom | Fix |
|---|---|---|
| Host sleeps | Agent stops mid-build or loses local server state. | Disable sleep for agent workloads or move to an always-on host. |
| Lost browser session | Auth flow works locally but fails remotely. | Keep browser profiles on the host and document re-auth steps. |
| Missing permissions | GUI or file access fails after reboot. | Preflight Screen Recording, Accessibility, Files and Folders, and keychain access. |
| No logs | You cannot tell if the agent is stuck or working. | Write task logs, heartbeat files, and final summaries to disk. |
Where Hyperbox Fits
Hyperbox is the remote Mac when you do not want your personal machine to be the infrastructure. Claude Code gets a persistent macOS workspace with SSH, VNC, desktop access, and the state it needs to keep working while you check in from anywhere.
Frequently asked questions
Can Claude Code run while I am away from my laptop?
Yes, if the machine running the session stays online and reachable. A remote Mac gives Claude Code a stable repo, terminal, browser state, and logs while you check in from another device.
Do I need VNC for Claude Code?
Not always. SSH is enough for many terminal-first tasks. VNC or Screen Sharing matters when the workflow needs desktop apps, browser authentication, visual diffs, or Computer Use-style interaction.
What breaks most remote Claude Code setups?
Sleep, network changes, lost credentials, missing build dependencies, unmonitored background sessions, and unclear approval rules. Fix those before asking the agent to run unattended.
Related reading
Always-on Mac runtime
Give your agent a Mac that stays online after your laptop closes.
Hyperbox gives Codex, Claude Code, OpenClaw, and remote dev workflows a persistent macOS machine with SSH, VNC, and full desktop access.