Fly.io Machines vs OpenAI Containers
Fly.io Machines are microVMs you build, keep and host apps on, in 17 regions. OpenAI Containers are short-lived boxes inside OpenAI's API where the model runs code. By default a container expires after 20 minutes without use, and the create call can set a different idle time.
The companies and products
Fly.io Machines
Fly.io is an app hosting platform, and Machines are the microVMs underneath it that you can also start and stop through a REST API.
A Fly Machine boots your Docker image as a Firecracker microVM on Fly's own servers, in one of 17 regions. You pick a shared or performance CPU preset and mount one Volume at a time for data that must last. Fly Proxy can stop, suspend and wake Machines as traffic comes and goes. Machines themselves are an app-hosting building block; for agent sandboxes Fly also sells Sprites (see boat vs Sprites), so this page compares only the Machines product.
OpenAI Containers
OpenAI Containers are the sandboxes OpenAI runs for its own model tools: Code Interpreter, Hosted Shell and the Agents API's hosted sandbox.
This is a different kind of product from boat: a tool inside OpenAI's model API, not a machine you rent. You create a container through the API, or a Responses call makes one. The model runs Python or shell commands in it on a fixed Debian 12 image without sudo. By default the container expires after 20 minutes without use; the create call can set a different idle time. It is built for apps that already call OpenAI models and want them to run code, read files and make charts without running any servers.
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. “123rd cheapest of 365” means 122 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 workload | Fly.io Machines: price rank | OpenAI Containers: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A coding agent needs root, Docker and a disk that stays. Fly gives root, and files last on a Volume you set up. Hosted OpenAI containers run without sudo, document no Docker and discard files when they expire; you can connect the Agents API to a sandbox you host. boat has root, Docker and a saved disk on every sandbox. | 123rd of 365, with limits $836 a month | 357th of 365, with limits $17,371 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An assistant that runs all month needs a machine that stays up. A Fly Machine can run with no time cap. An OpenAI container discards its files when it expires. boat runs with no session cap once auto-stop is off (default 1 hour) on a paid plan. | 186th of 361, with limits $816 a month | 344th of 361, with limits $13,140 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 OpenAI Containers are built for this: the model runs its code in the same API call. Fly ranks higher here at a lower bill ($94 against $6,000 a month), but you build the sandbox yourself. | 83rd of 336, with limits $94 a month | 198th of 336, with limits $6,000 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 Users can open a URL on a Fly Machine or a boat sandbox. OpenAI documents no inbound ports for hosted containers; you reach them through the API. | 75th of 349, with limits $600 a month | 349th of 349, with limits $3,780 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 | 52nd of 349, with limits $2,838 a month | 195th of 349, with limits $30,000 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 | 124th of 359, with limits $457 a month | 355th of 359, with limits $5,760 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 CI needs Docker and open internet. Fly lets you install Docker, but long loads drain a shared vCPU's burst balance. OpenAI documents no Docker, and Code Interpreter and Hosted Shell have no outbound access until an admin allows domains. | 154th of 374, with limits $288 a month | 347th of 374, with limits $1,728 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Fly Machines and boat both offer SSH into a machine you keep. Hosted OpenAI containers document no SSH, and their files go when they expire. | 160th of 371, with limits $35 a month | 365th of 371, with limits $1,051 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 OpenAI's Agents API (beta) has a hosted browser for computer use. On Fly you add a desktop to your own image. boat streams a 60fps desktop with Chromium you can embed. | 140th of 367, with limits $173 a month | 353rd of 367, with limits $5,280 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 | 229th of 356, with limits $90 a month | 335th of 356, with limits $1,440 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 | 233rd of 343, with limits $67 a month | 334th of 343, with limits $1,755 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 Fly fits wide scraping better than OpenAI, with 17 regions and open internet; Code Interpreter and Hosted Shell need an admin allowlist for every domain. | 47th of 327, with limits $1,232 a month | 307th of 327, with limits $35,100 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 | 168th of 351, with limits $63 a month | 310th of 351, with limits $870 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 | Not ranked: misses a requirement | 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 | Fly.io Machines | OpenAI Containers | boat |
|---|---|---|---|
| What it is | App hosting platform; you boot your own image as a microVM through a REST API | A sandbox tool the model uses inside OpenAI's API | Agent sandbox: a full VM per agent, ready to use |
| Isolation | Firecracker microVM with its own kernel | A fully sandboxed virtual machine; hypervisor not named | Full VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Root, Docker and nested virtualization | Root, and Docker you install yourself; Fly's own init by default; /dev/kvm not documented | Commands do not run with sudo; Docker and /dev/kvm not documented. You can connect the Agents API to a self-hosted sandbox where you control the machine | Root, real systemd, Docker and /dev/kvm on every sandbox |
| Files after a stop | Root file system resets by default; opt-in persist_rootfs keeps it, but Fly staff say not to trust it with critical data. One Volume per Machine, billed for its full size around the clock | Data is discarded when the container expires. Agents API publishes files in /workspace/outputs as artifacts that stay downloadable | Disk saved every minute and at each stop; no compute charge while stopped; kept at least 14 days, longer with a saved snapshot |
| Lifetime | No documented cap; a Machine runs until you or autostop stop it | By default expires after 20 minutes without use (expires_after can be set; no maximum published). Agents API sandboxes can be deleted after an hour without activity | Auto-stop defaults to 1 hour, up to 30 days; no session cap once it is off on a paid plan |
| Pause and memory | Suspend keeps memory for Machines up to 2GB | No pause or snapshot call documented | Resume reboots from disk; memory is not saved |
| Fork | Clone copies a Machine's config; its Volume starts empty unless you restore a volume snapshot or fork the Volume | No fork call documented. You set it up: create a new container and upload the same files | Fork a running sandbox from its last 1-minute snapshot |
| Custom image | Any Docker image you build | Fixed Debian 12 image; you upload files or skills into each container | Saved snapshots of a set-up sandbox, reused as templates; you cannot boot your own Docker image |
| Inbound access | Public HTTPS and TCP through Fly Proxy, Anycast IPs, custom domains, private network | No inbound ports documented for hosted containers; you reach them through the API | SSH, token-gated HTTPS URLs for up to 50 ports, raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound internet | Open by default; network policies can allow chosen ports and protocols | Code Interpreter and Hosted Shell: off until an admin sets a domain allowlist. Agents API sandboxes: on by default, can be limited to 1 to 100 hosts | Open internet on every plan; no provider-side allowlist |
| Keeping API keys out of the sandbox | Secrets arrive as environment variables; you deploy Fly's open-source tokenizer proxy yourself | domain_secrets: a sidecar adds the real header for approved domains, and the model sees a placeholder | Optional AI credentials proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and custom HTTPS APIs |
| Coding agents | Not built in on Machines; you install agents in your image. Fly's separate Sprites product ships coding agents | Agents API (beta) drives a managed Codex harness from outside, with steering, events and webhooks | Seven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Desktop and computer use | Not built in; you add a desktop and browser to your image | Hosted browser for the Agents API computer_use tool | 1920x1080, 60fps desktop and Chromium, computer tools and browser control, embeddable stream |
| Regions | 17 regions on six continents | US or EU processing for Code Interpreter; Agents API data residency in the US | Germany, Finland and France; you cannot pick one; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | Fly.io Machines | OpenAI Containers | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | No documented way | Yes |
| Nested virtualization | Not published | No documented way | Yes |
| Root | Yes | No documented way | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | No documented way | Yes | Yes |
| Browser | No documented way | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | No documented way | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | Yes | No documented way | Yes |
| Fork/clone | Yes | No documented way | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | No documented way | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | No documented way | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | Yes | No documented way | No documented way |
| HTTPS preview URLs | Yes | No documented way | Yes |
| Raw TCP inbound | Yes | No documented way | Yes |
| Public IPv4 | Yes | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | No documented way | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | No documented way | No documented way | Yes |
| Agent harness API | No documented way | Yes | Yes |
| MCP server | Yes | No documented way | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | No documented way | Yes | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | No documented way | Not published | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | No documented way | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | Yes | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Fly.io Machines and OpenAI Containers are not in the public benchmarks we use, so we cannot say which is faster. Fly's shared vCPUs guarantee 6.25% of a core with a burst balance, and OpenAI does not publish the vCPU behind each container size. For reference, boat did 28.06 V8 Web Tooling Benchmark runs per second at 4 vCPU / 8 GB, second of 15 in StarSling's run of 3 October 2026 (run 37073680030). 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.
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. Fly.io Machines and OpenAI Containers 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 | Fly.io Machines, a month | OpenAI Containers, 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 | $15 · Pay As You Go · with limits | $228 · API pay as you go · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $36 · Pay As You Go · with limits | $1,051 · API pay as you go · 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 | $487 · Pay As You Go · with limits | $11,405 · API pay as you go · 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 | $110 · Pay As You Go · with limits | $1,620 · API pay as you go · 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 | $232 · Pay As You Go · with limits | $6,000 · API pay as you go · with limits | $8,800 · $2000/mo · with limits |
Fly.io Machines: Fly bills each Machine per second while it runs, by CPU preset and memory, with no plan fee. Stopped Machines pay for their root file system, and Volumes are billed for their full size all month. The figures use Fly's lowest rate: shared vCPUs on a 1-year reservation, 40% off.
OpenAI Containers: OpenAI bills each container session by the minute for the memory size you pick, with a 5-minute minimum, and model tokens are billed on top. There is no plan fee. The scenarios use the 16 GB size ($1.44 an hour) for 8 GB needs and 4 GB for 4 GB needs, because OpenAI does not publish the vCPU per size.
OpenAI Containers: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs. A stopped sandbox has no compute charge; extra saved snapshots and the optional AI credentials proxy still charge. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07 each.
Limits in those scenarios
Fly is a compromise in every scenario: its lowest figures need a 1-year reservation, and shared vCPUs that guarantee 6.25% of each core get throttled under long builds. OpenAI Containers fit none of the scenarios as written: hosted containers discard files when they expire, document no Docker or root, and do not publish the vCPU behind each size, and Code Interpreter and Hosted Shell have no outbound access until an admin allows domains. OpenAI does not publish how many containers can run at once, so 300 user sandboxes or 1,000 jobs at once are unconfirmed. On boat the 1,000-job burst hits the start limits even on the $2,000 plan: starts above 90 a minute are paid, and starts above 270 a minute fail with 429.
| Scenario | Fly.io Machines | OpenAI Containers | boat |
|---|---|---|---|
| One coding agent, workdays |
|
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users |
|
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use Fly.io Machines when
you want your own image on a microVM that serves traffic near users worldwide, and you are fine building the sandbox parts yourself.
- A machine you build and keep. Useful if you need your own image: Fly boots any Docker image with root, SSH and a Volume, and keeps it running.
- Reachable and open to the internet. Useful if code must serve traffic or call outside APIs: Fly gives public HTTPS, TCP and open outbound access.
- 17 regions worldwide. Useful if users sit outside Europe: Fly runs Machines in 17 regions, from the US to Sydney and Johannesburg.
Use OpenAI Containers when
your app already calls OpenAI models and the model only needs to run short pieces of code on files you give it.
- Built into the model call. Useful if your app already calls OpenAI models: one tool line in a request gives the model a place to run code.
- Nothing to run or clean up. Useful for short jobs: OpenAI creates the container, bills it by the minute and lets it expire on its own.
- Locked-down network by default. Useful if code must only reach chosen hosts: Code Interpreter and Hosted Shell have no outbound access until an admin allows domains.
Where boat fits
Fly.io Machines are an app platform, and OpenAI Containers are a code tool for the model. If you run agents that work for hours, boat gives each one a full VM with root, Docker, a disk saved with no code and a desktop, ready to use. boat's limits: start caps per plan, no GPU and no US or Asia region.
A disk that stays
An agent leaves clones, installs and caches all over its disk. On Fly they last on the one Volume, billed even while stopped, or on the root file system with persist_rootfs. A hosted OpenAI container discards them when it expires. boat saves the disk every minute and at each stop; a machine failure loses what was written after the last good snapshot.
Root, Docker and /dev/kvm
Real repos need apt installs, Docker and services under systemd. OpenAI's hosted shell runs commands without sudo and documents no Docker. Fly has root but its own init by default and no documented /dev/kvm. boat has all of it on every sandbox.
Agents and a desktop built in
On Fly you build the image with the browser and agents, then write the code that drives them. OpenAI's managed harness is Codex, in the Agents API beta. boat ships seven harnesses, among them Claude Code and Codex, and a 60fps desktop, driven from outside.
Use boat when your agents do real work for hours: root, Docker and /dev/kvm on a full VM that saves its disk with no code, with coding agents, a desktop and an optional keys proxy built in. Compare it one to one: boat vs Fly.io Machines and boat vs OpenAI Containers.
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 Fly.io Machines cheaper than OpenAI Containers?
In the scenarios on this page, yes. One coding agent on workdays is $15 a month on Fly and $228 on OpenAI, and one agent running all month is $36 against $1,051, before OpenAI's model tokens. Fly's figures use shared vCPUs on a 1-year reservation; boat is $20 and $26 for the same two. For a few short code runs a month, OpenAI has no plan fee.
Which is faster?
Neither is in the public benchmarks we use, so we cannot say. Fly's shared vCPUs guarantee 6.25% of a core plus bursts, and its performance vCPUs get the full core at a higher rate. OpenAI does not publish the vCPU behind each container size. boat did 28.06 V8 Web Tooling runs per second in StarSling's run of 3 October 2026, on a Ryzen 9 9950X host.
Can Fly.io Machines or OpenAI Containers run Docker?
You can install and run Docker inside a Fly Machine yourself, since it is a microVM with root; Fly does not document /dev/kvm. OpenAI's docs say hosted shell commands do not run with sudo, and Docker is not documented; you can connect the Agents API to a sandbox you host. boat has Docker, systemd and /dev/kvm on every sandbox.
Do they keep my files?
On Fly, the Volume keeps files, and opt-in persist_rootfs keeps the root file system, which Fly says not to trust with critical data. A hosted OpenAI container discards its data when it expires. boat saves the whole disk every minute and at each stop, and keeps it at least 14 days, longer with a saved snapshot.
Can I open a web app running inside them?
On Fly, yes: Fly Proxy gives public HTTPS and TCP, Anycast IPs and custom domains. OpenAI documents no ports, URLs or SSH for hosted containers. boat gives each sandbox token-gated HTTPS URLs for up to 50 ports and SSH.
Where does my data run?
Fly runs Machines in 17 regions worldwide. OpenAI's Code Interpreter processes data in the US or Europe, and the Agents API supports data residency in the US. boat runs sandboxes in Germany, Finland and France; snapshot copies can be stored outside the EU.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Fly.io Machines
- boat vs OpenAI Containers
- E2B vs Fly.io Machines
- Daytona vs Fly.io Machines
- Modal vs Fly.io Machines
- Vercel Sandbox vs Fly.io Machines
- Cloudflare Sandbox vs Fly.io Machines
- Blaxel vs Fly.io Machines
- Runloop vs Fly.io Machines
- Tensorlake vs Fly.io Machines
- Morph Cloud vs Fly.io Machines
- CodeSandbox SDK vs Fly.io Machines