# flockvm vs CodeSandbox SDK: SSH VMs or forks

> Both run Firecracker VMs that resume with memory. CodeSandbox SDK, now Together AI's, forks and scales to 250 VMs; flockvm gives you SSH VMs on a French host.

- URL: https://flockvm.com/compare/flockvm-vs-codesandbox
- Last updated: 2026-11-10
- Prices checked on: 2026-11-01

flockvm and the CodeSandbox SDK both run each sandbox in a Firecracker microVM that can be resumed with its memory, and both bill only while a VM runs. flockvm suits a few long agent sessions you reach over plain SSH, on a host in France, at a lower hourly rate; the CodeSandbox SDK, which Together AI now sells as its legacy Code Sandbox offering, suits products that create many sandboxes from code, fork them from templates in seconds and need 10 to 250 at once.

flockvm wrote this page. Every CodeSandbox and Together AI fact below comes from their own docs, pricing pages, blog posts and repositories, read on 1 November 2026, and the CodeSandbox SDK wins several rows of the tables.

## Where flockvm stands out

### A VM you SSH into, not an SDK session

A flockvm VM boots to sshd in about a second, and you work in it with `ssh`, `scp`, tmux or an editor's remote mode. The default Agent image ships Claude Code, Codex, opencode, Gemini CLI and Cursor Agent on Ubuntu 26.04, with root and Docker. Environments put your variables, secret files and up to 10 cloned GitHub repositories into each new VM on its first boot.

The CodeSandbox SDK is driven from code: you create a sandbox with `sdk.sandboxes.create()`, then run commands, open terminals and read files through the SDK's client, or connect a browser session to it. The SDK docs describe no SSH access; SSH appears only in CodeSandbox's VS Code extension, for its own editor.

### Lower hourly rates, with memory kept while paused

At 2 vCPU and 4 GB, flockvm's [current rates](/pricing) (flockvm.com, 1 November 2026, which may change) are $0.016 an hour for `small`, billed per second. CodeSandbox's matching Nano VM (2 cores, 4 GB) uses 10 credits an hour, which its pricing page lists at $0.15 an hour, billed per started minute. At 4 vCPU and 8 GB it is $0.032 against $0.30 (Micro), and at 8 vCPU and 16 GB $0.064 against $0.60 (Small, from the Pro plan). Paused and stopped flockvm VMs cost nothing for now, and network traffic is not metered for now.

A paused flockvm VM keeps its memory snapshot until you resume or delete it. A hibernated CodeSandbox sandbox is kept on disk "for up to 7 days"; after that, or "if disk space is limited", it may be archived, and a resume from the archive takes 20 to 60 seconds and runs the setup tasks again.

### A host in France

Every flockvm VM runs in France, on an OVHcloud bare-metal server (OVHcloud is a French company); the disk, the memory while it runs and the memory snapshot while it is paused stay on that host. API requests pass through a small relay machine at Scaleway in Paris, another French company, which stores no state. The website runs on Vercel and DNS on Cloudflare, both US companies, as listed on [/subprocessors](/subprocessors). CodeSandbox, based in Amsterdam, is owned by Together Computer, Inc., a Delaware corporation; the SDK docs say sandboxes run on its "clusters" but list no regions.

## Where the CodeSandbox SDK stands out

### Fork and clone from a memory snapshot

A CodeSandbox template is "a memory and filesystem snapshot", so a sandbox created from it starts as a continuation: a dev server that was running in the template is running in the new sandbox. Creating from a template or a hibernated sandbox takes 1 to 3 seconds by the docs; Together's product page claims "VM cloning in under 1 second" and "500ms snapshot resumes (P95)" (Together's figures). A running sandbox can also be forked while it runs, a "Live Fork" that the docs limit to 5. flockvm has no fork and no reusable snapshot today.

### Scale, sizes and a self-serve plan

