Why agents want a real, always-on Mac
A laptop is a poor home for a long-running agent. The lid closes, Wi-Fi changes, the battery drains and macOS puts the machine to sleep. Every one of those events can kill a session in the middle of a task. An agent that runs for hours needs a machine that is simply on.
A Mac also does things a Linux VPS cannot. Anything that depends on macOS has to run on macOS: Xcode and the iOS simulator, Swift toolchains, Shortcuts, AppleScript and JXA automation, and apps that only exist for the Mac. If your agent builds, tests or signs Apple platform software, or drives desktop apps, it needs the real thing.
Browsers are the other big reason. Agents that browse, scrape behind a login or test a web app work much better in a full desktop browser with a persistent profile than in a throwaway container. Cookies, extensions and signed-in sessions survive between runs, and you can watch what the agent is doing over Screen Sharing whenever you want.
A dedicated machine also removes noisy neighbours. The CPU, GPU and memory belong to you alone, so a build or a browser session is not slowed by another tenant. With full admin access you decide what is installed and what runs at boot.
Set up the machine for unattended work
Your rented Mac arrives with full admin access over SSH and Screen Sharing, on ports forwarded from a fixed public IP. The first steps are about making it behave like a server rather than a desktop.
- Prevent sleep. Set the machine never to sleep in System Settings, and for a command-line option use caffeinate or pmset. A rented Mac is meant to stay on, so there is no lid to close.
- Install your toolchain over SSH: Homebrew, Node, Python, Xcode command line tools and whatever else the agent needs. Use Screen Sharing for the steps that need a GUI, such as granting macOS privacy permissions to an app.
- Tailscale is optional and not part of the service. You can install it yourself if you want to reach the Mac by name from your laptop and phone. We do not install it and we do not guarantee it.
- Create a dedicated working directory for each project, and keep the agent's repositories on the internal SSD or a Thunderbolt 5 SSD add-on if your checkouts and caches are large.
| Setup | Configuration | Price per month |
|---|---|---|
| Light agents calling hosted APIs | Mac mini M6, 24 GB | 129 EUR |
| Agents plus a local model up to about 32B | Mac mini M5 Pro, 64 GB | 219 EUR |
| Agents calling hosted APIs, builds, browsers | M5 Max, 36 GB, 512 GB SSD | 349 EUR |
| Agents plus a local model up to about 120B | M5 Max, 128 GB, 2 TB SSD | 649 EUR |
| Many parallel agents or very large local models | M5 Ultra, 256 GB, 4 TB SSD | 1,149 EUR |
Keep agents alive with tmux and launchd
Two tools cover most needs. tmux keeps an interactive session alive after you disconnect. Start a named session, launch the agent inside it, detach, and reattach from any device later. This suits Claude Code, Codex CLI and similar terminal agents, where you want to check in, approve a step or give a new instruction.
launchd is macOS's service manager and the right tool for agents that should start at boot and restart when they fail. You describe the job in a property list file with the program, its arguments and a KeepAlive setting. Put it in ~/Library/LaunchAgents for a job that runs as your user, or in /Library/LaunchDaemons for a system-wide one, then load it with launchctl. Logs go to files you choose, so a failed run leaves evidence.
A common pattern is to combine the two. A launchd job starts a long-lived worker or a tmux server at boot, and you attach to it only when you want to look. For scheduled work such as a nightly review or a morning summary, launchd can also run a job on a calendar interval instead of keeping it alive.
The same approach works for Claude Code, Codex, OpenClaw and agents you write yourself: any process you can start from a shell can be supervised this way. Check each tool's own documentation for its installation steps, authentication and any limits on unattended use, and keep its version pinned so that an update does not change behaviour overnight.
Security hygiene for an agent host
An agent that can run shell commands and read your credentials is powerful, and that is exactly why the machine deserves care. A few habits cover most of the risk.
- Use a separate standard user for the agent and keep the admin account for you. Then a mistaken command cannot casually change system settings or touch files outside its own home folder.
- Turn on FileVault and the macOS firewall, and keep the system updated. Do not enable services you do not use.
- Reach the machine through the forwarded SSH port with keys, and disable password login. The public IP stays fixed for the rental. Avoid publishing extra listening ports on it. If you install Tailscale yourself, you can use that instead of the forwarded ports. If you need to expose a service, put authentication in front of it.
- Give the agent least-privilege API keys: scoped tokens, read-only where possible, separate keys per project and spending limits on paid APIs. Store them in the macOS Keychain or an environment file readable only by the agent user, never in a repository.
- Run agents on a separate repository clone or branch, and require review before anything reaches production. Treat the agent's output like a pull request from a new contributor.
Pair agents with a local model
The 128 GB configuration lets an agent host double as a model host. Open-weight models served through a runtime such as MLX, llama.cpp or Ollama can expose an OpenAI-compatible endpoint on localhost, and agents that accept a custom base URL can point at it. Cheap, repetitive steps such as summarising logs, classifying tickets or drafting commit messages can then run locally, with no per-token charge and no data leaving the machine.
Keep expectations honest. Open-weight models are not identical to the hosted frontier models, so use a local model for the steps it handles well and a hosted API for the hard reasoning. Leave memory for the agents themselves, since browsers, simulators and builds all compete with model weights. Our guide to running LLMs on a Mac Studio covers memory sizing in detail.
Start small. The Mac mini M6 with 24 GB runs agents that call hosted APIs, and the 64 GB Mac mini M5 Pro or the 128 GB Mac Studio adds room for a local model. A 24-hour rental is the cheapest way to test either setup.