Overview
Coding agents and AI assistants are most useful when they can keep working while you don’t: running a long refactor overnight, answering a request from your phone, or picking up a task from a team queue. A laptop is a poor home for that work — it sleeps when you close the lid, leaves the house with you, and restarts for updates at the worst moment.
This guide turns a Mac mini into a small, dedicated AI server that:
- never sleeps, and restarts on its own after a power cut or a freeze;
- starts your tools automatically — Cursor, Claude, sync clients, and headless jobs such as a Cursor self-hosted worker;
- is reachable from anywhere over a private network, with no ports opened on your router;
- tells you what’s wrong after a reboot with a one-command health check;
- is locked down and backed up like any machine that holds API keys and source code.
Read the transcript
0:01 Turn a Mac mini into an always-on personal AI server: a home for your AI assistants and coding agents, running around the clock.
0:08 Start with the hardware. Any Apple silicon Mac mini works. Get plenty of memory and storage, and use wired Ethernet.
0:14 Finish the initial macOS setup, install every update, and create a dedicated admin account.
0:20 Next, keep it awake. The setup-power script uses pmset to disable sleep and restart automatically after a power failure. It's a dry run by default, so you see every change first.
0:31 For unattended reboots, know the tradeoff: automatic login brings your agents back on its own, but it requires turning FileVault off.
0:38 For remote access, add Tailscale for a private network, and turn on Screen Sharing and Remote Login.
0:44 Login items and LaunchAgents start your background jobs and keep them alive. A template is included.
0:50 Sync files with iCloud, Google Drive, or OneDrive, so agents work on the same documents you do.
0:56 Then install your tools: Homebrew, Node, and Python, plus Cursor, Claude, and a Cursor private worker.
1:03 Harden it: firewall on, strong passwords, automatic security updates, and only the sharing you need.
1:09 Back it up with Time Machine, and test a restore.
1:12 After every reboot, run the health-check script to confirm power, network, sync, and agents are all healthy.
1:18 Always on, recoverable, and secure. Grab the full guide and scripts to set up yours.
Who this is for
Section titled “Who this is for”Developers, founders, and power users who already use AI tools on a Mac and want them running 24/7. You should be comfortable pasting commands into Terminal. You do not need to be a macOS administrator — every command is explained, and the scripts show what they will change before they change anything.
How the pieces fit together
Section titled “How the pieces fit together”| Layer | What it does | Where it’s covered |
|---|---|---|
| Hardware | A Mac mini on wired Ethernet, ideally behind a small UPS | 1. Hardware |
| Power | pmset keeps it awake; auto-restart after power loss or freeze |
3. Always on |
| Login | FileVault, auto-login and unattended-reboot trade-offs | 3. Always on |
| Network | Tailscale private network, SSH, Screen Sharing | 4. Remote access |
| Processes | Login Items for apps, LaunchAgents for headless jobs | 5. Background jobs |
| Files | Code in git; documents in iCloud / Google Drive / OneDrive | 6. Cloud storage |
| Tools | Homebrew, Node, Python, Cursor, Cursor worker, Claude | 7. AI tools |
| Safety | Firewall, SSH keys, Keychain secrets, backups | 8. Security, 9. Backups |
Conventions used in this guide
Section titled “Conventions used in this guide”your-mac-miniis the server’s name. Replace it with whatever you call yours.youorYOUR_USERis your macOS short user name (runwhoamito see it).~/means your home folder, for example/Users/YOUR_USER/.- Commands that start with
sudoneed an administrator password. - Menu paths such as System Settings → General → Sharing are for macOS 15 Sequoia and macOS 26 Tahoe. Older versions use similar names.