boat vs Heroku

Heroku is a platform for hosting web apps: your code runs in dynos, non-root containers that start from a clean copy of your code each time. boat is a sandbox for AI agents: each one gets a full VM with root, Docker and /dev/kvm, a disk saved every minute while it runs, a desktop, and coding agents you drive from outside.

Where boat stands out

A disk that keeps the agent's work

boat saves a sandbox's disk every minute while it runs and once more at each stop, and you can fork it while it runs. Memory and running programs are not saved, and a machine failure loses the writes after the last good snapshot. A Heroku dyno gets a fresh copy of your code each time it starts, and the files it writes are gone at each stop, restart or deploy.

A full VM with root and Docker

Every boat sandbox is a VM with its own kernel, root, systemd, Docker and /dev/kvm. Heroku runs your code in hardened containers as a non-root user, so you can deploy a Docker image there but not run Docker, install system packages with apt or boot an emulator inside it.

Coding agents and a desktop built in

boat installs seven coding-agent harnesses in each sandbox, including Claude Code, Codex and OpenCode. You drive them from outside with a prompt, steer and events API. Each sandbox also has a 1920x1080, 60 fps desktop with Chrome and computer tools. The optional, paid AI credentials proxy keeps supported providers' keys outside the sandbox.

The companies and products

boat

boat.dev runs sandboxes for AI agents: each one is a full Linux VM with its own kernel.

You start a machine with one command or one API call, then SSH in, run Docker, open a desktop, or let a built-in agent (Claude Code, Codex, OpenCode and others) work in it. The disk stays between sessions, and a stopped sandbox costs nothing.

Heroku

Heroku is a platform as a service (PaaS) owned by Salesforce: you push code and it runs your web apps, workers and databases.

You deploy an app with git or a Docker image, and Heroku runs it in dynos, hardened Linux containers that run as a non-root user and get a fresh filesystem on every start. It also sells managed Postgres, Key-Value Store, Kafka, a marketplace of add-ons, and Managed Inference and Agents, which hosts models and runs agent code in one-off dynos. Private Spaces give apps their own network in ten regions. Heroku is built for teams that host web apps and APIs. This page compares the two only where they overlap.

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. “5th cheapest of 365” means 4 of the other 364 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 workloadboat: price rankHeroku: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory needs machines that keep installs and half-done work and run Docker. Dyno files reset on every stop, deploy and (on Cedar) daily restart, and dynos run as non-root with no Docker inside. You set it up: keep the work in Postgres or an S3 add-on, and build images on another machine.
5th cheapest of 365
$634 a month
316th of 365, with limits
$6,023 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An always-on assistant can run in a worker dyno. Cedar restarts it every day; Fir apps, which need a Private Space, can turn that off with a Labs flag. Its files still reset at each restart and deploy, so you keep its memory in Postgres or an add-on.
6th cheapest of 361
$657 a month
322nd of 361, with limits
$7,450 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
Heroku Managed Inference and Agents runs code_exec tools for Python, Node, Ruby and Go in one-off dynos, billed as dyno time, and the Heroku MCP server can run code in one-off dynos too. Those dynos have no root and no Docker. On boat, each short job is a start: the $20 plan includes 200 a day, and extra starts cost $0.03 to $0.07 each.
189th of 336, with limits
$2,000 a month
304th of 336, with limits
$1,157 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
Giving each of your users a machine on Heroku means one dyno or app per user, with no per-user disk that stays. A Fir Private Space runs 500 dynos by default, and support can raise that. On boat, 300 sandboxes at once needs the $100 plan.
3rd cheapest of 349
$209 a month
304th of 349, with limits
$3,144 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
39th of 349, with limits
$2,000 a month
282nd of 349, with limits
$11,359 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
10th cheapest of 359
$200 a month
316th of 359, with limits
$2,667 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
CI jobs that build container images need Docker inside the job. Dynos run as non-root with no Docker inside, so you build images on another runner and push them to Heroku's Container Registry (Cedar apps). Every boat sandbox runs Docker.
2nd cheapest of 374
$86 a month
312th of 374, with limits
$833 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box needs a home directory that survives the night; dyno files reset at every restart. For a shell, Heroku Exec works on Cedar (1-hour sessions, not in Shield spaces) and heroku run:inside works on Fir. A stopped boat sandbox keeps its disk for at least 14 days; auto-stop defaults to 1 hour, and you can turn it off on a paid plan.
19th cheapest of 371
$26 a month
219th of 371, with limits
$1,430 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
Heroku ships no desktop or computer-use tools. You set it up: the Chrome for Testing buildpack adds Chrome and chromedriver for a headless browser, and a virtual display, a stream and the click layer are yours to build. A web dyno takes HTTP traffic on one port.
7th cheapest of 367
$200 a month
329th of 367, with limits
$2,500 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
7th cheapest of 356
$200 a month
209th of 356, with limits
$1,750 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
6th cheapest of 343
$90 a month
208th of 343, with limits
$1,542 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
73rd of 327, with limits
$1,800 a month
244th of 327, with limits
$11,833 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
3rd cheapest of 351
$200 a month
323rd of 351, with limits
$1,495 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Not ranked: misses a requirementNot 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 requirementNot ranked: misses a requirement