The free Build plan allows 10 concurrent VMs and 5 members, Pro the same 10 VMs and 20 members, Scale (from $170 a month per workspace, with "160 hours of monthly VM credits") 250 VMs and 20 members, and Enterprise a custom number of VMs and unlimited members. Sizes go from Pico (1 core, 2 GB) to XLarge (64 cores, 128 GB) on Enterprise; Pro and Scale stop at 16 cores and 32 GB, Build at 4 and 8. A running sandbox can move up a tier "without reboot". flockvm runs at most 15 `small` VMs at once today, or one `xlarge` of 16 vCPU and 32 GB: its one host, in France, schedules 30 vCPU across all its VMs ([limits](/docs/vms/limits)).

### Built for products, with SOC 2

The SDK gives you preview URLs for ports, private hosts behind tokens, browser sessions that reconnect after hibernation, Dev Containers and a git-versioned filesystem. Its FAQ states that CodeSandbox and its VMs are SOC 2 Type II compliant. The SDK source is on GitHub, MIT-licensed according to its package. flockvm has no SDK and no certification; it has a REST API, a `flockvm` CLI and an MCP server.

## What are flockvm and the CodeSandbox SDK?

### flockvm

flockvm runs coding agents such as Claude Code and Codex in parallel, one Firecracker microVM per agent, with its own kernel. You sign up with Google, GitHub or an email link, and a new organization starts with a 7-day free trial: card required, nothing charged for 7 days, cancel anytime.

- **Isolation:** Firecracker microVM, Ubuntu 26.04, root, Docker and systemd inside.
- **Sizes:** `small` 2 vCPU / 4 GB / 50 GB disk, `default` 4 / 8 / 50, `large` 8 / 16 / 110, `xlarge` 16 / 32 / 250.
- **Lifecycle:** pause and resume with memory, same processes, IP and SSH port; stop keeps the disk. No fork.
- **Regions:** France, on one OVHcloud bare-metal server, live; Amsterdam, Ashburn, Chicago and San Jose planned.
- **Pricing:** per second at the current rates above; an $18 plan per organization per month, paid upfront by card, that comes back entirely as VM and CI time and expires at the end of the period; past it, a prepaid wallet. No free credits; a 7-day free trial, card required (25 hours of VM time, 2 VMs at once, small and default sizes).
- **Team:** organizations with members; an audit log on Enterprise organizations.
- **Open source, compliance:** no public code, no certification such as SOC 2.
- **Limits:** 15 `small`, 7 `default`, 3 `large` or 1 `xlarge` VMs at once on the host in France, all customers together; secrets are written into the VM; no SDK (there is a REST API, a CLI and an MCP server).

### The CodeSandbox SDK (Together Code Sandbox)

Together AI acquired CodeSandbox on 12 December 2024 and launched "Together Code Sandbox" on top of it in May 2025. Today Together's docs list two offerings: the **legacy** one "built on `@codesandbox/sdk`", self-serve through a CodeSandbox account and "called the CodeSandbox SDK" on codesandbox.io; and its successor, the `together-sandbox` SDK and CLI, which builds sandboxes from Docker-image snapshots and needs your organization to be enabled through Together's sales team. The facts below are about the legacy CodeSandbox SDK unless marked.

- **Isolation:** "Every Sandbox is backed by a Firecracker VM"; environments are customized with Docker and Dev Containers.
- **Sizes:** Pico 1 core / 2 GB up to XLarge 64 cores / 128 GB, by plan: up to 4 cores / 8 GB on Build, 16 / 32 on Pro and Scale, 64 / 128 on Enterprise; 20 GB of storage per VM, more on demand from Pro. `together-sandbox` defaults to 1 vCPU and 2 GiB, from 0.1 to 16 cores.
- **Lifecycle:** hibernation with a memory snapshot, after an inactivity timeout or on an SDK call; resume in 0.5 to 2 seconds from memory, 5 to 20 from disk, 20 to 60 from the archive.
- **Pricing:** VMs from 5 credits an hour (Pico, $0.075) to 320 (XLarge, $4.80) on the pricing page, billed per started minute. Build free with 5 members and 10 concurrent VMs; Pro with 20 members and the same 10 VMs; Scale from $170 a month per workspace with "160 hours of monthly VM credits", more at $0.15 an hour, and 250 concurrent VMs; Enterprise custom, with up to 50% off bulk credit packs. CodeSandbox's docs give a free workspace 400 credits a month and freeze its VMs when they run out. Together's own price list shows Code Sandbox at $0.0446 per vCPU-hour plus $0.0149 per GiB-hour.
- **Regions:** not listed.
- **Open source:** `@codesandbox/sdk` and `together-sandbox` are MIT; the platform cannot be self-hosted. The last `@codesandbox/sdk` release is v2.4.2, of 4 December 2025.
- **Compliance:** SOC 2 Type II, per the SDK FAQ.
- **Limits:** by plan, concurrent VMs, new sandboxes per hour and API requests per hour: 10, 20 and 1,000 on Build and Pro; 250, 1,000 and 10,000 on Scale; custom on Enterprise. Session length is unlimited on every plan.

