logoalt Hacker News

Setting up your spare Mac for Claude Code to control, a step-by-step guide

151 pointsby ykevtoday at 4:12 PM108 commentsview on HN

Comments

smetanniktoday at 10:25 PM

Why a spare machine has to be exactly a mac ? For iMessage?

show 1 reply
esaymtoday at 6:13 PM

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...

show 4 replies
catoctoday at 5:36 PM

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!

show 15 replies
arxaritoday at 5:52 PM

> setting up your spare Mac

as one has

show 1 reply
brandnewideastoday at 5:54 PM

You people are too far gone

show 2 replies
somewhatrandom9today at 6:02 PM

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.

show 1 reply
addajonestoday at 4:22 PM

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.

show 4 replies
dchuktoday at 5:27 PM

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.

show 1 reply
spikktoday at 6:35 PM

If I had one I would definitely try creating a separate VLAN for it to control, otherwise it's isolated from your files but still has access to your network and devices in it.

show 1 reply
rootsudotoday at 5:00 PM

I’ve been doing something similar with an old m2. It isn’t powerful enough for local models, well sufficient local models but for openclaw and Claude it’s been perfect.

MacBook m1/m2 also are cheap enough now vs an Mac mini which I was surprised about, not too surprised but yeah..

show 2 replies
drnick1today at 6:12 PM

Giving sudo permissions to an agent seems reckless. Claude gets his own unprivileged UNIX account, no more. I don't bother with containers or VMs however.

show 1 reply
schainkstoday at 4:42 PM

Dispatch works great, and I have reversed the setup so Claude can ssh-spawn sessions on my homelab for non-Mac dependent work

TekMoltoday at 6:47 PM

Why a laptop at all?

Why not just use a VM in the cloud and just a CLI interface?

show 1 reply
weard_beardtoday at 5:37 PM

I've been putting off learning Claude and this article had me strongly considering jumping in. Then I looked up Anthropic pricing and its 100x more convoluted than cloud services management. Its a goddamn full time job and independent skill set figuring out how to prevent going bankrupt from AI usage!

I think I'm gonna be a late adopter on this one until the industry figures out a less cumbersome pricing model.

show 1 reply
guluartetoday at 5:47 PM

i just use terminus + wireguard + tmux and works great, i can control claude/codex from my phone while working out

show 2 replies
deadbabetoday at 5:05 PM

I still don't understand what these freaks are doing running these agents 24/7 on machines. What are they doing? Managing a todo list? You mean crossing items off as you complete them? Research tasks? To do what?

Never really get good answers. There is no killer app. Just bikeshedding.

show 8 replies
threethirtytwotoday at 5:51 PM

What's a good way to give a limited amount of money to the LLM, say like 2k or 5k or something. But keep it completely separate from my identity.

Like I want the LLM to have a bank account and he can do ANYTHING with that bank account that he wants. But he can't fuck anything up that has to so with me. He only has 2 - 5k

show 2 replies
mohammad0omartoday at 8:14 PM

[flagged]

theturtletoday at 4:33 PM

[dead]