# Cloud Macs for AI agents: macOS VMs and sandboxes compared

Per-minute macOS sandboxes, day-billed Macs like EC2 Mac, monthly rentals and CI runners, compared: what each runs, how an agent drives it, and what it costs.

- Published: 2026-12-04
- Canonical: https://replicas.dev/resources/cloud-mac-for-ai-agents

An agent that builds an iOS app, runs XCTest, signs a Mac app or uses a Mac-only tool needs macOS. Apple's license only allows macOS on Apple hardware, so an agent working on a Linux server or in a cloud sandbox has to reach a Mac somewhere else.

There are plenty of places to get one, and the biggest difference between them is how they bill. Sandboxes built for agents charge by the minute. Most services that give you a whole Mac charge for at least 24 hours, because Apple's license says a leased Mac must go to one customer for at least that long. The rest rent Macs by the month, run CI jobs only, or are software for Macs you already own.

## How we tested

An agent in a Replicas workspace, a Linux VM with no Mac, did the research and the testing on December 4, 2026. It drove Limrun's Xcode sandboxes with the `lim` CLI, which every Replicas workspace includes, and timed each step. We didn't open new accounts or pay for other services, so everything else comes from each provider's own docs and pricing pages, linked from its name in the table. Prices are list prices on that date, in US dollars unless noted. EC2 prices are for US East (N. Virginia).

## The providers compared

What each provider runs, how agents drive it, and what it costs. Checked December 4, 2026.

