# Best persistent VMs for coding agents

URL: https://heaven.dev/compare/best-persistent-vms-for-coding-agents
Title: Best persistent VMs for coding agents - what comes with the VM
Description: Linux VMs a coding agent keeps for weeks, side by side: what keeps running, private previews, ports, regions and what one agent or a team of four pays.
Checked: November 20, 2026

Pick Heaven when a team's agents and the previews they build should keep running in one shared pool with sign-in and credentials handled, and exe.dev for one developer's agents at $15, or for regions and single sign-on. Pick boat when your code starts and steers the agent, Fly.io Sprites for work in bursts that can restart from its files, and Hetzner Cloud or DigitalOcean for a plain server you set up yourself.

## The best persistent VMs for coding agents, the short version

We rank for teams whose agents do the work: work that keeps running, previews teammates can open, what the team has to set up itself and what it pays.

| Product | Best for | When you disconnect | Starts at |
| --- | --- | --- | --- |
| **Heaven** | A team's agents and the previews they build, on one bill | Keeps running | $20 a month for 2 vCPUs and 8 GiB, any number of members |
| **exe.dev** | One developer's agents, or regions and single sign-on | Keeps running | $15 a month for 2 vCPUs and 4 GiB |
| **boat** | Your code starts, prompts and steers the agent | Runs until auto-stop, 1 hour by default, which paid plans can turn off | $20 a seat a month, returned as VM time |
| **Fly.io Sprites** | Work in bursts that can pick up from its files | Sleeps about 30 seconds after the last activity, and a request wakes it | Usage only. Personal bills under $5 are waived |
| **Hetzner Cloud** | The cheapest plain server you run yourself | Keeps running | $19.49 a month for 2 vCPUs and 4 GB in the US or Helsinki |
| **DigitalOcean** | A plain server in more regions, with an SLA | Keeps running | $24 a month for 2 vCPUs and 4 GiB |

## Persistent VMs for coding agents compared

### Keeping the agent working

| | Heaven | exe.dev | boat | Fly.io Sprites | Hetzner Cloud | DigitalOcean |
| --- | --- | --- | --- | --- | --- | --- |
| **Pause with memory** | ✓ | ✓ | ✗ No pause. A resume within 10 minutes usually keeps processes | ✗ Fly decides when it sleeps and goes cold | ✗ Powering off ends processes | ✗ Powering off ends processes |
| **Roll the disk back** | ✓ Snapshots, and hourly off-site backups that support restores | Backups to your own S3 bucket, in preview | ✓ A snapshot every minute | ✓ Checkpoints you restore in place | ✓ Snapshots, and paid daily backups | ✓ Snapshots, and paid backups |
| **What an idle or stopped machine costs** | The plan bills whether Computers run or not | The pool bills all month | ✓ No machine time while stopped | ✓ No compute while it sleeps. Storage bills | A powered-off server keeps billing | A powered-off Droplet keeps billing |

### The machine

| | Heaven | exe.dev | boat | Fly.io Sprites | Hetzner Cloud | DigitalOcean |
| --- | --- | --- | --- | --- | --- | --- |
| **Several machines share one plan** | ✓ | ✓ Up to 50 VMs on Personal | ✗ Each sandbox meters its own time | ✗ Each Sprite meters its own use | ✗ Each server has its own size and price | ✗ Each Droplet has its own size and price |
| **Start from your own image** | ✓ Container images | ✓ Docker images | Its Ubuntu image, or your saved snapshot of it | ✗ Fly's Ubuntu image | An ISO, or an image of another server | ✓ Uploaded images |
| **Coding agents ready to run** | ✓ Claude Code and Codex | ✓ Claude Code, Codex, Pi and its own Shelley | ✓ Seven harnesses, with an API to prompt and steer them | ✓ Claude, Codex, Gemini CLI, Cursor | You install them | Marketplace images, such as Codex CLI |

### Serving what the agent builds

