How to set up your spare Mac for Claude Code to fully control - a step-by-step guide
- The guide explains how to convert a spare Mac into an always-on environment fully controlled by Claude Code, enabling "computer use" (screenshots, clicking, dragging) safely.
- Running Claude Code with the
--dangerously-skip-permissionsflag on a primary machine carries inherent risk; isolating it on a dedicated device with no sensitive data mitigates these issues. - Using actual Mac hardware rather than a container or VM provides the agent access to macOS-exclusive applications and full graphical computer use capabilities (e.g., driving Unity for game development).
- The setup enables remote control of the agent from a phone via the Claude app or over SSH from a primary Mac.
Hacker News Discussion
- Alternative Sandbox Environments: A prominent subset of users argued that dedicated physical hardware is largely unnecessary for agent isolation unless specific graphics/Unity workflows are needed. Commenters shared alternative workflows, such as utilizing
libvirtto spin up disposable Linux graphical desktops with Full Root, utilizing simple unprivileged accounts (useradd agent), or using lightweight cross-platform engines likesmolvmfor egress filtering. - Mobile Use Cases and "Vibe Coding": Several power users highlighted that they now bypass traditional IDEs entirely, relying on Claude Code running 24/7 on remote nodes to queue up background analytical workflows, conduct fuzzing protocols, or triage real-time on-call alerts (e.g., checking Datadog/Cloud logs) directly from their phones during weekend transits.
- Context Window and Token Expense: Users engaged in long-running jobs noted a major limitation: keeping active sessions open for hours results in frequent cache misses on large codebases (500k+ tokens), causing token consumption to escalate quickly. Deleting or recycling sessions periodically is recommended by Anthropic to manage costs.
- Criticism of Scripted/AI-Generated Content: A few commenters expressed fatigue over the setup guide itself, complaining that the underlying shell scripts felt bloated and heavily AI-generated, making the logic overly dense to review or maintain.