Fly.io Machines vs Together Code Sandbox
Fly.io Machines are microVMs for hosting your own apps in 17 regions, with wake on request and one Volume for lasting data. Together Code Sandbox is a sandbox for model-written code that saves disk and memory as snapshots to branch from. Together must enable it for your organization.
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.
Together Code Sandbox
Together AI is a cloud for running and training AI models, and Code Sandbox is its product for running code in isolated VMs.
You build a snapshot from a Docker image or Dockerfile on Together's builder, then start sandboxes from it and run commands and file operations through the together-sandbox SDK or CLI. When a sandbox ends you can save its disk, and its memory too, as a new snapshot to start more sandboxes from. It is aimed at model-generated code, agent tool calls and reinforcement learning rollouts, and Together must enable it for your organization. The pricing page also lists Code Interpreter at $0.03 per 60-minute session.
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 | Together Code Sandbox: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Fly lets you install Docker as root in your own image. Together's SDK runs commands as user 1000 by default and documents no Docker inside. boat has Docker, systemd and /dev/kvm on every sandbox. | 123rd of 365, with limits $836 a month | 67th of 365, with limits $528 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Fly Proxy can stop idle Machines and wake them on traffic. A Together sandbox runs until you end it or its ttl ends, with no idle detection or wake on request. 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 | 107th of 361, with limits $1,095 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 Fly fits short bursts well, with per-second billing and no plan fee. Together's priced Code Interpreter line bills $0.03 per 60-minute session. | 83rd of 336, with limits $94 a month | 318th of 336, with limits $2,190 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 Fly gives each user a Machine with HTTPS through Fly Proxy. On Together every port URL is public unless you set an experimental access policy. boat's URLs are token-gated by default. | 75th of 349, with limits $600 a month | 231st of 349, with limits $900 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 Together can start many sandboxes from one memory snapshot, which suits rollouts from a warm state, once Together enables the product for you. | 52nd of 349, with limits $2,838 a month | 309th of 349, with limits $21,900 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 | 260th of 359, with limits $450 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 keeps the CPU busy, which drains a shared Fly vCPU's burst balance. Together's docs do not describe Docker inside a sandbox, so container builds need your own testing. | 154th of 374, with limits $288 a month | 253rd of 374, with limits $180 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB | 160th of 371, with limits $35 a month | 226th of 371, with limits $22 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 Fly nor Together has a desktop or browser built in. You set it up: build one into your image. boat streams a 60fps desktop with Chromium. | 140th of 367, with limits $173 a month | 105th of 367, with limits $600 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 | 195th of 356, with limits $900 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 | 181st of 343, with limits $180 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 ranks highest of the three here: its bill is $1,232 a month against $1,800 on boat, and it can spread scrapers across 17 regions. | 47th of 327, with limits $1,232 a month | 126th of 327, with limits $3,600 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 | 95th of 351, with limits $150 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 | Together Code Sandbox | boat |
|---|---|---|---|
| Kind of product | App hosting platform; Machines are its microVM building block with a REST API. Fly sells Sprites separately for agent sandboxes | Code sandbox on an AI cloud, aimed at model-generated code, agent tool calls and RL rollouts | Agent sandbox: a full VM per agent, ready to use |
| Getting started | Self-serve sign-up with a free trial: $1 credit for 7 days | The SDK and CLI must be enabled for your organization by Together | Sign up with a card (7-day trial), then start a sandbox from the API, CLI or dashboard |
| Isolation | Firecracker microVM with its own kernel | A VM per sandbox on Together's infrastructure | Full VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Docker, root and systemd | Root, and Docker you install yourself; Fly's own init by default (systemd as PID 1 is not a documented setup) | Commands run as user 1000 by default, root per exec on request; Docker inside a sandbox not documented | Docker, root and real systemd on every sandbox |
| Nested virtualization | /dev/kvm not documented | Not documented | /dev/kvm for Android emulators and nested VMs |
| 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 | End a sandbox with a snapshot of its disk, or disk and memory, to start new sandboxes from; disk size is not configurable | Disk saved every minute and at each stop; no compute charge while stopped; kept at least 14 days, longer with a saved snapshot |
| Memory snapshots | Suspend keeps memory for Machines up to 2GB; dropped on deploy or host move | Save disk and memory when a sandbox ends; new sandboxes resume with processes running | No memory snapshots; a resume is like a reboot |
| Fork | Clone copies a Machine's config; its Volume starts empty unless you restore a volume snapshot or fork the Volume | The parent stops first, then many sandboxes start from its snapshot, with memory if you ask | Fork a running sandbox from its last 1-minute disk snapshot; the original keeps running |
| Idle and wake | Fly Proxy stops or suspends idle Machines and wakes them when a request arrives | ttl counts from creation; no idle detection and no wake on request | Auto-stop timer (1 hour by default, up to 30 days, or off on paid plans), not an idle check; started again by API |
| Reaching the sandbox | HTTPS and TCP through Fly Proxy, Anycast IPs, custom domains, private network | A URL per port, open to everyone by default; an experimental policy limits access by IP or requires a token | Up to 50 HTTPS URLs, token-gated by default; a public IPv6 address; no dedicated IPv4 |
| Shell access | SSH into a Machine | Commands, interactive shells and files through the SDK and CLI; SSH not documented | SSH, plus exec and files over the API |
| Desktop and browser | Not built in; you add them to your image | Not built in; you install a browser or virtual display in your own image | 60fps Linux desktop with Chromium, computer tools and browser control |
| Coding agents and keys | Install agents yourself; secrets as environment variables, or deploy Fly's open-source tokenizer | You install your agent in your image and run it through execs; a Harbor guide for agent evals; no credentials proxy documented | Seven harnesses preinstalled, driven from outside; optional paid credentials proxy ($1 a day plus $1 per 1,000 requests) |
| Regions | 17 regions on six continents | Not published | Germany, Finland and France; you cannot pick one; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | Fly.io Machines | Together Code Sandbox | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Not published | Yes |
| Nested virtualization | Not published | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | No documented way | Not published | Yes |
| Browser | No documented way | Not published | Yes |
| Computer-use API | No documented way | Not published | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | With your own setup | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | Yes | No documented way | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | Yes | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | Yes | No documented way | Yes |
| Public IPv4 | Yes | No documented way | No documented way |
| Egress allowlist | Yes | No documented way | 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 | Yes | Yes | 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 | No documented way | 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 | Yes | Yes |
| Usage per sandbox (API) | No documented way | Yes | 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 | No documented way | No documented way |
| EU data residency | Yes | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Fly.io Machines and Together Code Sandbox are not in the public benchmarks we use, so we cannot say which is faster. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 V8 Web Tooling Benchmark runs per second 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. Fly's results would depend on its CPU class: shared vCPUs guarantee 6.25% of each core with a burst balance, and performance vCPUs get the full core.
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 Together Code Sandbox 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 | Together Code Sandbox, 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 | $5 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 | $22 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 | $264 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 | $900 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 table uses Fly's lowest rate, shared vCPUs bought in 1-year reservation blocks for 40% off.
Together Code Sandbox: Together lists Code Sandbox at $0.0446 per vCPU-hour and $0.0149 per GiB-hour, about $0.30 an hour at 4 vCPU / 8 GB. The VMs must be enabled for your organization, so the table prices the Code Interpreter line: $0.03 per 60-minute session from prepaid credits, with no published machine size.
Together Code Sandbox: 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
Both are marked a compromise in every scenario, for different reasons. Fly's lowest figures need a 1-year reservation and use shared vCPUs that guarantee 6.25% of each core, so long builds get throttled. Together's priced column is Code Interpreter, with 60-minute sessions, no confirmed lasting disk and no published machine size. On boat the 1,000-job burst needs about 6,667 starts a day against 2,400 included on the $2,000 plan, so paid extra starts bring its bill to $8,800, and starts above 270 a minute fail with 429.
| Scenario | Fly.io Machines | Together Code Sandbox | 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 host apps or light services that must run near users worldwide, sleep between requests and wake on traffic, and you are happy to build your own image.
- Runs worldwide. For agents or users outside Europe: Fly runs Machines in 17 regions, from the US to Sydney and Johannesburg.
- Wakes on traffic. For services that sleep between requests: Fly Proxy stops idle Machines and starts them again when a request comes in.
- Self-serve and a full app platform. For teams that also host their product: sign up today and get private networking, Anycast IPs and custom domains around each Machine.
Use Together Code Sandbox when
you already run models on Together and want light sandboxes you can save with their memory and branch from.
- Branch from a warm state. For rollouts and test variants: save a sandbox with its memory and start many copies with processes still running.
- Next to your models. For teams already running inference or fine-tuning on Together: sandboxes and models share one account.
- Sizes cut to the job. For many light jobs: sandboxes start at a tenth of a core, priced per vCPU-hour and GiB-hour.
Where boat fits
Fly is an app host you turn into a sandbox yourself, and Together's VM sandbox needs Together to enable it. If you run coding or computer-use agents that work for hours, boat gives each one a full VM you can start today, self-serve from $20 a month, with the tools, agents and desktop inside. boat's limits: start caps per plan, no memory snapshots and no US or Asia region.
A full machine for agent tools
Agents run Docker, services and emulators. Fly boots its own init by default and does not document /dev/kvm. Together documents neither Docker inside nor nested virtualization. boat has Docker, systemd and /dev/kvm on every sandbox.
A disk saved with no code
On Fly, caches live on a Volume billed even while stopped, or on the root file system with persist_rootfs. Together keeps files when you snapshot a sandbox as it ends. boat saves the whole disk every minute and at each stop, and forks running sandboxes; a machine failure loses what was written after the last good snapshot.
Agents, desktop and keys built in
On Fly and Together you build the browser, desktop and agent harness into your own image, and keys sit inside the sandbox unless you run Fly's tokenizer yourself. boat ships a 60fps desktop, seven coding agents and an optional paid credentials proxy.
Use boat when your agents do real work for hours: installs, builds, Docker and emulators on a full VM that saves its disk every minute and at each stop, with a desktop and coding agents built in. Compare it one to one: boat vs Fly.io Machines and boat vs Together Code Sandbox.
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 Together Code Sandbox?
It depends on the job, and neither fits these scenarios fully. Together's priced column is Code Interpreter. It is lower for 50 agents in parallel, $264 against $487 a month on Fly, but higher for sandboxes for your users, $900 against $110, and for 1,000 short jobs at once, $6,000 against $232. boat is $317, $200 and $8,800 for those three; the last includes paid extra starts above the $2,000 plan.
Which is faster, Fly.io Machines or Together Code Sandbox?
Neither is in the public benchmarks we use, so we cannot say. On Fly it depends on the CPU class you pick: shared vCPUs guarantee 6.25% of a core, and performance vCPUs get the full core. boat did 28.06 V8 Web Tooling runs per second at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on a Ryzen 9 9950X host.
Can Fly.io Machines or Together Code Sandbox run Docker?
On Fly you can install and run Docker yourself, since a Machine is a microVM with root; Fly does not document /dev/kvm. Together builds sandboxes from Docker images, but its SDK docs describe neither Docker inside a sandbox nor nested virtualization. boat has Docker, systemd and /dev/kvm on every sandbox.
Which one keeps my files after a stop?
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. Together saves a sandbox's disk, and memory too, as a snapshot when it ends. 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 sign up for Together Code Sandbox today?
The together-sandbox SDK and CLI must be enabled for your organization, so you ask Together for access. Fly.io Machines and boat are both self-serve; boat needs a card, also for its 7-day trial.
Is boat SOC 2 compliant?
SOC 2 is in progress, so there is no SOC 2 report today. Together's trust center lists a SOC 2 Type 2 report, and Fly lists SOC 2 Type II. boat's live status is at status.ascii.dev and its data retention policy at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Fly.io Machines
- boat vs Together Code Sandbox
- 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