| | Heaven | exe.dev | boat | Fly.io Sprites | Hetzner Cloud | DigitalOcean |
| --- | --- | --- | --- | --- | --- | --- |
| **A preview only signed-in teammates open** | ✓ People you grant, or anyone with a share link | ✓ People you share it with, by email or link | ✗ Anyone with the token URL | Your Fly organization, or its admins | You set up HTTPS and sign-in | You set up HTTPS and sign-in |
| **Your own domain** | ✓ With managed TLS | ✓ With managed TLS | ✗ on.boat.dev only | ✗ sprites.app only | ✓ Point DNS at its IP, or use a load balancer | ✓ Point DNS at its IP, or use a load balancer |
| **Raw TCP and UDP from the internet** | ✓ TCP in every plan. UDP on a static IPv4 address | ✗ HTTPS and SSH only | ✓ On an IP that changes on resume | ✗ A local tunnel only | ✓ | ✓ |
| **Internet transfer included** | 500 GB a month on Tiny | 200 GB a period on Personal | ✓ Not billed | ✓ Not metered | 20 TB a month in Europe | 4,000 GiB a month on the $24 Droplet |

### Teams and where it runs

| | Heaven | exe.dev | boat | Fly.io Sprites | Hetzner Cloud | DigitalOcean |
| --- | --- | --- | --- | --- | --- | --- |
| **What a team pays** | The same plan, no seat charge | Work, from $75 a month for 2 vCPUs and 4 GiB | $20 or more per seat | Usage, billed to the Fly organization | Each server's price | Each Droplet's price |
| **Choose the region** | ✗ Montreal only | ✓ 8 regions | ✗ Germany, Finland or France, boat's choice | ✗ Fly places it near you | ✓ Germany, Finland, US East and West, Singapore | ✓ 13 regions |

## The options

### Heaven for a team's agents and previews

- **Best for:** a team whose agents run around the clock and whose previews teammates and clients open behind a sign-in.
- **Not for:** work that must run outside Montreal, an agent that must be kept from the open internet, or code that needs an official SDK.

