Skip to content

Guide

Run AI agents on a Mac, around the clock.

Coding agents and automation agents are most useful when they keep working after you close your laptop. A dedicated Mac mini or Mac Studio in Prague gives them a real macOS machine that never sleeps. This guide covers why agents want a Mac, how to keep them alive with tmux and launchd, how to lock the machine down, and how to pair it with a local model.

Updated

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.
Which configuration fits which agent setup
SetupConfigurationPrice per month
Light agents calling hosted APIsMac mini M6, 24 GB129 EUR
Agents plus a local model up to about 32BMac mini M5 Pro, 64 GB219 EUR
Agents calling hosted APIs, builds, browsersM5 Max, 36 GB, 512 GB SSD349 EUR
Agents plus a local model up to about 120BM5 Max, 128 GB, 2 TB SSD649 EUR
Many parallel agents or very large local modelsM5 Ultra, 256 GB, 4 TB SSD1,149 EUR
Weekly and 24-hour rentals are also available. Prices exclude VAT. Businesses in other EU countries with a valid VAT ID are invoiced with reverse charge. Czech businesses and EU consumers pay 21% Czech VAT.

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.

Frequently asked questions

Why not run agents on a cheap Linux VPS?

A VPS is a good choice for agents that only need a shell and a language runtime. Choose a Mac when the work depends on macOS: Xcode, the iOS simulator, Shortcuts, AppleScript, Mac-only apps or a full desktop browser with persistent sessions.

Can I run Claude Code, Codex or OpenClaw on the rented Mac?

You have full admin access, so you can install any command-line tool or app that runs on macOS. Check each product's documentation and terms for installation, authentication and unattended use, as those are set by the vendor.

How do I keep an agent running after I disconnect?

Use tmux for interactive sessions you want to reattach to, and a launchd job for anything that should start at boot and restart on failure. Make sure the machine is set not to sleep.

Is it safe to give an agent access to the machine?

Treat it like any automation with credentials. Use a separate standard user, FileVault, SSH keys and least-privilege API keys. Tailscale is optional software you can install yourself. It is not part of the service. The disk is erased and macOS reinstalled between customers, and you stay responsible for what the agent does on your machine.

Can I run a local model next to my agents?

Yes. The 128 GB configuration has room for a model of up to about 120B parameters at 4-bit alongside agents, and the runtime can serve an OpenAI-compatible endpoint on localhost. Test your own workload first.

How quickly can I start, and can I stop?

The setup target is 3 hours from payment. Three hours is a target, not a guaranteed time. If we cannot deliver the machine or storage you ordered, we cancel the order and refund the full amount. The minimum rental is 24 hours, and monthly plans can be cancelled at any time.

Recommended for this guide

Mac mini, M6

24 GB unified memory

For agents, CI and Xcode builds.

€129/moor €10 per 24 hours, excl. VAT€156.09 incl. VAT per month, €12.10 incl. VAT for 24 hours