Turn Your Spare Mac Into a Remote Claude Code Agent: A Step-by-Step Guide
Setting up your spare Mac for Claude Code to control, a step-by-step guide
I built a dedicated spare Mac environment for Claude Code to safely handle risky research and development tasks away from my main machine. By wiping the device, creating an isolated user account, and configuring SSH with passwordless sudo, I can now control this always-on agent from my phone or primary Mac. This setup eliminates security risks while granting full access to Mac-specific apps like Unity, offering a powerful alternative to containerized solutions.
At the end of the day, running an agent with broad permissions is safer on a machine that has nothing to lose - but you get the benefit of being able to use a full Mac instead of a container.
- esaym
Outside of the article's mentioned graphics development, there is no reason to isolate an agent using actual hardware. I threw together this script[0] using libvirt to give claude its own graphical desktop env to be able to do user acceptance testing with Chrome. It has full root and can do what ever. If it makes a mess, I can dump and reinstall in seconds.
0: https://gist.github.com/smith153/04b4068b5a2d7b234f1c3d5992d...
- catoc
I just cannot come up with a good AI-is-actually-24/7-helping-me-out use case.
Please help: I wánt to need this!
- arxari
> setting up your spare Mac
as one has
- brandnewideas
You people are too far gone
- languagehacker
I've done this before as a free replacement for my OpenClaw bot. It loses its connection sometimes and you need to redo the handoff with your phone. But otherwise, nice to have a use for my old Mac. It's also running my Home Bridge, which Claude can interact with. Pretty cool.
- addajones
I currently have Claude Desktop installed on a separate Mac mini M4 and control it with Dispatch. Is there a reason to do this method, it still seems the way I have it setup it has full control over the local account I gave it on the Mac mini.
- somewhatrandom9
Though it doesn't get by all the hurdles mentioned, it is alternatively possible to run Mac OS in a VM on your Mac using UTM and install Claude Code within the UTM VM. UTM can be run under a non-admin Mac account. This can allow you to use most Mac-native tooling, at least. The interactive performance of using the Claude Code ui on the VM isn't great, however. I'm not sure if you can log into the VM via terminal on the host from the non-root admin account to avoid the ui performance issues.
- dchuk
I just redid my homelab/media server (switched from an old NUC I couldn’t figure out how to stop overheating even with some decent modification work, now using an hp elitedesk with an i5 processor that is handling my stack nicely). Thinking about setting up a vm on the base ubuntu install for isolation to run Claude in. May play with dispatch, may just put raw Claude code then use Moshi app on my iPhone and iPad.