Heaven (heaven.dev) is cloud infrastructure for software factories. Each agent gets a Linux Computer with root, Docker and nested virtualization that keeps running with nobody connected, and the team's Computers share one plan's CPU, memory and storage. Next to a bare VM, Heaven does the setup: an HTTPS address with sign-in in front, share links, custom domains, email, public TCP ports, snapshots and hourly off-site backups. A GitHub integration keeps the token outside the Computer, so a prompt-injected agent can't read it, and a Computer's CPU, memory and disk change while it runs. Heaven runs only in Montreal, with no outbound rules, single sign-on, SDKs or wake on request. See [Heaven vs exe.dev](https://heaven.dev/compare/heaven-vs-exe-dev).

### exe.dev for one developer, with SDKs and regions

- **Best for:** one developer's agents, workers and previews, or a team that needs regions, OIDC sign-in and SDKs.
- **Not for:** a service that needs raw TCP or UDP from the internet.

exe.dev's VMs share a pool, keep running after you disconnect and pause with their processes, returning their share of the pool. They come with private previews shared by email or link, email, a GitHub App and integrations that keep tokens off the VM, a mode that limits a VM to those integrations, hosted MCP and TypeScript and Python SDKs. Work adds team pools and OIDC sign-in, and Enterprise adds your own cloud and a 99.9% SLA. Its VMs have no public IP, so raw TCP isn't available. See [exe.dev alternatives](https://heaven.dev/alternatives/exe-dev).

### boat for an API that drives coding agents

- **Best for:** a product or pipeline that starts a VM per task, prompts a coding agent in it and stops it when done.
- **Not for:** a preview that only signed-in teammates open, or an app on your own domain.

boat runs each sandbox as a full Ubuntu VM with root, Docker and KVM, billed by the second while it runs, from $0.018 an hour for 2 vCPUs and 4 GB. Its API starts, prompts and steers seven coding-agent harnesses and streams their events, its desktop can be embedded in your app, and a snapshot every minute lets you roll back a bad change or fork a sandbox. A model-API proxy keeps those keys off the machine, and raw TCP and UDP ports open on the sandbox's IP. A preview opens for anyone with its token URL. See [Heaven vs boat](https://heaven.dev/compare/heaven-vs-boat).

### Fly.io Sprites for workspaces that sleep

- **Best for:** an agent workspace idle most of the day, where an HTTP request is a good way to wake it.
- **Not for:** a worker that must stay up between requests, or an app on your own domain.

A Sprite keeps its disk and private HTTPS address through sleep, wakes on an HTTP request and bills CPU and memory only while awake. Every Sprite has 8 vCPUs, memory Fly manages and up to 100 GB of disk, with Claude, Codex, Gemini CLI and Cursor installed. Connectors keep GitHub and other credentials outside the Sprite, and Fly's SOC 2 Type 2 report and a self-service BAA cover it. A cold wake starts processes fresh, so the agent picks up from its checkout, and a long job needs a task hold renewed every hour. See [Heaven vs Sprites](https://heaven.dev/compare/heaven-vs-sprites).

### Hetzner Cloud for the cheapest server you run

- **Best for:** one long-running agent on a server you set up and secure yourself, at the lowest price.
- **Not for:** previews behind a sign-in, or credentials kept off the server, without setting them up yourself.

A Hetzner CPX22 has 2 vCPUs, 4 GB and 80 GB for $19.49 a month in Ashburn, Hillsboro or Helsinki, and $22.99 in Germany, plus $0.60 for its IPv4 address. A server includes 20 TB of transfer in Europe, a Cloud Firewall, private networks, a 99.9% SLA, ISO 27001, official Go and Python clients and Terraform. Daily backups are a paid option, nested VMs aren't supported, and you set up HTTPS, sign-in and the agent's credentials yourself. See [Heaven vs Hetzner](https://heaven.dev/compare/heaven-vs-hetzner).

### DigitalOcean for a server in more regions

- **Best for:** a long-running agent or service that needs its own address in a region near its users.
- **Not for:** several agents sharing one plan, or previews behind a sign-in without setup.

A Basic Droplet with 2 vCPUs and 4 GiB costs $24 a month with its own IPv4 address and 4,000 GiB of transfer, in 13 regions across North America, Europe, Asia and Australia. It has a 99.99% SLA per Droplet, OIDC sign-in for teams, an audit log, an MCP server and SDKs in Go, Python and TypeScript. Backups are a paid option, you set up HTTPS and sign-in yourself, and DigitalOcean blocks outbound mail ports, so mail goes through an outside provider. See [Heaven vs DigitalOcean](https://heaven.dev/compare/heaven-vs-digitalocean).

## Pricing

| Product | Entry plan | What it costs |
| --- | --- | --- |
| **Heaven** | Tiny | $20 a month for 2 vCPUs, 8 GiB and 100 GB, any number of Computers and members. Small is $40 for 4 vCPUs and 16 GiB |
| **exe.dev** | Personal | $15 a month for 2 vCPUs and 4 GiB across up to 50 VMs. Work is $75 for a team |
| **boat** | $20 plan | $20 a seat a month, returned as VM time: $0.018 an hour for 2 vCPUs and 4 GB |
| **Fly.io Sprites** | Pay as you go | $0.0385 a CPU-hour and $0.021875 a GB-hour of memory used while awake, plus storage. Adventurer is $20 a month |
| **Hetzner Cloud** | CPX22 | $19.49 a month for 2 vCPUs and 4 GB in the US or Helsinki, $22.99 in Germany. IPv4 is $0.60 more |
| **DigitalOcean** | Basic Droplet, 4 GiB | $24 a month for 2 vCPUs and 4 GiB with IPv4 |

The bills below take one agent sized at 2 vCPUs and 4 GiB, our estimate for the agent and a test build, using about 1 CPU and 2 GB on average and running all month with a preview a teammate opens. Rates are as published on November 19 and 20, 2026.

- **One agent.** exe.dev Personal is **$15** with the preview and sign-in included. Heaven Tiny is **$20** and leaves 4 GiB for a second agent. boat's **$20** seat covers the $12.96 of VM time its sandbox uses in 720 hours. Hetzner is **$20.09** in the US or Helsinki and a Droplet **$24**, before you set up sign-in. A Sprite held awake is about **$30.40** on Adventurer.
- **A team of four with four such agents.** Heaven Small holds all of them for **$40** on 4 shared vCPUs, and Medium matches 2 vCPUs each for **$80** if all four build at once all day. An exe.dev Work pool with 4 vCPUs and 8 GiB is **$151.65**, and four Personal plans **$60** if each developer keeps their own account. Four boat seats are **$80**, four Hetzner servers **$80.36**, four Droplets **$96**, and four Sprites held awake about **$186** on the Hero plan.

## Frequently asked questions

### Can a coding agent keep working after I close my terminal?

Yes, on a VM that stays running: Heaven, exe.dev, Hetzner Cloud and DigitalOcean. On boat, turn off auto-stop on a paid plan. A Sprite needs a task hold, renewed every hour, to stay awake.

### What about Fly Machines, Daytona or E2B?

A Fly Machine runs an image whose root filesystem is reset by default, so the checkout has to live on a Fly Volume. Daytona and E2B sessions end within a day or two, so they suit jobs that start fresh. See [best code sandboxes for AI agents](https://heaven.dev/compare/best-code-sandboxes-for-ai-agents).

### Which is cheapest for one agent?

exe.dev Personal, at $15 with the preview and sign-in built in. A Hetzner CPX22 is $20.09 in the US or Helsinki with its IPv4 address, and you set up previews, sign-in and credentials yourself.

### Which keeps the agent's GitHub token out of its reach?

Heaven and exe.dev integrations and Sprites Connectors send GitHub requests with a credential the machine never holds. boat's proxy covers model APIs. On a plain Hetzner or DigitalOcean server, you set that up yourself.

## Related comparisons

See [Heaven vs exe.dev](https://heaven.dev/compare/heaven-vs-exe-dev), [Sprites alternatives](https://heaven.dev/alternatives/sprites), [exe.dev alternatives](https://heaven.dev/alternatives/exe-dev), [Heaven vs Hetzner](https://heaven.dev/compare/heaven-vs-hetzner), [Heaven vs DigitalOcean](https://heaven.dev/compare/heaven-vs-digitalocean) and [best infrastructure for software factories](https://heaven.dev/compare/best-infrastructure-for-software-factories).

## Sources and corrections

- [Heaven pricing](https://heaven.dev/pricing)
- [Heaven pools](https://heaven.dev/docs/pools)
- [Heaven Computers](https://heaven.dev/docs/computers)
- [Heaven Computer states](https://heaven.dev/docs/managing-computers#states)
- [Heaven images](https://heaven.dev/docs/images)
- [Heaven resize](https://heaven.dev/docs/reference/computers/resize)
- [Heaven snapshots](https://heaven.dev/docs/snapshots)
- [Heaven backups and recovery](https://heaven.dev/docs/reference/computers/delete)
- [Heaven website access](https://heaven.dev/docs/websites#website-access)
- [Heaven share links](https://heaven.dev/docs/reference/computers/share-link-add)
- [Heaven public ports](https://heaven.dev/docs/ports#public-ports)
- [Heaven static IPv4 pricing](https://heaven.dev/docs/pricing#static-addresses)
- [Heaven credentials](https://heaven.dev/docs/keys#api-keys)
- [Heaven regions](https://heaven.dev/docs/capacity#regions)
- [Heaven default image](https://heaven.dev/docs/images#default-image)
- [exe.dev Personal](https://exe.dev/docs/billing/personal)
- [exe.dev Work](https://exe.dev/docs/billing/work)
- [exe.dev plan comparison](https://exe.dev/pricing/compare)
- [exe.dev pools](https://exe.dev/docs/pools)
- [exe.dev background work](https://exe.dev/docs/serverful)
- [exe.dev pause and copy](https://exe.dev/deploy/typescript-sandboxes#copy-pause-and-resize)
- [exe.dev VM backups](https://exe.dev/docs/vm-backups)
- [exe.dev images](https://exe.dev/docs/customization)
- [exe.dev preinstalled agents](https://exe.dev/deploy/agents)
- [exe.dev nested virtualization](https://exe.dev/docs/faq/nested-virtualization)
- [exe.dev integrations](https://exe.dev/docs/integrations)
- [exe.dev internet access](https://exe.dev/docs/internet-access)
- [exe.dev custom domains](https://exe.dev/docs/cnames)
- [exe.dev sharing](https://exe.dev/docs/sharing)
- [exe.dev architecture](https://exe.dev/docs/faq/how-exedev-works)
- [exe.dev SSO](https://exe.dev/docs/teams/sso#oidc-okta-azure-ad-etc)
- [exe.dev regions](https://exe.dev/docs/regions)
- [exe.dev Enterprise](https://exe.dev/docs/enterprise)
- [boat pricing](https://docs.boat.dev/pricing)
- [boat seats](https://docs.boat.dev/organizations/seats-and-limits)
- [boat sizes](https://docs.boat.dev/machines)
- [boat base image and tools](https://docs.boat.dev/machines/tools)
- [boat virtualization](https://docs.boat.dev/machines/virtualization)
- [boat auto-stop](https://docs.boat.dev/long-running-tasks/auto-stop)
- [boat snapshots](https://docs.boat.dev/snapshots)
- [boat stop and resume](https://docs.boat.dev/snapshots/stop)
- [boat integrated agents](https://docs.boat.dev/integrated-agents)
- [boat desktop](https://docs.boat.dev/desktop-streaming)
- [boat AI credentials](https://docs.boat.dev/ai-credentials)
- [boat public URLs and raw ports](https://docs.boat.dev/hosting)
- [boat FAQ](https://docs.boat.dev/faq)
- [boat data location](https://docs.boat.dev/compliance#data-location)
- [Sprites pricing](https://fly.io/pricing/)
- [Sprites plans](https://fly.io/changelog/new-sprites-plans/)
- [Fly free waiver](https://docs.fly.io/about/free-waiver)
- [Sprites lifecycle](https://docs.fly.io/sprites/concepts/lifecycle#active-warm-cold)
- [Sprites resources](https://docs.fly.io/sprites/concepts/lifecycle#resources)
- [Sprites activity and task holds](https://fly.io/sprites/#faq)
- [Sprites checkpoints](https://docs.fly.io/sprites/concepts/checkpoints)
- [Sprites maintenance and images](https://docs.fly.io/sprites/sprite-maintenance)
- [Sprites working guide](https://docs.fly.io/sprites/working-with-sprites)
- [Sprites networking](https://docs.fly.io/sprites/concepts/networking)
- [Sprites URL access](https://docs.fly.io/sprites/concepts/networking#url-authentication)
- [Sprites Connectors](https://docs.fly.io/sprites/concepts/connectors)
- [Fly security questionnaire](https://fly.io/legal/security-questionnaire/)
- [Where a Sprite runs](https://community.fly.io/t/wheres-my-sprite-in-the-world/28621)
- [Hetzner Cloud pricing](https://www.hetzner.com/cloud/)
- [Hetzner cost-optimized servers](https://www.hetzner.com/cloud/cost-optimized/)
- [Hetzner billing FAQ](https://docs.hetzner.com/cloud/billing/faq/)
- [Hetzner server FAQ](https://docs.hetzner.com/cloud/servers/faq/)
- [Hetzner servers overview](https://docs.hetzner.com/cloud/servers/overview/)
- [Hetzner backups and snapshots](https://docs.hetzner.com/cloud/servers/backups-snapshots/overview/)
- [Hetzner API](https://docs.hetzner.cloud/reference/cloud)
- [Hetzner certifications](https://www.hetzner.com/unternehmen/zertifizierung/)
- [Hetzner Cloud terms and SLA](https://www.hetzner.com/legal/cloud-server/?country=us)
- [DigitalOcean Droplet pricing](https://www.digitalocean.com/pricing/droplets)
- [DigitalOcean Droplet billing](https://docs.digitalocean.com/products/droplets/details/pricing/)
- [DigitalOcean custom images](https://docs.digitalocean.com/products/custom-images/details/limits/)
- [DigitalOcean coding agent images](https://docs.digitalocean.com/products/marketplace/categories/ai-agents/)
- [DigitalOcean nested virtualization](https://docs.digitalocean.com/products/droplets/details/live-migration/)
- [DigitalOcean snapshots](https://docs.digitalocean.com/products/snapshots/)
- [DigitalOcean backups](https://docs.digitalocean.com/products/backups/details/features/)
- [DigitalOcean Cloud Firewalls](https://docs.digitalocean.com/products/networking/firewalls/)
- [DigitalOcean load balancer TLS](https://docs.digitalocean.com/products/networking/load-balancers/how-to/ssl-termination/)
- [DigitalOcean bandwidth](https://docs.digitalocean.com/platform/billing/bandwidth/)
- [DigitalOcean SMTP](https://docs.digitalocean.com/support/why-is-smtp-blocked/)
- [DigitalOcean SSO](https://docs.digitalocean.com/platform/teams/how-to/configure-sso/)
- [DigitalOcean security history](https://docs.digitalocean.com/platform/teams/how-to/view-security-history/)
- [DigitalOcean SDKs](https://docs.digitalocean.com/reference/)
- [DigitalOcean MCP](https://docs.digitalocean.com/reference/mcp/)
- [DigitalOcean regions](https://docs.digitalocean.com/platform/regional-availability/)
- [DigitalOcean SLA](https://www.digitalocean.com/sla/cpu-droplets)

Spot an error? Email support@heaven.dev with the page, the claim and a source.