Key features

FeatureboatHeroku
Kind of productSandboxes for AI agents: full Linux VMs you create, stop, fork and drive by APIApp platform: you deploy code and it runs web and worker processes
IsolationEvery sandbox is a full VM with its own kernel, on a physical host dedicated to boat; vCPUs are sharedHardened OS containers that share a kernel; Performance, Private, Shield and Fir dynos get dedicated compute
Root, Docker and nested virtualizationRoot, systemd, Docker with BuildKit and Compose, and /dev/kvm on every sandboxContainers run without root; you can deploy a Docker image on Cedar, but not run Docker inside a dyno
Files after a stop or restartThe disk is saved every minute while the sandbox runs and at each stop; memory, /tmp and running programs are not saved. A stopped sandbox has no compute charge, and boat keeps its disk for at least 14 days, or longer as a saved snapshot.Ephemeral filesystem: files are discarded on every stop, restart and deploy. You keep files in Postgres or an S3 add-on.
How long one machine runsNo session cap once auto-stop is off (default 1 hour, can be turned off on paid plans)Cedar dynos, one-off dynos too, restart every 24 hours plus up to 216 minutes; Fir apps can opt out with a Labs flag, but any stop or deploy still wipes files
Fork and snapshotsFork a running sandbox from its last 1-minute snapshot; start new sandboxes from saved snapshots (disk only, no memory)No dyno snapshot or fork; new dynos start from the deployed release, which you can roll back. Postgres has its own forks.
Reaching the machineUp to 50 public HTTPS URLs per sandbox, token-gated by default; SSH over IPv4; raw ports over IPv6; no dedicated IPv4HTTP on the web process with custom domains; stable outbound IPs in Private Spaces; no raw TCP inbound or public IP per dyno
Shell accessSSH and a command API into the running sandboxHeroku Exec SSH tunnels on Cedar (1-hour sessions, not in Shield spaces); heroku run:inside on Fir; no SSH server you connect to directly
Desktop and computer useBuilt-in desktop and Chrome at 1920x1080, 60 fps, with computer tools for agents and an embeddable stream; no GPUNot part of the product. You set it up: the Chrome for Testing buildpack adds Chrome and chromedriver; a virtual display and a stream are yours to add
Coding agentsSeven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events APINo coding agents inside dynos; you can deploy one in a worker dyno. The MCP server lets agents deploy and run code, and Managed Inference and Agents runs code_exec tools in one-off dynos
Keeping keys out of the machineOptional AI credentials proxy ($1 a day plus $1 per 1,000 requests) for model providers and any HTTPS API you register; other secrets still enter the sandboxSecrets are config vars, exposed to the code as environment variables
Managed databases and add-onsNone hosted; run your own database inside a sandboxManaged Postgres, Key-Value Store and Kafka, plus a marketplace of add-ons
ComplianceSOC 2 in progress; no HIPAA BAA documented; 99.95% measured sandbox uptime, no SLAShield Private Spaces are sold for HIPAA and PCI workloads
Biggest machine8 vCPU / 16 GB on the $20 plan, 16 vCPU / 32 GB from the $100 planUp to 32 vCPU / 64 GB or 16 vCPU / 128 GB (Fir, Private Spaces only); 126 GB on Performance-2XL
RegionsGermany, Finland and France; you cannot pick a region, and there is no US or Asia regionUS and Europe, plus Private Spaces in ten cities across the Americas, Europe, Asia and Australia
Compliance and transparencySOC 2 is in progress. We're open about where we stand: live status and data retention policy.SOC 2
Every feature Battleships tracks (43)
FeatureboatHeroku
Full VM (own kernel)YesNo documented way
Docker insideYesNo documented way
Nested virtualizationYesNo documented way
RootYesNo documented way
SystemdYesNot published
Desktop GUIYesNo documented way
BrowserYesWith your own setup
Computer-use APIYesNo documented way
SSHYesYes
Persistent diskYesNo documented way
Pause/resumeYesNo documented way
Automatic snapshotsYesNo documented way
Fork/cloneYesNo documented way
Live fork (no pause)YesNo documented way
Memory forkNo documented wayNo documented way
Custom image (Docker or snapshot)YesYes
≥24 h sessionsYesYes
Idle auto-stopNo documented wayYes
Wake on requestNo documented wayYes
HTTPS preview URLsYesYes
Raw TCP inboundYesNo documented way
Public IPv4No documented wayNo documented way
Egress allowlistNo documented wayNo documented way
Secret proxyYesNo documented way
Secret proxy for any APIYesNo documented way
Preinstalled agentsYesNo documented way
Agent harness APIYesNo documented way
MCP serverNo documented wayYes
GPUNo documented wayNo documented way
WindowsNo documented wayNo documented way
Arm64No documented wayYes
Self-hostingNo documented wayNo documented way
BYOCNo documented wayNo documented way
Open sourceNo documented wayNo documented way
Scoped API keysYesNot published
Spend limitsYesNot published
Usage per sandbox (API)YesYes
Audit logsNo documented wayNot published
SSONo documented wayYes
SOC 2No documented wayYes
HIPAANo documented wayYes
EU data residencyNo documented wayYes
Zero data retentionYesNot published

