# Macswarm vs AWS EC2 Mac instances: agent pricing

Canonical URL: https://macswarm.com/compare/aws-ec2-mac/
Last reviewed: 2026-11-24

> EC2 Mac instances pricing against Macswarm Pod-hours for Claude Code and Codex: 24-hour minimum, AMI upkeep, monthly costs and when EC2 Mac fits better.

Macswarm is a service of hosted macOS Pods for teams whose Claude Code and Codex sessions start and stop: Pro is $99 a month for 300 Pod-hours, with the Latest Xcode, Simulators and both agents installed. EC2 Mac is a whole Mac in your AWS account, rented as a Dedicated Host with a 24-hour minimum; an M4 host in US West (Oregon) is $1.23 an hour (checked 24 November 2026). Choose Pods for session work with no machine to maintain. Choose EC2 Mac for CI, administrator access, or workloads that must stay inside your AWS account.

## Should agents run on EC2 Mac or Pods?

Use Macswarm Pods when Claude Code or Codex sessions start and stop through the day and nobody wants to maintain a Mac image; use EC2 Mac when you need a whole Mac inside your own AWS account. A Pod is a macOS virtual machine with the Latest Xcode, pre-booted Simulators and both agents installed, destroyed ten minutes after its last session. Pro is $99 a month for 300 Pod-hours with up to four Pods at a time. EC2 Mac is a bare metal instance on a Dedicated Host, billed per second with a 24-hour minimum: $1.23 an hour for mac-m4 in US West (Oregon), so $29.52 for the first day (AWS, checked 24 November 2026). A developer using about 90 Pod-hours a month fits inside Pro; a mac-m4 host kept all month is $897.90 before storage. EC2 Mac is better for CI, administrator access, persistent disks and AWS-only compliance rules.

No card is needed for the Free plan.

## Side by side

| Criterion | Macswarm | AWS EC2 Mac |
| --- | --- | --- |
| What you get | A Pod: a macOS VM for one developer's agents, two Pods per shared Apple silicon Mac mini on Free, Pro and Team; reserved Macs on Enterprise | One bare metal Mac instance per Dedicated Host, in your AWS account |
| Entry price | Free: 3 Pod-hours once, no card | mac-m4 on demand: $1.23 an hour, at least $29.52 per allocation |
| Other prices | Pro: $99 a month for 300 Pod-hours, then $0.40. Team: $399 for 1,500, then $0.30. Enterprise: from $3,000 a month | Per hour: mac2 (M1) $0.65, mac2-m2 $0.878, mac2-m2pro $1.56, mac-m4pro $1.97, mac-m4max $6.25 |
| Billing unit | Pod-hour, metered per second until the Pod is destroyed, ten idle minutes included | Dedicated Host, per second, 24-hour minimum |
| Commitment discount | None; monthly billing only | Savings Plans, up to 44% off on demand with a 3-year commitment |
| Time to start | A few seconds from the warm pool, when the plan and region have a free Pod | About 6 to 20 minutes for an AWS image; longer with extra software or large volumes |
| Xcode and agents | The Latest Xcode, iOS runtimes, 3 to 4 pre-booted Simulators, Claude Code, Codex and XcodeBuildMCP | AWS base images have no Xcode; you install it and keep your own AMI |
| State | Nothing persists on the Pod; commits stay on your git host | EBS volumes and custom AMIs; stopping erases the internal SSD |
| Access | No SSH, no screen sharing, no inbound ports | SSH, Apple Remote Desktop, Session Manager |
| Hardware figures | One standard Pod size; per-Pod CPU, memory and disk figures are not published | Published per type, such as 10 cores and 24 GB on mac-m4 |
| Region | EU (Netherlands) or US, chosen per environment | Varies by instance type and AWS Region |
| CI | Not a CI runner | Supports EC2 Auto Scaling |