| Provider | Billing | Source | What you get | How an agent drives it | Minimum billing | List price | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Limrun Xcode sandbox](https://docs.limrun.com/ios/build-with-xcode) | Sandboxes for agents | Tested | A non-admin build account on an M4 Mac mini, with macOS 27.2.1 and Xcode 27.1, 27.0 and 26.4 | lim xcode CLI: sync, build, test, and run one command at a time | Per minute | $0.08/min building, $0.016/min warm, on plans from $20/mo | Building and testing iOS apps from Linux |
| [Limrun macOS VM](https://docs.limrun.com/macos/run-vm) | Sandboxes for agents | From the docs | A full macOS VM with a desktop. Chip and macOS version not stated. | lim macos CLI, TypeScript and Go SDKs, SSH, screenshots, clicks and typing | Not stated | Not on the pricing page | Running and testing Mac apps, and computer use |
| [Namespace Devbox](https://namespace.so/docs/devbox) | Sandboxes for agents | From the docs | macOS 14 to 27 with Xcode, on M4 Pro or M5 Max Macs: 6 vCPU and 14 GB, or 12 vCPU and 28 GB | devbox CLI, SDK, SSH, remote desktop, computer use | Per minute, up to 3 hours a run on the free plan | $0.06/min for 6 vCPU and 14 GB | A Mac an agent can SSH into, with a desktop when it needs one |
| [Revyl computer](https://docs.revyl.com/computers) | Sandboxes for agents | From the docs | A macOS VM with Xcode, the iOS Simulator, Chrome and Safari, on hosts such as an M4 Pro with 24 GB | revyl computer CLI, hosted MCP, live desktop in the browser | Per minute, 2 hours by default and up to 72 | $0.05/min after 1,200 free minutes a month | Building and testing iOS and web apps, with recordings |
| [AWS EC2 Mac](https://aws.amazon.com/ec2/instance-types/mac/) | Macs leased a day at a time | From the docs | A bare-metal Mac mini or Mac Studio on a dedicated host, from Intel and M1 to M4 Pro | SSH, Apple Remote Desktop, AWS CLI and API | 24 hours per host, then per second | M1 $0.65/h, M4 $1.23/h ($29.52 for the first day) | Teams on AWS that keep Macs busy all day |
| [Daytona](https://www.daytona.com/docs/macos-sandboxes) | Macs leased a day at a time | From the docs | macOS 26.6.2 VMs with Xcode and the iPhone simulator, up to two on each reserved M4, M4 Pro or M5 Pro Mac mini | Python, TypeScript and Go SDKs, CLI, SSH, VNC, computer use | A 24-hour reservation per Mac, charged up front | Per core, GiB and macOS core-hour; M4 cores $0.101/h | Fleets of agent Macs that run all day |
| [InstaBox](https://instabox.sh/docs/machines/macos) | Macs leased a day at a time | From the docs | A macOS 26 VM on a whole leased Mac, with 16 GB of memory. Xcode not included. | instabox CLI, SSH, API, Python SDK, desktop in the dashboard | 24 hours per Mac, then per second | $0.50/h ($12 minimum) on the $20/mo Pro plan | A long-running agent Mac at a low hourly price |
| [Scaleway](https://www.scaleway.com/en/pricing/apple-silicon/) | Macs leased a day at a time | From the docs | A bare-metal M4 or M4 Pro Mac mini | SSH and VNC | 24 hours | M4 €0.22/h, M4 Pro €0.49/h | A cheap whole Mac for a day or more |
| [MacStadium](https://macstadium.com/pricing) | Dedicated Macs by the month | From the docs | A dedicated bare-metal Mac mini or Mac Studio, or Orka macOS VMs on a private Mac cloud | SSH, screen sharing through an SSH tunnel, Orka CLI and API | A month | From $109/mo (M2, 8 GB); M4 with 16 GB $149/mo | Always-on build Macs and private Mac clouds |
| [MacinCloud](https://www.macincloud.com/pages/dedicated.html) | Dedicated Macs by the month | From the docs | A dedicated M1, M2 or M4 Mac with root and macOS 14 to 27, or a user account on a shared Mac | Remote desktop (RDP), and SSH once you turn on Remote Login | A month for a dedicated Mac | Dedicated from $129/mo (M1); user accounts from $25/mo | A remote Mac desktop for a person |
| [GitHub Actions](https://docs.github.com/en/actions/reference/runners/github-hosted-runners) | CI jobs only | From the docs | A fresh VM for each job: a 3-core M1 with 7 GB, on macOS 15 or 26 | Workflow files, with no shell to log in to | Per minute | $0.062/min; free on public repositories | Builds and tests that run on every pull request |
| [Tart](https://tart.run/) | On Macs you own | From the docs | macOS and Linux VMs on Apple silicon Macs you own, up to two macOS VMs per Mac | tart CLI, SSH, and the Orchard API across many Macs | None | Free, with no license fees since Cirrus Labs joined OpenAI | Turning Macs you already have into agent sandboxes |
| [Cua Lume](https://cua.ai/docs/lume) | On Macs you own | From the docs | macOS and Linux VMs on an Apple silicon Mac you own. Cua Cloud closed on October 18, 2026. | lume CLI and SSH, local HTTP API, MCP server | None | Free, MIT license | Computer-use agents on your own Mac |

"Bare metal" means you get the whole Mac. A VM is a virtual machine running macOS on a Mac the provider runs. A few newer services, such as [NoMac](https://nomac.app/) and [offstage](https://offstage.cloud/), also sell Macs to agents by the minute or second. We didn't look at them closely enough to include them here.

## What a 30-minute session costs

Smallest bill for one 30-minute agent session, on the cheapest Apple silicon Mac each provider sells. Scaleway's euro price is converted at the ECB rate of December 3. List prices checked December 4, 2026.

| Provider | List price | Bill |
| --- | --- | --- |
| Revyl computer | $0.05/min after 1,200 free minutes a month | $1.50 |
| Namespace Devbox | $0.06/min for 6 vCPU and 14 GB | $1.80 |
| GitHub Actions | $0.062/min; free on public repositories | $1.86 |
| Limrun Xcode sandbox | $0.08/min building, $0.016/min warm, on plans from $20/mo | $2.40 |
| Scaleway | M4 €0.22/h, M4 Pro €0.49/h | $5.72 |
| InstaBox | $0.50/h ($12 minimum) on the $20/mo Pro plan | $12.00 |
| AWS EC2 Mac | M1 $0.65/h, M4 $1.23/h ($29.52 for the first day) | $15.60 |
| MacStadium | From $109/mo (M2, 8 GB); M4 with 16 GB $149/mo | $109.00 |
| MacinCloud | Dedicated from $129/mo (M1); user accounts from $25/mo | $129.00 |

For short agent jobs, the minimum charge matters more than the hourly rate. A 30-minute build costs $1.50 to $2.40 on the services that bill by the minute, and $5.72 to $15.60 where the Mac is billed for a full day. Limrun's and InstaBox's prices need a $20 monthly plan, which includes $20 of usage.

The day-billed Macs get cheaper the longer you use them. Against $0.05 a minute, Scaleway's M4 costs less once an agent needs it for about 2 hours a day, InstaBox after 4 hours, and EC2's M1 after about 5. If your agents keep a Mac busy all day, rent it by the day. If they need one for a build here and there, pay by the minute.

Daytona isn't on the chart. Its pricing page lists rates per core and per GiB of memory rather than per Mac, and each reservation is charged as 24 hours of the Mac model you pick, up front. Its API lists the price per model.

## Limrun's Xcode sandbox, tested

Limrun sells two kinds of Mac: Xcode sandboxes for building, and full macOS VMs. The agent created an Xcode sandbox, ran commands on it, and built a small Swift package:

```bash
lim xcode create --json
lim xcode run -- sw_vers
lim xcode run -- xcodebuild -version
lim xcode run -- swift build --build-system native
lim xcode delete
```

| Step | Time |
|---|---:|
| Create a sandbox, ready to use | 0.76 s |
| First command, `sw_vers` | 6.5 s |
| Each command after that, including the folder sync | about 0.53 s |
| `swift build` of a small package, first build | 3.2 s |
| `swift build` again, with no changes | 1.3 s |
| `xcodebuild` of the same package | 21.1 s |

The sandbox ran macOS 27.2.1 with Xcode 27.1 selected, and Xcode 27.0 and 26.4 installed beside it. The kernel reported an M4 chip, the hostname was a Mac mini, and the agent saw 10 CPUs and about 32 GB of memory. Commands ran as a non-admin user, and `ps`, `top`, `system_profiler` and `simctl` all returned "Operation not permitted". It's a locked-down build account without admin rights. Simulators are separate Limrun instances that attach to the sandbox.

What the agent ran into:

- **One command at a time.** When the agent started a second `lim xcode run` while one was running, one of the two was cancelled.
- **No stdin.** Piped input didn't reach the command. Without a folder argument, the CLI read the piped text as the folder name.
- **Background processes stay.** A `sleep` started with `nohup` was still running 2.5 minutes later, across separate commands.
- **Swift's default build system failed.** `swift build` stopped with "Could not determine path to developer directory". Adding `--build-system native` worked, and `xcodebuild` worked too.

Limrun's [macOS VMs](https://docs.limrun.com/macos/run-vm) are full virtual machines with a desktop, driven with `lim macos`: shell commands, `lim macos ssh` for an SSH session, screenshots, clicks and typing, and screen recordings. We couldn't create one. Limrun access in Replicas workspaces covers iOS simulators, Android emulators, Xcode and Gradle, and the request was refused. Limrun's [pricing page](https://limrun.com/pricing) doesn't list a macOS VM rate.

For a full iOS app built and tested this way, see [our build log from Linux](/resources/build-ios-app-without-mac). For what cloud Xcode costs against buying a Mac mini, see [Do you need a Mac mini to run AI coding agents?](/resources/mac-mini-for-ai-agents)

## Whole Macs, a day at a time

Apple's [macOS license](https://www.apple.com/legal/sla/) allows a Mac to be leased only to one customer at a time, for at least 24 consecutive hours. EC2 Mac, Scaleway, InstaBox and Daytona pass that minimum on to you.

| Provider | What the minimum covers | What stands out |
|---|---|---|
| [AWS EC2 Mac](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html) | A dedicated host with one bare-metal Mac | Launching takes 6 to 20 minutes, by AWS's estimate. Billing is per second after the first day |
| [Daytona](https://www.daytona.com/docs/macos-sandboxes) | One Mac mini, reserved and charged up front | Up to two macOS VMs share each Mac. Its image has Xcode, the iPhone simulator, Homebrew and fastlane |
| [InstaBox](https://instabox.sh/docs/machines/macos) | One whole Mac, running one macOS VM | Xcode isn't installed, so you copy it in and save a snapshot. No nested virtualization |
| [Scaleway](https://www.scaleway.com/en/docs/apple-silicon/faq/) | One bare-metal Mac mini | A Mac can only be deleted after 24 hours. Access is over SSH and VNC |

## Macs by the month, and CI runners

[MacStadium](https://macstadium.com/pricing) and [MacinCloud](https://www.macincloud.com/pages/dedicated.html) rent dedicated Macs by the month. MacStadium's Macs start at $109 a month, and its Macs [take SSH directly](https://docs.macstadium.com/iaas/bare-metal-macs/connecting-to-your-mac-for-the-first-time), with screen sharing through an SSH tunnel. MacinCloud's Apple silicon dedicated servers cost $129 to $165 a month with root access over remote desktop. Its cheaper managed plans are user accounts on a shared Mac without admin rights, so an agent can't install its own tools.

[GitHub Actions](https://docs.github.com/en/actions/reference/runners/github-hosted-runners) runs each macOS job in a fresh VM with a 3-core M1 and 7 GB of memory, at [$0.062 a minute](https://docs.github.com/en/billing/reference/actions-runner-pricing), or free on public repositories. An agent can't log in to one. It writes a workflow, pushes it, and reads the logs. Namespace and Revyl also run macOS jobs for GitHub Actions, and InstaBox has them in private preview.

## macOS VMs on Macs you own

Apple's license lets you run up to two extra copies of macOS in VMs on each Mac you own or control, for development and testing. It doesn't allow macOS on other hardware, so a macOS VM on a Linux or Windows machine isn't an option.

[Tart](https://tart.run/) runs macOS and Linux VMs on Apple silicon with Apple's Virtualization framework, and stores VM images in container registries. Its maker, Cirrus Labs, [joined OpenAI](https://cirruslabs.org/) in April 2026 and stopped charging license fees, and the code now lives at [github.com/openai/tart](https://github.com/openai/tart). Cua's [Lume](https://cua.ai/docs/lume) runs macOS VMs too, with a CLI, a local HTTP API and an MCP server. Cua no longer hosts Macs. [Cua Cloud ended](https://cua.ai/docs/cua-sdk/guides/cua-cloud-ended) on October 18, 2026.

Both need a Mac that stays on. Our [Mac mini guide](/resources/mac-mini-for-ai-agents) covers when owning one costs less than the cloud.

## Which one fits

| What your agent needs | Where to look |
|---|---|
| Build and test an iOS app now and then | Limrun Xcode sandboxes, Namespace, Revyl |
| A macOS desktop to see and click | Daytona, InstaBox, Limrun macOS VMs, Namespace, Revyl |
| A Mac for most of the day, every day | Daytona, EC2 Mac, InstaBox, Scaleway |
| Builds and tests on every pull request | GitHub Actions, or the macOS runners from Namespace or Revyl |
| An always-on Mac you fully control | MacStadium, MacinCloud, or your own Mac with Tart or Lume |

If your agents run in Replicas, every workspace can already build iOS apps on cloud Xcode and test them on cloud iOS simulators and Android emulators, through Limrun ([mobile testing docs](https://docs.replicas.dev/features/mobile-testing)). For the device tools agents use on those simulators, see [iOS simulator and Android emulator tools for coding agents, tested](/resources/ios-simulator-android-emulator-mcp), and for the wider testing setup, [how to test iOS and Android apps with cloud coding agents](/resources/test-mobile-apps-with-cloud-coding-agents).


## FAQ

### Why do so many cloud Macs have a 24-hour minimum?
Apple's macOS license allows a Mac to be leased only to one customer at a time, for at least 24 consecutive hours. AWS EC2 Mac, Scaleway, InstaBox and Daytona pass that minimum on. Services such as Limrun, Namespace and Revyl sell time in a sandbox on Macs they run, and bill by the minute.

### Can I run a macOS VM on Linux?
Not within Apple's license, which only allows macOS on Apple hardware. On a Mac you own or control, it allows up to two extra macOS VMs for development and testing, which tools like Tart and Lume run. From a Linux machine, use a cloud Mac instead.

### Which cloud Macs let an AI agent use the macOS desktop?
Daytona, InstaBox, Limrun macOS VMs, Namespace Devboxes and Revyl computers all give agents a desktop, with screenshots, clicks and typing or a live view in the browser. AWS EC2 Mac and Scaleway offer remote desktop access too, but no computer-use tools for agents.

### What is the cheapest way to give an agent a Mac for a short task?
A sandbox billed by the minute. At list prices on December 4, 2026, a 30-minute session cost $1.50 to $2.40 on Revyl, Namespace, GitHub Actions or a Limrun Xcode sandbox, against $5.72 to $15.60 for a day-billed Mac from Scaleway, InstaBox or AWS. Limrun and InstaBox need a $20 monthly plan, which includes $20 of usage. Past 2 to 5 hours a day, the day-billed Macs cost less.