Performance

boat28.06 runs/s
HerokuNot measured

Heroku is not in the public benchmarks we use, so we cannot say which is faster. In StarSling's run of 3 October 2026 (run 37073680030), a 4 vCPU / 8 GB boat sandbox did 28.06 runs/s on the V8 Web Tooling Benchmark, second of 15. That sandbox ran on an AMD Ryzen 9 9950X host; boat also places sandboxes on Ryzen 7 9700X hosts and does not promise a CPU model. Heroku publishes vCPU counts for Fir dynos only; Cedar dynos list relative compute units.

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. Heroku is 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.

Scenarioboat, a monthHeroku, 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
$20 · $20/mo$1,066 · Private Space · with limits
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$26 · $20/mo$1,270 · Private Space · with limits
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$317 · $20/mo × 3 seats$4,300 · Private Space · with limits
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$200 · $100/mo × 2 seats$1,937 · Private Space · with limits
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$8,800 · $2000/mo · with limits$3,072 · Private Space · with limits

boat: Plans cost $20, $100, $500 or $2,000 a month. The whole plan price comes back as VM time for that month, billed per second while a sandbox runs, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. Included time expires at the end of the month; money you add to the wallet does not. A card is required, also for the 7-day trial. A stopped sandbox has no compute charge, but saved snapshots above the plan's count and the AI credentials proxy still charge. The $20 plan includes up to 200 sandbox starts a day and 100 running at once; extra starts cost $0.03 to $0.07 each.

Heroku: Heroku bills each dyno per second of wall-clock time while it is scaled above zero, capped at its monthly price. Dynos with a published vCPU count, like the 4 vCPU / 8 GB Fir dyno priced here (up to $300 a month), run only inside a Private Space. A Private Space costs about $1.389 an hour, capped at $1,000 a month, and one space holds many dynos, so our bills include it once. Spaces need a verified Team or an Enterprise contract. Small Common Runtime dynos cost less ($7 to $50 a month) but publish compute units, not vCPUs. Heroku sells no disk, because the filesystem resets on restart.

Limits in those scenarios

Heroku is marked as not a clean fit in every scenario because it is an app platform, not a sandbox. Dyno files are wiped on every stop, deploy and (on Cedar) daily restart, so an always-on agent keeps no state on its own disk. For 1,000 short jobs at once, a Fir Private Space allows 500 dynos by default, and support can raise that limit. On boat, the 1,000-job burst needs about 6,667 starts a day and 1,000 an hour; the $2,000 plan includes 2,400 a day, 600 an hour and 90 a minute, extra starts are paid, and starts above 270 a minute fail with 429. boat never queues a start. A stopped boat sandbox keeps its disk for at least 14 days; after that only a saved snapshot keeps it. If a machine fails, you lose what was written after the last good snapshot.

ScenarioboatHeroku
One coding agent, workdaysNone for this scenario
  • adjacent product, not a like-for-like sandbox
  • missing persistent disk
  • different kind of product: app platform
  • no persistent disk: files lost when it stops or sleeps
One agent that never stopsNone for this scenario
  • adjacent product, not a like-for-like sandbox
  • missing persistent disk
  • different kind of product: app platform
  • no persistent disk: files lost when it stops or sleeps
50 agents in parallelNone for this scenario
  • adjacent product, not a like-for-like sandbox
  • missing persistent disk, Docker inside
  • different kind of product: app platform
  • no persistent disk: files lost when it stops or sleeps