## Which workloads fit each one?

Prices: flockvm `small` (2 vCPU, 4 GB) at the current rate of $0.016/h; CodeSandbox Nano (2 cores, 4 GB) at 10 credits, $0.15/h on its pricing page ($0.015 a credit), the legacy SDK's self-serve price; Scale's "160 hours of monthly VM credits" counted as 160 Nano hours (1,600 credits). A month is 22 weekdays or 730 hours. Compute only.

| Workload | flockvm (calc.) | CodeSandbox SDK (calc.) | Who wins and why |
|---|---|---|---|
| 5 Claude Code agents, 8 h a weekday | $14.08 of usage, so $18 | $278 on Scale ($132 of usage) | flockvm on price; CodeSandbox above 15 agents at once. |
| A 1-hour burst of 20 agents, once a month | Can't run it today: at most 15 `small` VMs at once on the host in France | $170 on Scale, or $0 on Build in two waves of 10 | CodeSandbox, which starts all 20 from one template. |
| One agent always on, 24/7 | $11.68 of usage, so $18 | $255.50 on Scale ($109.50 of usage) | flockvm on price. On CodeSandbox, raise the hibernation timeout so the agent is not suspended. |
| 100 code runs of 1 minute a day, 30 days | $0.80 of usage, so $18 | $0 on Build with Pico (250 of its 400 credits); $170 on Scale with Nano | CodeSandbox: an SDK call per run and nothing to pay at this volume, if Pico's 1 core and 2 GB are enough, each run stays within its minute (61 s bills as 2 minutes, 500 credits) and the runs are spread out (Build creates 20 new sandboxes an hour). |
| Evals: 50 parallel runs of 2 h, 4 times a month | Can't run it today: at most 15 `small` VMs at once on the host in France | $206 on Scale | CodeSandbox. Above 10 at once you need Scale. |
| One interactive session, 10 h a weekday, paused the rest | $3.52 of usage, so $18 | $179 on Scale ($33 of usage) | flockvm on price, and its paused snapshot does not expire; CodeSandbox if you want hibernation to happen on its own after a timeout. |

The arithmetic. Nano uses 10 credits an hour, $0.15 an hour, so $0.015 a credit. 5 × 8 h × 22 = 880 h × $0.016 = $14.08, and 8,800 credits: 880 × $0.15 = $132, or on Scale $170 + (8,800 − 1,600) × $0.015 = $170 + $108 = $278. 20 × 1 h = 200 credits, inside Scale's 1,600, so $170; on Build, two waves of 10 for an hour each also use 200 credits, inside its 400. 730 × $0.016 = $11.68; 730 h = 7,300 credits, $109.50, or $170 + 5,700 × $0.015 = $255.50. 100 × 1 min × 30 = 50 h, so 50 × $0.016 = $0.80; on Pico, 50 × 5 = 250 credits; on Nano, 500 credits, more than Build's 400, so Scale at $170. 50 × 2 h × 4 = 400 h = 4,000 credits, $170 + 2,400 × $0.015 = $206. 10 h × 22 = 220 h, so 220 × $0.016 = $3.52; 2,200 credits = $33, or $170 + 600 × $0.015 = $179.

