AWS EC2 vs Hetzner Cloud
AWS EC2 is a hyperscaler: per-second VMs in 39 regions, with GPUs, Windows, macOS and a large cloud around them. Hetzner Cloud rents plain Linux servers by the hour with a monthly price cap. A Hetzner server bills until you delete it, also when it is off. On 2026-11-08 Hetzner marked every cloud server line as currently unavailable.
The companies and products
AWS EC2
AWS EC2 is Amazon's general-purpose cloud VM service, not a sandbox product: you rent virtual servers by the second and set them up yourself.
You pick an instance type (Intel, AMD, Graviton Arm, GPU or Mac), a machine image and a network, and EC2 boots a Nitro VM with its own kernel and root access. Disks are EBS volumes, and security groups control inbound traffic. You set up the agent parts yourself: agents, desktops, HTTPS URLs and key handling. AWS also sells managed agent sandboxes, Bedrock AgentCore Code Interpreter and Browser, as a separate product. EC2 serves every kind of server workload, from websites to GPU training, across AWS's worldwide regions.
Hetzner Cloud
Hetzner is a German hosting company founded in 1997. Hetzner Cloud rents virtual servers, storage and networking by the hour.
A Hetzner Cloud server is a Linux VM. You pick shared vCPU (cost-optimized CX and Arm CAX, regular CPX) or dedicated vCPU (CCX). Each server has local NVMe disk, a public IPv4 and IPv6, and up to 20 TB of traffic in the EU. You add volumes, private networks, firewalls and load balancers. You run everything through the Console, the Cloud API, the hcloud CLI or Terraform. It is general infrastructure, not an agent sandbox. This page compares the two where they overlap: an agent on its own Linux machine.
Which use cases each one fits
For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “7th cheapest of 359” means 6 of the other 358 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.
| Use case and its workload | AWS EC2: price rank | Hetzner Cloud: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Both give a full VM with root and Docker. Hetzner cloud servers have no nested virtualization, and EC2 has it on Intel 7th/8th-gen families and metal. boat ships agents, HTTPS previews and forks on every sandbox. | 118th of 365, with limits $775 a month | 84th of 365, with limits $287 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Both can run an assistant around the clock, but you build the agent setup, HTTPS and backups yourself, and EC2's lowest always-on price needs a 3-year commitment. Both are a compromise here. | 177th of 361, with limits $646 a month | 162nd of 361, with limits $325 a month | 6th cheapest of 361 $657 a month |
| Code interpreter bursts 100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month EC2 bills short runs per second, while Hetzner bills every started hour in full, so a one-minute job costs an hour. boat's start limits make big bursts a compromise too. | 106th of 336, with limits $165 a month | 159th of 336, with limits $649 a month | 189th of 336, with limits $2,000 a month |
| Sandboxes for your users 300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month | 76th of 349, with limits $607 a month | 50th of 349, with limits $314 a month | 3rd cheapest of 349 $209 a month |
| RL rollouts 1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month EC2 fits large rollouts better: it can launch big fleets once your quota is raised. Hetzner bills each short run as a full hour, and boat charges for or refuses starts above its per-plan limits. | 15th of 349, with limits $830 a month | 113th of 349, with limits $6,490 a month | 39th of 349, with limits $2,000 a month |
| Agent evals 250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month | 7th cheapest of 359 $177 a month | 105th of 359, with limits $240 a month | 10th cheapest of 359 $200 a month |
| CI runners 40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month A ten-minute CI job on Hetzner is billed as a full hour, and EC2 bills it per second. On both you run the runner software yourself. boat runs it on a full VM with Docker and /dev/kvm. | 19th cheapest of 374 $255 a month | 147th of 374, with limits $178 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB EC2 fits a 24/7 dev box at $76 a month and boat at $26. Hetzner's CX server costs $9.99, but it is a compromise today because Hetzner lists it as currently unavailable. | 60th cheapest of 371 $76 a month | 130th of 371, with limits $9.99 a month | 19th cheapest of 371 $26 a month |
| Computer-use agents 50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month Neither EC2 Linux images nor Hetzner servers ship a desktop. On EC2 you can stream one with Amazon DCV; on Hetzner you install a desktop and a remote-display server. boat streams a built-in 60fps desktop. | 145th of 367, with limits $195 a month | 176th of 367, with limits $320 a month | 7th cheapest of 367 $200 a month |
| Browser-use agents 50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month | 232nd of 356, with limits $101 a month | 275th of 356, with limits $312 a month | 7th cheapest of 356 $200 a month |
| Scraping & bots (startup scale) 50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month | 259th of 343, with limits $116 a month | 229th of 343, with limits $62 a month | 6th cheapest of 343 $90 a month |
| Mass scraping & bots (undetectable) 1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month | 85th of 327, with limits $2,046 a month | 48th of 327, with limits $1,248 a month | 73rd of 327, with limits $1,800 a month |
| Parallel red teaming 200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month | 162nd of 351, with limits $45 a month | 165th of 351, with limits $52 a month | 3rd cheapest of 351 $200 a month |
| GPU eval jobs 10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month Of these three, only EC2 fits: it rents Nvidia GPU instances such as H100s. Hetzner Cloud and boat have no GPU. | 26th cheapest of 102 $1,723 a month | Not ranked: misses a requirement | Not ranked: misses a requirement |
| macOS agents 5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | AWS EC2 | Hetzner Cloud | boat |
|---|---|---|---|
| What you get | A general cloud VM on a hyperscaler; you install and wire everything else | A general Linux VM you set up and run yourself | An agent sandbox: a full VM with agents, desktop, HTTPS URLs and snapshots set up |
| Isolation | Every instance is a Nitro VM with its own kernel | Every server is a full VM with its own kernel | Every sandbox is a full VM with its own kernel; vCPUs are shared, not dedicated cores |
| Docker and nested virtualization | Docker, root and systemd on any instance; KVM on Intel 7th/8th-gen families (C7i, M7i, R7i, C8i, M8i, R8i, X8i, I7i and variants) and metal, not on Graviton or AMD | Root and Docker; nested virtualization is "not possible on cloud server" (Hetzner dedicated servers allow it) | Docker, root, systemd and /dev/kvm on every sandbox |
| Availability | Launch on demand within your vCPU quota | On 2026-11-08 hetzner.com marked every cloud server line (CX, CAX, CPX, CCX) currently unavailable; status page reports limited availability since 26 June 2026 | Launch from the API within your plan's start and concurrency limits |
| Billing unit | Per second, with a 60 second minimum, no platform fee | Every started hour billed in full, with a monthly cap | Per second while running, from a monthly plan ($20 minimum) that comes back as VM time for that month |
| Stopped machines | Stopping ends instance charges; the EBS disk and any Elastic IP you keep keep billing | A powered-off server keeps its disk and bills at the full rate until you delete it | No compute charge while stopped; disk kept at least 14 days; saved snapshots above the included count and the AI proxy still charge |
| Snapshots | Manual, or scheduled with Data Lifecycle Manager | Snapshots through the Console or scheduled with the API, or daily backups in 7 slots for 20% of the server price | Automatic disk snapshot every minute and at each stop |
| Copy and fork | Make an image and boot a new instance from it; hibernation keeps memory for the same instance | Snapshot a running server through the API, then create a new server from it (disk, no memory; shutting down first is recommended) | Fork a running sandbox in one call from its last 1-minute snapshot (disk, no memory) |
| Reaching the machine | Public IPv4 ($0.005 an hour), static Elastic IPs and any port; HTTPS needs your own domain, certificate and load balancer or web server | Fixed public IPv4 and IPv6 on any port; HTTPS needs your own certificates or a paid load balancer | HTTPS URLs on up to 50 ports, token-gated by default; SSH; no static IPv4, and the IP changes at each resume |
| Desktop and computer use | Linux images have no desktop by default; install one and stream it with Amazon DCV (no license fee on EC2); Remote Desktop on Windows; no computer-use API | You set it up: install a desktop and a remote-display server; the VNC console is for admin | Built-in desktop and Chrome at 1920x1080, 60fps, with computer-use tools and an embeddable stream |
| Coding agents and keys | You install agents over SSH or Systems Manager; IAM roles give short-lived AWS credentials; other keys need your own proxy | You install agents and drive them over SSH; secrets go on the server through cloud-init, files or env vars, or behind your own proxy | Seven harnesses installed, with a prompt, steer and events API; optional paid AI credentials proxy keeps model provider keys out |
| Outbound rules | Security groups per instance; domain allowlists with AWS Network Firewall or DNS Firewall (paid) | Cloud Firewalls at no extra cost, with inbound and outbound rules by IP, port and protocol | Open internet on every plan; no provider-side allowlist |
| GPUs and operating systems | Nvidia GPUs up to H100 and H200; Linux, Windows and macOS on Mac Dedicated Hosts | Linux; no GPU in Hetzner Cloud | Ubuntu 24.04 x86_64, no GPU; Windows programs through Wine |
| Regions | 39 regions worldwide, including several in the EU | Germany and Finland, plus Ashburn, Hillsboro and Singapore | Germany, Finland and France; no US or Asia region, and you cannot pick one |
Every feature Battleships tracks (43)
| Feature | AWS EC2 | Hetzner Cloud | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | Yes | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Yes | Yes | Yes |
| Desktop GUI | With your own setup | With your own setup | Yes |
| Browser | No documented way | No documented way | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | Yes | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | Yes | With your own setup | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | No documented way | Yes | Yes |
| Memory fork | No documented way | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | No documented way | No documented way | No documented way |
| Wake on request | No documented way | No documented way | No documented way |
| HTTPS preview URLs | No documented way | With your own setup | Yes |
| Raw TCP inbound | Yes | Yes | Yes |
| Public IPv4 | Yes | Yes | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | No documented way | No documented way | Yes |
| Secret proxy for any API | No documented way | No documented way | Yes |
| Preinstalled agents | No documented way | No documented way | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | No documented way | No documented way | No documented way |
| GPU | Yes | No documented way | No documented way |
| Windows | Yes | No documented way | No documented way |
| Arm64 | Yes | Yes | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | No documented way | Yes |
| Usage per sandbox (API) | Yes | No documented way | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | Yes | No documented way | No documented way |
| SOC 2 | Yes | No documented way | No documented way |
| HIPAA | Yes | No documented way | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither AWS EC2 nor Hetzner Cloud is in the public benchmarks we use, so we cannot say which is faster. EC2 speed depends on the instance family you pick. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. That number is a boat sandbox, not a test of a Hetzner Cloud server.
V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. AWS EC2 and Hetzner Cloud are not in the public benchmarks we use, so we cannot say which is faster.
Pricing in five scenarios
Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.
| Scenario | AWS EC2, a month | Hetzner Cloud, a month | boat, a month |
|---|---|---|---|
| One coding agent, workdays 4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days | $21 · Pay-as-you-go (no platform fee) | $3 · Pay-as-you-go (postpaid) · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $51 · Pay-as-you-go (no platform fee) · with limits | $10 · Pay-as-you-go (postpaid) · with limits | $26 · $20/mo |
| 50 agents in parallel 50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside | $944 · Pay-as-you-go (no platform fee) | $141 · Pay-as-you-go (postpaid) · with limits | $317 · $20/mo × 3 seats |
| Sandboxes for your users 2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once | $269 · Pay-as-you-go (no platform fee) | $312 · Pay-as-you-go (postpaid) · with limits | $200 · $100/mo × 2 seats |
| 1,000 short jobs at once 2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month | $502 · Pay-as-you-go (no platform fee) | $2,080 · Pay-as-you-go (postpaid) · with limits | $8,800 · $2000/mo · with limits |
AWS EC2: EC2 bills each instance per second (60 second minimum) at its list rate, here the Graviton c7g sizes on demand, with no platform fee. EBS disks bill on top, also while stopped. A public IPv4 address bills while the instance runs, and an Elastic IP you keep also bills while stopped. Lower rates need a 1-year or 3-year commitment.
Hetzner Cloud: Hetzner bills each server by the hour, rounds every started hour up, and caps the month. It keeps billing until you delete the server, also when it is off. The prices here use the shared CX line and include the public IPv4. On 2026-11-08 Hetzner's site marked every cloud server line (CX, CAX, CPX, CCX) as currently unavailable.
Limits in those scenarios
A new AWS account can run only 5 vCPUs of standard On-Demand instances per region, so 50 agents or 300 user sandboxes need a quota raise first, and the always-on EC2 price needs a 3-year commitment. Every Hetzner scenario is priced on the CX line, which Hetzner marked currently unavailable on 2026-11-08, so none fits as priced today. Hetzner's per-account limits are not published and are raised by a request reviewed by hand. boat's limits: plans cost $20, $100, $500 or $2,000 a month, and the plan price comes back as VM time for that month only. For 1,000 short jobs at once, boat's $2,000 plan includes 90 starts a minute, 600 an hour and 2,400 a day, charges for extra starts and refuses them above 270 a minute, so that burst does not fit boat; EC2 fits it at $502.
| Scenario | AWS EC2 | Hetzner Cloud | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel | None for this scenario |
| None for this scenario |
| Sandboxes for your users | None for this scenario |
| None for this scenario |
| 1,000 short jobs at once | None for this scenario |
|
|
Which one should you use?
Use AWS EC2 when
you need GPUs, Windows or macOS, regions all over the world, per-second billing for big bursts of short jobs, or the rest of the AWS cloud around your servers.
- GPUs, Windows and macOS. Useful if your work needs GPUs, Windows or macOS: EC2 rents Nvidia GPU instances, Windows servers and Mac hosts.
- Regions all over the world. Useful if your users sit far from Europe: EC2 runs in 39 regions, Hetzner Cloud in six locations.
- Per-second billing for short jobs. Useful for many short runs: EC2 bills per second, while Hetzner bills every started hour in full.
Use Hetzner Cloud when
you want plain long-lived Linux servers you run yourself, at a low monthly price, with free outbound firewall rules and big dedicated machines, once stock is available.
- Low prices for always-on servers. Useful for plain long-lived servers: Hetzner bills hourly up to a monthly cap, with the public IPv4 included in the price.
- Free outbound firewall rules. Useful if a machine must reach only a few addresses: Hetzner Cloud Firewalls cost nothing extra and filter outbound traffic too.
- Big dedicated machines. Useful for heavy single machines: dedicated CCX servers go up to 48 vCPU and 192 GB of memory.
Where boat fits
EC2 and Hetzner Cloud both rent general servers, and boat is not a general cloud. If you run agents, boat gives each one a full VM that is ready to work, with /dev/kvm, coding agents, a desktop, HTTPS URLs and a disk saved every minute, on machines in Germany, Finland and France. For one plain server that runs all month, Hetzner's list price is lower.
Nested virtualization on every sandbox
Hetzner says VMs inside a cloud server are not possible, and EC2 allows them on Intel 7th/8th-gen families and metal. Agents that run emulators, Firecracker or their own VMs get /dev/kvm on every boat sandbox.
Minute snapshots and fork while running
A powered-off Hetzner server bills in full until deleted, and a stopped EC2 instance still bills its disk. On both, a copy means an image plus a fresh boot. boat forks a running sandbox and has no compute charge while stopped. If a machine fails, writes after the last good snapshot are lost.
Agents and desktop built in
Both clouds start from an empty OS, so you install, prompt and watch every agent and add a desktop yourself. boat installs seven harnesses you drive by API, and its optional paid credentials proxy keeps model provider keys out.
Use boat when what you run is agents and you want each on a ready full VM: /dev/kvm, coding agents with an API, a built-in desktop, HTTPS URLs, a disk saved every minute and forks. Compare it one to one: boat vs AWS EC2 and boat vs Hetzner Cloud.
boat's own limits
- Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
- Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
- A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
- Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
- boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
- Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
- Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
- Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source
Questions people ask
Is AWS EC2 cheaper than Hetzner Cloud?
On list prices, Hetzner is lower for long-running machines: 50 agents in parallel come to $141 a month on Hetzner against $944 on EC2, and one agent that never stops to $10 against $51 (EC2 with a 3-year commitment). EC2 costs less for short work, since Hetzner bills every started hour: 1,000 short jobs come to $502 on EC2 against $2,080, and 300 user sandboxes to $269 against $312. The Hetzner prices use the CX line, which Hetzner marked currently unavailable on 2026-11-08. On boat, 50 agents cost $317 and one agent 24/7 costs $26.
Which is faster, AWS EC2 or Hetzner Cloud?
We cannot say: neither is in the public benchmarks we use. boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on an AMD Ryzen 9 9950X host.
Can AWS EC2 and Hetzner Cloud run Docker and nested virtualization?
Both run Docker, since each machine is a full VM with root. EC2 supports KVM on Intel 7th/8th-gen families (C7i, M7i, R7i, C8i, M8i, R8i, X8i, I7i and variants) and on metal, not on Graviton or AMD. Hetzner says running VMs inside a cloud server is not possible; its dedicated servers allow it. boat has /dev/kvm on every sandbox.
Do I pay for a stopped server?
On EC2, stopping ends instance charges, but the EBS disk and any Elastic IP you keep keep billing. On Hetzner, a server bills at the full rate until you delete it, also when it is off. On boat, a stopped sandbox has no compute charge and keeps its disk for at least 14 days. Saved snapshots above the included count and the AI credentials proxy still charge.
Where does my data run?
EC2 runs in 39 regions worldwide, including several in the EU. Hetzner Cloud runs in Germany and Finland, and also in Ashburn, Hillsboro and Singapore. boat runs on machines in Germany, Finland and France, and you cannot pick a region. Snapshot copies can be stored outside the EU.
Can I run coding agents on EC2 or Hetzner Cloud?
Yes. On either one you launch a server, install the agent, put a key on it and drive it over SSH. boat installs seven harnesses, including Claude Code, Codex and OpenCode, with a prompt, steer and events API. With boat's optional paid credentials proxy on, real keys of supported model providers stay outside the machine.
Try boat
Install the CLI, then run boat new.
7-day free trial