Sandboxes for your usersNone for this scenario
  • adjacent product, not a like-for-like sandbox
  • different kind of product: app platform
  • disk beyond 0 GiB: price unknown
  • egress price not published
1,000 short jobs at once
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429
  • Private Space: max 500 concurrent
  • adjacent product, not a like-for-like sandbox
  • different kind of product: app platform
  • disk beyond 0 GiB: price unknown
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

Which one should you use?

Use Heroku when

you host a web app or API with managed Postgres and add-ons, need HIPAA or PCI through Shield, want short agent code runs next to hosted models, or need regions in the US, Asia or Australia.

  • Apps and databases in one place. Useful if you host a web app: Heroku runs it next to managed Postgres, Key-Value Store, Kafka and many add-ons.
  • Models and code execution in one bill. Useful for short agent tool calls: Heroku Managed Inference and Agents hosts LLMs and runs code_exec tools in throwaway one-off dynos.
  • Regions around the world. Useful if your users are far from Europe: Private Spaces run in ten cities, from Oregon and Virginia to Tokyo and Sydney.
  • Compliance for regulated data. Useful if you handle health or payment data: Heroku sells Shield Private Spaces for regulated workloads.
  • Small apps that sleep. Useful for hobby web apps: Eco dynos sleep after 30 minutes without traffic and wake on the next request.

Use boat when

an agent needs a machine of its own: a full VM with root, Docker and KVM, a disk saved every minute that you can fork, a desktop, and coding agents you drive from outside.

  • A disk that keeps the agent's work. An agent clones a repo, installs packages and leaves work half done. On Heroku you set it up: push every file to Postgres or an S3 add-on and restore it at each start.
  • A full VM with root and Docker. Agents install things with apt, run docker compose for tests and start Android emulators. On Heroku you build images on another machine and run emulators somewhere else.
  • Coding agents and a desktop built in. On Heroku you set it up: deploy the agent in a worker dyno, add a browser with a buildpack, and keep its API key in a config var that any code in the dyno can read.

Questions people ask

Can I run AI agents on Heroku?

Yes, in a worker or one-off dyno. Heroku's MCP server lets agents deploy and run code, and Managed Inference and Agents runs code_exec tools in one-off dynos. A dyno is a non-root container with no Docker inside, and its files reset at each stop, restart and deploy. On boat each agent gets a full VM with a disk saved every minute.

Is boat cheaper than Heroku?

In 4 of the 5 scenarios we priced, yes; Heroku is an app platform and fits none of them cleanly. One coding agent on workdays comes to $20 a month on boat and $1,066 on Heroku, one agent running all month to $26 versus $1,270, 50 agents in parallel to $317 versus $4,300, and sandboxes for your users to $200 versus $1,937. For 1,000 short jobs at once, boat costs more: $8,800 versus $3,072, because the job needs more starts than the $2,000 plan includes. Heroku's bills use a 4 vCPU / 8 GB Fir dyno (up to $300 a month), which needs a Private Space (up to $1,000 a month, shared by every dyno in it). Small Common Runtime dynos cost less but do not publish a vCPU count.

Do Heroku dynos keep their files?

No. Each dyno gets an ephemeral filesystem with a fresh copy of your deployed code, and any file it writes is discarded when it stops, restarts or is redeployed. Heroku points you to S3 or a database add-on for anything you want to keep. boat saves the whole disk every minute while the sandbox runs and at each stop. Memory and running programs are not saved, and the writes after the last good snapshot can be lost if a machine fails.

Do Heroku dynos restart every day?

Cedar dynos, one-off dynos too, restart every 24 hours plus up to 216 minutes. Fir apps can turn the daily restart off with the Labs flag fir-bypass-daily-dyno-restarts. Dynos still restart on each release, config change or hardware fault, and their files reset each time.

Is a Heroku dyno a VM or a container?

A container. Heroku says it uses OS containerization with custom hardening, and Performance, Private, Shield and Fir dynos get dedicated compute. Containers run without root. On boat, every sandbox is a full VM with its own kernel; its vCPUs are shared.

Where does my data run?

boat sandboxes run on machines in Germany, Finland and France, and you cannot pick a region. Snapshot copies can be stored outside the EU. Heroku runs regular apps in the US or Europe and Private Spaces in ten cities, including Dublin, Frankfurt and London in Europe.

Is boat SOC 2 compliant?

No, SOC 2 is in progress, and boat documents no HIPAA BAA. boat measures 99.95% sandbox uptime and publishes no SLA. Live status is at status.ascii.dev and the data retention policy at docs.boat.dev/data-retention. Heroku sells Shield Private Spaces for HIPAA and PCI workloads.

Start a sandbox

Install the CLI, then run boat new.

7-day free trial

More comparisons