Source, checked 24 November 2026: EC2 Mac billing, hardware and Savings Plans from [aws.amazon.com, EC2 Mac](https://aws.amazon.com/ec2/instance-types/mac/); on-demand rates for US West (Oregon) in USD from the [rate file](https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/ec2/USD/current/dedicatedhost-ondemand.json) behind [Dedicated Hosts pricing](https://aws.amazon.com/ec2/dedicated-hosts/pricing/); access, start time and scrubbing from the [EC2 User Guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html); Macswarm prices from the [pricing page](https://macswarm.com/pricing/).

The hardware row is not a performance comparison. AWS publishes each machine's shape and Macswarm does not publish per-Pod figures, so plan around AWS's numbers if you need a known configuration.

## What does a month cost?

The bill depends on how long a Mac stays allocated, not on how long an agent works. The table uses on-demand mac-m4 rates in US West (Oregon), checked 24 November 2026, a 730-hour month, and the [pricing page](https://macswarm.com/pricing/) example: four hours of Pod runtime a day for 22 days is about 90 Pod-hours. Storage, data transfer, tax and model usage are excluded.

| Work in one month | Macswarm | EC2 mac-m4, on demand |
| --- | --- | --- |
| One 3-hour trial | $0 on Free, once | $29.52, the 24-hour minimum |
| One developer, about 90 Pod-hours | $99 on Pro | $649.44 with a new host for 24 hours on each of 22 days; $897.90 for one host kept all month |
| Three developers, about 270 Pod-hours in total | $99 on Pro, up to 4 Pods at a time | $897.90 if all three share one kept host; $2,693.70 with a host each |
| One Pod running all month, 730 Pod-hours | $271 on Pro: $99 plus 430 hours at $0.40 | $897.90 for one kept host |

Source, checked 24 November 2026: mac-m4 at $1.23 an hour from the [AWS rate file](https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/ec2/USD/current/dedicatedhost-ondemand.json), US West (Oregon); Macswarm prices from the [pricing page](https://macswarm.com/pricing/). Totals are our arithmetic from list prices.

These are list-price calculations, not benchmarks. An hour on a whole Mac and a Pod-hour are different units, and a host can run whatever you can fit on it. A Pod runs two to three active agents of one developer at full service; more can queue.

The break-even point is high for session work. At $897.90 for a kept mac-m4 host (aws.amazon.com rates, checked 24 November 2026), EC2 costs less than Team once that one host replaces more than about 3,163 Pod-hours in the month: 1,500 included, then 1,663 at $0.30. If a 3-year Savings Plan took the full 44% off, the host would be $502.82 and the point falls to about 1,846 Pod-hours. "Up to 44%" is AWS's ceiling; the discount for mac-m4 in your region may be lower.

## How does an EC2 Mac host run?

![Two lifecycles: an EC2 Mac host is allocated, launched, set up, used and released after at least 24 hours, with scrubbing before a relaunch; a Macswarm Pod starts with a session, runs agents, waits ten idle minutes and is destroyed.](https://macswarm.com/img/aws-ec2-mac/host-or-pod.svg)An EC2 Mac host is billed from allocation to release, 24 hours at least; a Pod is metered from start until it is destroyed.

1. **Allocate a Dedicated Host.** Mac instances run only as bare metal on Dedicated Hosts, one instance per host, and the host is the billing unit (docs.aws.amazon.com, checked 24 November 2026).
2. **Launch an instance.** AWS gives about 6 to 20 minutes for its own images, more with a custom AMI or extra software.
3. **Prepare the image.** AWS says its base AMIs have no Xcode; you install it, accept the license and snapshot an AMI. Claude Code, Codex, Simulator devices and signing are then part of your image. AWS targets 30 to 60 days after a minor macOS release for a new official AMI, and 90 to 120 days after a major one (AWS FAQ, checked 24 November 2026).
4. **Stop or relaunch.** Stopping or terminating starts a scrubbing workflow that erases the internal SSD and can take up to 4.5 hours on Apple silicon. Billing pauses, but the host cannot launch another instance until it ends.
5. **Release the host.** This is possible once the allocation exceeds 24 hours.

On Macswarm the first session does all of that. A Pod is cloned from a golden image kept warm, your repository is cloned, and up to three active agents work in their own git worktrees with two `xcodebuild` slots between them. Ten minutes after the last session the Pod is destroyed. [Inside a Pod](https://macswarm.com/docs/inside-a-pod/) lists the image and [Limits and queues](https://macswarm.com/docs/limits-and-queues/) has the numbers. The reason for the AWS minimum is covered in [why cloud Macs have a 24-hour minimum](https://macswarm.com/blog/why-cloud-macs-have-a-24-hour-minimum/).

## Can Claude Code or Codex use an EC2 Mac?

EC2 Mac gives you SSH, a graphical session and a bare metal Mac you administer, so you can install software on it as on any Mac. The AWS pages checked on 24 November 2026 do not document a Claude Code or Codex setup; assume you install and update both, store their credentials, and decide how many sessions share the machine. AWS does show that agent fleets are possible: its EC2 Mac page quotes Cognition on running macOS VMs for its Devin agent on mac-m4 and mac-m4pro hosts in six regions. That is a vendor-published statement from a company that built its own agent platform.

Macswarm is that layer for Claude Code and Codex. Claude Team and Enterprise connect through a self-hosted environment key, Claude Pro and Max users sign in to Claude Code inside a Pod, and Codex connects through an OpenAI Agents API webhook. The [Claude Code quickstart](https://macswarm.com/docs/quickstart-claude-code/) and the [Codex quickstart](https://macswarm.com/docs/quickstart-codex/) have the steps. Anthropic or OpenAI bills the model usage on either setup.

## How do security and compliance compare?

EC2 Mac keeps the machine inside your AWS boundary: your VPC, security groups, EBS encryption and Systems Manager Session Manager, which AWS describes as auditable and needing no open inbound ports. Hosts can be shared with accounts in your AWS organization (aws.amazon.com, checked 24 November 2026). You own the image, patching and access rules.

A Pod is outside your AWS account. It makes outbound connections only, has no SSH or screen sharing, is never reused across customers, and is destroyed after the session. On Free, Pro and Team the other Pod on the same Mac mini can belong to another customer, as a separate VM. Macswarm does not hold a SOC 2 report or an ISO 27001 certificate. Enterprise adds reserved Macs, SSO/SAML, an exportable audit log and a residency commitment in the contract. Whether a Pod can reach resources in your AWS VPC is not documented; write to [info@macswarm.com](mailto:info@macswarm.com). [Security](https://macswarm.com/docs/security/) has the full model.

## When EC2 Mac is the better choice

- You are an AWS shop and code, builds and logs must stay in your account, VPC and compliance program.
- You run CI: EC2 Mac supports Auto Scaling, and Macswarm is not a CI runner.
- You need SSH, administrator access, custom daemons, your own macOS image or disks that persist.
- You need a published configuration, or Mac Studio hardware such as mac-m4max.
- You need a Mac for one to three separate days in a month: three 24-hour mac-m4 allocations are $88.56, less than Pro's $99 (AWS rate, checked 24 November 2026).
- One host replaces several thousand Pod-hours a month, or a 3-year Savings Plan already covers it.
- You are building your own agent platform and want to create the VMs yourself.

## When Macswarm is the better choice

- Claude Code and Codex sessions that start and stop: the meter ends ten minutes after the last one, not at hour 24.
- Several developers on one plan: about 270 Pod-hours for three people fit in Pro at $99.
- No AMI to build: the Latest Xcode, Simulators, XcodeBuildMCP and both agents ship in every Pod.
- A fresh environment for each Pod, with no host to allocate, scrub or release.
- A trial at $0: Free is 3 Pod-hours once, with no card.

## Try a Pod

Connect Claude Code or Codex and give it a task that needs a Mac. Plans and Pod-hour rates are on the [pricing page](https://macswarm.com/pricing/).

## Related

- [Mac in the cloud pricing](https://macswarm.com/compare/cloud-mac-pricing/): every way to rent a Mac, grouped by billing unit.
- [Macswarm vs MacStadium](https://macswarm.com/compare/macstadium/): a dedicated Mac by the month, or Pod-hours.
- [macOS CI runners compared](https://macswarm.com/compare/macos-ci-runners-pricing/): prices for build jobs rather than agent sessions.
- [Run Claude Code and Codex on a hosted cloud Mac](https://macswarm.com/docs/run-claude-code-on-a-cloud-mac/): the options and the setup.

## Sources

- EC2 Mac billing, minimum, Savings Plans, hardware and the Cognition statement: [aws.amazon.com, EC2 Mac](https://aws.amazon.com/ec2/instance-types/mac/), checked 24 November 2026.
- On-demand rates, US West (Oregon): [Dedicated Hosts pricing](https://aws.amazon.com/ec2/dedicated-hosts/pricing/) and the [rate file](https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/ec2/USD/current/dedicatedhost-ondemand.json) it loads, published 23 November 2026, checked 24 November 2026. Rates differ by region.
- Base images, Xcode, AMI timing, Session Manager and host sharing: [EC2 Mac FAQs](https://aws.amazon.com/ec2/instance-types/mac/faqs/), checked 24 November 2026.
- Start time, Auto Scaling and access: [EC2 User Guide, Mac instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html); scrubbing and release: [stop or terminate](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mac-instance-stop.html). Checked 24 November 2026.
- Macswarm prices and limits: [the pricing page](https://macswarm.com/pricing/), [Inside a Pod](https://macswarm.com/docs/inside-a-pod/), [Limits and queues](https://macswarm.com/docs/limits-and-queues/) and [Security](https://macswarm.com/docs/security/).