Usage past Build's 400 free credits needs Scale: CodeSandbox's docs freeze a free workspace's VMs once its credits run out. The flockvm plan is $18 a month and every dollar comes back as VM time, so a month with less than $18 of usage costs $18; usage past it is paid from a prepaid wallet. CodeSandbox bills per started minute, so a run of 1 minute and a few seconds counts as 2 minutes. CodeSandbox's pages disagree on two figures. The pricing page counts Scale's allowance as "160 hours of monthly VM credits" without naming the VM, and prices Nano at $0.15 an hour; the SDK docs say 1,100 credits (110 Nano hours) and $0.01486 a credit. We follow the pricing page and count 160 Nano hours; on the docs' 1,100 credits, each Scale total above $170 would be $7.50 higher.

## How do the features compare?

| Feature | flockvm | CodeSandbox SDK |
|---|---|---|
| Isolation | Firecracker microVM, own kernel | Firecracker VM, with Docker and Dev Containers inside |
| Start | About 1 s from boot to sshd | 1–3 s from a template; "2.7 second cold-starts (P95)" (Together's figure) |
| Pause and resume | With memory, on request; snapshot kept until resume | Hibernation with memory, on a timeout or on request; may be archived after 7 days |
| Fork | No | From templates and hibernated sandboxes; up to 5 live forks of a running one |
| Resize a running VM | No: create another size | Yes, up a tier, without reboot |
| Sizes | 2/4, 4/8, 8/16, 16/32 vCPU/GB, 50, 110 or 250 GB disk | 1 core / 2 GB up to 16 / 32 on Pro and Scale, 64 / 128 on Enterprise; 20 GB storage |
| Concurrency | 15 `small` at once on the host in France today, all customers together | 10 (Build, Pro), 250 (Scale), custom (Enterprise) |
| Access | SSH | SDK, terminals, browser sessions, preview URLs |
| Regions | France; others planned | Not listed |
| SDK / CLI | REST API, `flockvm` CLI and MCP server; no SDK | TypeScript SDK and CLI; `together-sandbox` in Python, TypeScript and a CLI |
| Open source | No | SDKs under MIT; platform not self-hostable |
| Compliance | None | SOC 2 Type II |
| Price | Current rate: $0.016/h `small`, per second | $0.15/h Nano, per started minute; Scale from $170/month |
| Sign-up | Self-serve; 7-day free trial (card required, 25 h), then the $18 plan | Self-serve CodeSandbox account; `together-sandbox` through sales |

For other SDK-first sandboxes, [flockvm vs Daytona](/compare/flockvm-vs-daytona) and [flockvm vs E2B](/compare/flockvm-vs-e2b) cover the two most cited ones, and [E2B vs Daytona](/compare/e2b-vs-daytona) compares them with each other; E2B's fork also keeps memory. How a Firecracker memory snapshot works, and what resuming one costs, is on [/learn/firecracker-snapshot-restore](/learn/firecracker-snapshot-restore).

## FAQ

### Is CodeSandbox part of Together AI?

Yes. Together AI announced on 12 December 2024 that it had acquired CodeSandbox, launched in 2017 and based in Amsterdam. Together's docs say CodeSandbox is "a Together company" and that its products are "migrating to the Together platform".

### What is Together Code Sandbox?

Together's name for sandboxes on CodeSandbox's infrastructure. Its docs point new integrations to the `together-sandbox` SDK and CLI, enabled through sales, and keep the CodeSandbox SDK as the "legacy" offering for existing users. On codesandbox.io it is still called the CodeSandbox SDK.

### How much does the CodeSandbox SDK cost?

VMs from 5 credits an hour (Pico, $0.075 an hour) to 320 (XLarge, $4.80), billed per started minute, on CodeSandbox's pricing page of 1 November 2026. The Build plan is free with 10 concurrent VMs; Scale starts at $170 a month per workspace, with "160 hours of monthly VM credits", more at $0.15 an hour, and 250 concurrent VMs.

### Does the CodeSandbox SDK use microVMs?

Yes. Its docs say every sandbox "is backed by a Firecracker VM", the same virtual machine monitor as flockvm, and that hibernation writes a memory snapshot.

### What is a good CodeSandbox SDK alternative?

For fork from a memory snapshot through an SDK, E2B; see [E2B alternatives](/compare/e2b-alternatives) for more, sorted by reason. For a few long agent sessions over SSH on a host in France, flockvm, while 15 `small` VMs at once on that host are enough.

## Sources

- [Together AI docs: Code sandbox (together-sandbox SDK and CLI, access through sales, sizes, lifecycle)](https://docs.together.ai/docs/together-code-sandbox) (accessed 2026-11-01)
- [Together AI docs: Code sandbox legacy SDK (CodeSandbox SDK: Firecracker, memory snapshots, pricing, concurrency)](https://docs.together.ai/docs/together-code-sandbox-legacy) (accessed 2026-11-01)
- [Together AI: Sandbox product page (cold starts, snapshot resumes, cloning, 2-64 vCPUs)](https://www.together.ai/code-sandbox) (accessed 2026-11-01)
- [Together AI pricing (Code Sandbox per vCPU-hour and per GiB-hour, Code Interpreter per session)](https://www.together.ai/pricing) (accessed 2026-11-01)
- [Together AI acquires CodeSandbox (2024-12-12)](https://www.together.ai/blog/codesandbox-acquisition-together-code-interpreter) (accessed 2026-11-01)
- [Introducing Together Code Sandbox and Together Code Interpreter (2025-05-20)](https://www.together.ai/blog/code-sandbox-code-interpreter) (accessed 2026-11-01)
- [Together AI Terms of Service (Together Computer, Inc., Delaware)](https://www.together.ai/terms-of-service) (accessed 2026-11-01)
- [CodeSandbox SDK docs: Core concepts (Firecracker, persistence, forking from templates)](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/sdk/core-concepts.mdx) (accessed 2026-11-01)
- [CodeSandbox SDK docs: Create sandboxes (hibernation timeout, privacy, live forks)](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/sdk/create.mdx) (accessed 2026-11-01)
- [CodeSandbox SDK docs: Hibernate sandboxes](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/sdk/hibernate.mdx) (accessed 2026-11-01)
- [CodeSandbox SDK docs: Resume sandboxes](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/sdk/resume.mdx) (accessed 2026-11-01)
- [CodeSandbox SDK docs: VM specs (tiers, resize without reboot)](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/sdk/specs.mdx) (accessed 2026-11-01)
- [CodeSandbox pricing (plans, members, concurrent VMs, new sandboxes and requests per hour, VM types and hourly costs)](https://codesandbox.io/pricing) (accessed 2026-11-01)
- [CodeSandbox docs: VS Code desktop setup (Remote - SSH for the editor)](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/learn/editors/desktop-setup.mdx) (accessed 2026-11-01)
- [CodeSandbox SDK docs: Pricing](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/sdk/pricing.mdx) (accessed 2026-11-01)
- [CodeSandbox SDK docs: FAQ (rate limits, SOC 2 Type II, no self-hosting)](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/sdk/faq.mdx) (accessed 2026-11-01)
- [CodeSandbox docs: Credits (400 monthly credits on a free workspace)](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/learn/credit-usage/credits.mdx) (accessed 2026-11-01)
- [CodeSandbox docs: Pricing FAQs (frozen VMs when a free workspace runs out of credits)](https://github.com/codesandbox/docs/blob/main/packages/projects-docs/pages/learn/plans/pricing-faq.mdx) (accessed 2026-11-01)
- [codesandbox/codesandbox-sdk on GitHub (MIT in package.json, latest release v2.4.2 of 2025-12-04)](https://github.com/codesandbox/codesandbox-sdk) (accessed 2026-11-01)
- [togethercomputer/together-sandbox on GitHub (MIT)](https://github.com/togethercomputer/together-sandbox) (accessed 2026-11-01)
- [flockvm pricing](https://flockvm.com/pricing) (accessed 2026-11-01)
