# CodeSandbox SDK vs Fly.io Machines: prices, limits and features.

**Fly.io Machines lists the lower price for 2 vCPU and 4 GB: $0.092 / hour against $0.15 / hour.** Here is where they differ, from each one's own pages, plus a third option if neither fits.

## The short answer

The CodeSandbox SDK runs microVM sandboxes. Together AI now offers it as Together Code Sandbox and calls the old SDK legacy. Fly.io Machines are Firecracker microVMs you start through a REST API, in many regions. Fly also sells Sprites, a sandbox for agents.

### Pick CodeSandbox SDK if you want

- SDK languages: Python and TypeScript (Fly.io Machines: None: a REST API and the flyctl CLI)

### Pick Fly.io Machines if you want

- a lower list price for 2 vCPU and 4 GB: $0.092 / hour against $0.15 / hour
- pause keeps memory: Yes, for Machines with 2 GB or less, which CodeSandbox SDK's pages do not state
- fork and snapshots: Clone copies the config; volume snapshots, which CodeSandbox SDK's pages do not state
- security report: SOC 2 Type 2, which CodeSandbox SDK's pages do not state

### Or Groundbox if you want

- a lower list price than both: $0.08 / hour
- CI runners too: yes, on the same key and bill

Where CodeSandbox SDK or Fly.io Machines is ahead of Groundbox: longest session, security report.

## Side by side

| Feature | CodeSandbox SDK | Fly.io Machines | Groundbox |
| --- | --- | --- | --- |
| Price, 2 vCPU · 4 GB | [$0.15 / hour](https://www.together.ai/pricing) | [$0.092 / hour](https://fly.io/pricing/) | $0.08 / hour |
| Pause keeps memory | Not published | [Yes, for Machines with 2 GB or less](https://docs.fly.io/reference/suspend-resume) | Yes, memory and disk |
| CI runners too | [No: the pricing page lists Code Sandbox and Code Interpreter only](https://www.together.ai/pricing) | [No: the pricing page lists no CI runners](https://fly.io/pricing/) | Yes, on the same key and bill |
| Isolation | [microVM](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [Firecracker microVM](https://docs.fly.io/reference/suspend-resume) | Firecracker VM |
| Fork and snapshots | Not published | [Clone copies the config; volume snapshots](https://docs.fly.io/machines/overview.md) | Fork a running sandbox; save points |
| Longest session | [Runs until stopped, unless a ttl is set](https://docs.together.ai/docs/together-code-sandbox.md) | Not published | 720 hours, renewable |
| Self-host | Not published | Not published | No |
| GPUs | Not published | Not published | Not offered |
| Largest size | [16 cores](https://docs.together.ai/docs/together-code-sandbox.md) | [16 CPUs](https://docs.fly.io/machines/guides-examples/machine-sizing) | 16 vCPU |
| SDK languages | [Python and TypeScript](https://docs.together.ai/docs/together-code-sandbox.md) | [None: a REST API and the flyctl CLI](https://docs.fly.io/machines/) | TypeScript and Python |
| Security report | Not published | [SOC 2 Type 2](https://fly.io/legal/security-questionnaire/) | No SOC 2 report |
| Free to start | [Legacy SDK: a free Build plan](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [No plan fee; pay as you go](https://docs.fly.io/about/pricing) | $5 of usage, no card |
| Plans | [Legacy SDK: Build (free) and Scale plans; the new SDK is sold through Together's sales team](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [No plan fee; pay as you go](https://docs.fly.io/about/pricing) | Free: everything, with $5 of usage. $20 / month: $20 of usage included, then pay as you go |
| CPU | [$0.0446 per vCPU-hour (Together)](https://www.together.ai/pricing) | [performance-2x with 4 GB: $0.0917 an hour in iad; other regions cost more or less](https://fly.io/pricing/) | $0.04 per vCPU-hour, a dedicated core |
| Memory | [$0.0149 per GiB-hour (Together)](https://www.together.ai/pricing) | [$6 per GB-month past what the size includes](https://fly.io/pricing/) | Included, up to 4 GB per vCPU |
| Billing | [Legacy SDK: VM credits at $0.01486 each, rounded up to the minute](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [Per second while running](https://docs.fly.io/about/pricing) | Per second, no minimum |
| Sizes | [New SDK: 0.1 to 16 cores, 1 to 8 GB per CPU](https://docs.together.ai/docs/together-code-sandbox.md) | [1 to 16 CPUs, shared or performance](https://docs.fly.io/machines/guides-examples/machine-sizing) | 1 to 16 vCPU, up to 4 GB per vCPU |
| Sandboxes at once | [Legacy SDK: 10 on Build, 250 on Scale](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | Not published | 20 once a card is on file |

a rust mark means that side is ahead · each value links to its source · checked 2026-11-20

Each against Groundbox: [Groundbox vs CodeSandbox SDK](https://groundbox.dev/compare/codesandbox) and [Groundbox vs Fly.io Machines](https://groundbox.dev/compare/fly-io). Every other comparison is on [/compare](https://groundbox.dev/compare).

## Sources

### CodeSandbox SDK

- [Together: Code Sandbox (legacy CodeSandbox SDK)](https://docs.together.ai/docs/together-code-sandbox-legacy.md), checked 2026-11-19
- [Together: Code Sandbox](https://docs.together.ai/docs/together-code-sandbox.md), checked 2026-11-19
- [Together pricing](https://www.together.ai/pricing), checked 2026-11-20

### Fly.io Machines

- [Fly.io pricing](https://fly.io/pricing/), checked 2026-11-20
- [Fly.io docs: pricing](https://docs.fly.io/about/pricing), checked 2026-11-19
- [Fly.io docs: Machine sizing](https://docs.fly.io/machines/guides-examples/machine-sizing), checked 2026-11-19
- [Fly.io docs: Machines API](https://docs.fly.io/machines/api/machines-resource), checked 2026-11-19
- [Fly.io docs: suspend and resume](https://docs.fly.io/reference/suspend-resume), checked 2026-11-19
- [Fly.io docs: Machines overview](https://docs.fly.io/machines/overview.md), checked 2026-11-19
- [Fly.io docs: Machines](https://docs.fly.io/machines/), checked 2026-11-19
- [Fly.io security questionnaire](https://fly.io/legal/security-questionnaire/), checked 2026-11-19
- [Fly.io Sprites](https://fly.io/sprites.md)
- [Fly.io Sprites pricing](https://fly.io/pricing.md), checked 2026-11-19

## Try the third option free.

[Start free, no card](https://groundbox.dev/signup)[Groundbox vs CodeSandbox SDK](https://groundbox.dev/compare/codesandbox)
