r/ClaudeCode • • 2h ago

Tips & Workflows My Mac mini runs my Claude Code agents 24x7, while I access them from anywhere in the world. Here's how I set it up.

https://www.alara.blog/my-home-server-setup-coding-agents-dev-servers-and-more/

In Feb 2026, I bought a Mac mini during the OpenClaw hype. While OpenClaw never worked out for me, I used Claude Code to set up a home server that runs my Claude Code agents 24x7 and takes things from idea to production, while I'm asleep or sipping coffee on vacation.

It never sleeps and works through power and internet cuts, and I can start or check in on tasks from my laptop or phone from anywhere in the world.

I've been meaning to write about how I set it up for ages now.

The short version:

  • Mac mini M4 (24GB) on Ethernet, with its own UPS behind an inverter, plus a second ISP it fails over to
  • Tailscale + Caddy, so my dev servers live at real HTTPS .dev domains reachable only from my devices
  • tmux with iTerm control mode, so agent sessions survive disconnects and show up as native tabs
  • Moshi on my phone, Mutagen to sync my repo with my laptop
  • My old MacBook Pro as an extra compute node when the mini runs out of RAM

Full write-up with configs: https://www.alara.blog/my-home-server-setup-coding-agents-dev-servers-and-more/

Always-on agents have been a "game-changer" (ugh) for me. Have you set up your own?

0 Upvotes

7 comments sorted by

•

u/AutoModerator 2h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

10

u/indutrajeev 2h ago

You know you can just hit launchd with claude rc right?

1

u/Happy_Breakfast7965 1h ago

Or cloud sessions

1

u/International-Chip93 2h ago

What do you do if it freezes and needs to restart while you're away.

Running into that issue sometimes but apart from that I have a generally similar set up.

1

u/voprosy 1h ago

Cut the power via smart plug or even via the UPS if that is connected to the network. 

Autorestart needs to be enabled on the Mac.