
AWS Architecture Blog · 12 min readCloud & infrastructure
AI coding agents on Amazon EC2 Mac: How Cognition scales Devin for macOS
The post details how Cognition’s AI engineer Devin runs on Amazon EC2 Mac instances, explaining the architecture of dedicated hosts, macOS VMs, snapshot storage, and network isolation. It shows how to scale macOS environments for AI agents, achieving fast startup and efficient resource reuse.
- Each EC2 Mac host runs two isolated macOS VMs, allowing multiple Devin sessions per host.
- Snapshot storage via NBD keeps idle sessions lightweight, restoring state in seconds.
- A user‑space Ethernet gateway enforces per‑session network policies without pf conflicts.