Together Code Sandbox vs Docker Cloud Sandboxes

Together Code Sandbox gives you VMs started from Docker-image snapshots that run until you end them, but Together has to enable it for your organization. Docker Cloud Sandboxes is self-serve and runs the same sbx microVM you use on your laptop, with Docker inside, but each sandbox ends 24 hours after creation and you get 10 at a time by default.

The companies and products

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 it must be enabled for your organization by Together. Together also sells Code Interpreter, a separate API that runs Python code in short sessions.

Docker Cloud Sandboxes

Docker Cloud Sandboxes runs Docker's sbx coding-agent microVMs on Docker-managed compute instead of your laptop.

Each sandbox is a microVM with its own Linux kernel and its own Docker Engine, started from the same sbx CLI you use locally, with Claude Code, Codex and other agents ready to run. You can move a sandbox from your laptop to the cloud and back, publish HTTPS ports and SSH in. It launched on September 24, 2026, is billed pay-as-you-go on a personal Docker account, and is built for developers who want their local agent sandboxes to keep going off their machine.

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. “65th cheapest of 367” means 64 of the other 366 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 workloadTogether Code Sandbox: price rankDocker Cloud Sandboxes: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory runs many agents for days with Docker inside; Docker caps each sandbox at 24 hours and 10 at once, Together does not document Docker inside, and boat has Docker, root and /dev/kvm on every machine with no session cap on paid plans.
65th of 367, with limits
$528 a month
280th of 367, with limits
$4,928 a month
3rd cheapest of 367
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An assistant that lives on its machine all month does not fit one Docker session, and Together has no wake on request, so you start and stop its sandboxes from your own backend.
152nd of 366, with limits
$1,095 a month
276th of 366, with limits
$5,110 a month
5th cheapest of 366
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
For short code runs Docker fits better than Together's Code Interpreter here: small sandboxes billed by the second, against Python-only sessions billed per 60 minutes.
326th of 345, with limits
$2,190 a month
119th of 345, with limits
$233 a month
186th of 345, 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
Serving your own users needs more than Docker's default of 10 sandboxes at once, and on Together every port is public with preview URLs still coming soon; boat's HTTPS URLs are token-protected by default.
234th of 361, with limits
$900 a month
136th of 361, with limits
$1,628 a month
Cheapest of 361
$209 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
Both can snapshot a sandbox with its memory and start many copies from it, which suits rollouts that branch from one warm state, but Together's VMs need Together to enable them and Docker allows 10 at once by default.
315th of 360, with limits
$21,900 a month
114th of 360, with limits
$7,000 a month
34th of 360, with limits
$2,000 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
Together documents a Harbor guide for agent evals and Docker runs agents you attach to from the sbx CLI; boat ships the agents with an API to prompt, steer and follow each run.
258th of 364, with limits
$450 a month
167th of 364, with limits
$1,400 a month
10th cheapest of 364
$200 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
251st of 377, with limits
$180 a month
172nd of 377, with limits
$672 a month
4th cheapest of 377
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box that stays on all month needs no session cap; Docker's sandboxes end 24 hours after creation, while Together's run until you end them once your organization has access.
210th of 368, with limits
$22 a month
127th of 368, with limits
$204 a month
18th cheapest of 368
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
Computer-use agents need a screen; neither Together nor Docker offers a desktop, while boat streams a Linux desktop with Chromium at 60fps.
184th of 369, with limits
$600 a month
268th of 369, with limits
$1,400 a month
6th cheapest of 369
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
301st of 367, with limits
$900 a month
277th of 367, with limits
$700 a month
7th cheapest of 367
$200 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
219th of 346, with limits
$180 a month
262nd of 346, with limits
$350 a month
6th cheapest of 346
$90 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
124th of 338, with limits
$3,600 a month
190th of 338, with limits
$7,000 a month
71st of 338, with limits
$1,800 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
167th of 360, with limits
$150 a month
248th of 360, with limits
$350 a month
2nd cheapest of 360
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Can't run itCan't run itCan't run it
macOS agents
5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month
Can't run itCan't run itCan't run it

Key features

FeatureTogether Code SandboxDocker Cloud Sandboxesboat
IsolationA VM per sandbox on Together's infrastructureMicroVM with its own Linux kernel and its own Docker Engine; hypervisor not namedFull VM with its own kernel on dedicated AMD Ryzen 9 9950X hosts
Getting accessThe SDK and CLI must be enabled for your organization by TogetherSelf-serve pay-as-you-go plan on a personal Docker accountSign up and start a sandbox from the API, CLI or dashboard
Machine size0.1 to 16 cores, 1 to 8 GB of memory per core; disk size fixed1 vCPU / 2 GiB up to 16 vCPU / 32 GiB, amd64 or arm64 by account2 to 16 vCPU with 2 GB per vCPU, up to 16 vCPU / 32 GB on the $100 plan and above
Session lengthRuns until you end it, or until a time to live set at creation1 hour by default, at most 24 hours from creation; resuming starts a new timerNo cap on paid plans; you set the time to live
Sandboxes at onceNot published10 by default; no published way to raise it100 on the $20 plan, up to 2,000 on higher plans, self-serve
Docker, root and systemdCommands run as user 1000 by default, root on request; Docker inside not documentedIts own Docker Engine inside; the agent runs as a non-root user with sudoDocker, systemd and root on every machine
Nested virtualizationNot documentedNot documentedYes, /dev/kvm for Android emulators and VMs
Saving stateEnd a sandbox with a snapshot of its disk, or disk and memory; a new sandbox resumes with processes runningStop keeps memory and files and resume picks up where it left off; unused snapshots are deleted after 7 daysDisk saved every minute and on stop; a stopped sandbox costs nothing; resume boots the machine again
ForkNo live fork: the parent stops, then you start many sandboxes from its snapshotSnapshot a running sandbox with disk or disk and memory, then restore it as a new sandboxFork a running sandbox with its disk; the original keeps running
Reaching the sandboxAll ports public; preview URLs coming soon; no SSHPublic HTTPS URL per published port; not a TCP tunnel; SSH with Docker-issued certificatesSSH; HTTPS URLs for up to 50 ports, token-protected by default; raw TCP; dedicated IPv4 or IPv6
Outbound rulesNo outbound allowlist documentedAllow and deny rules by host, with allow-all, balanced and deny-all presetsOpen internet, no provider-side allowlist
Desktop and browserNone; headless command and file access onlyTerminal sessions only60fps Linux desktop with Chromium and computer use
Coding agentsRun your own agent through execs; a Harbor guide for agent evalsClaude Code, Codex, Copilot, OpenCode and more, run and attached to from the sbx CLISeven agents preinstalled, with a prompt, steer and events API to drive them from outside
Keeping API keys out of the sandboxNo credentials proxy documentedCloud proxy sets the auth header for built-in AI services and custom hostsCredentials proxy for model providers and any HTTPS API; switch a credential to another account when credits run out
Every feature Battleships tracks (43)
FeatureTogether Code SandboxDocker Cloud Sandboxesboat
Full VM (own kernel)YesYesYes
Docker insideNot publishedYesYes
Nested virtualizationNoNoYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINoNoYes
BrowserNoNoYes
Computer-use APINoNoYes
SSHNoYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsNoYesYes
Fork/cloneYesYesYes
Live fork (no pause)NoYesYes
Memory forkYesYesNo
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopNoNoNo
Wake on requestNoNot publishedNo
HTTPS preview URLsYesYesYes
Raw TCP inboundNoNot publishedYes
Public IPv4NoNoNo
Egress allowlistNoYesNo
Secret proxyNoYesYes
Secret proxy for any APINoYesYes
Preinstalled agentsNoYesYes
Agent harness APINoNoYes
MCP serverYesYesNo
GPUNoNoNo
WindowsNoNoNo
Arm64NoYesNo
Self-hostingNoNoNo
BYOCNoNoNo
Open sourceNoNoNo
Scoped API keysNot publishedNot publishedYes
Spend limitsYesNot publishedYes
Usage per sandbox (API)YesNoYes
Audit logsNot publishedNot publishedNo
SSOYesYesNo
SOC 2YesNoNo
HIPAANoNoNo
EU data residencyNot publishedNoYes
Zero data retentionNot publishedNot publishedYes

Performance

Together Code SandboxNot measured
Docker Cloud SandboxesNot measured
boat26.69 runs/s

There is no comparable CPU measurement for Together Code Sandbox or Docker Cloud Sandboxes: neither is in the hpc-sandbox-benchmarks runs, and Docker does not say what hardware it uses. boat did 26.69 runs per second on the StarSling Node.js test at 4 vCPU / 8 GB, on dedicated AMD Ryzen 9 9950X hosts, so no speed ratio can be given for this pair.

Node.js build-and-test loop at 4 vCPU / 8 GB, higher is better. Measured with the open hpc-sandbox-benchmarks suite. Together Code Sandbox and Docker Cloud Sandboxes have no published run in this suite yet, so there is no like-for-like number to compare.

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.

ScenarioTogether Code Sandbox, a monthDocker Cloud Sandboxes, a monthboat, 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
$5 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$49 · Docker Agentic Platform (pay-as-you-go)$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$22 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$204 · Docker Agentic Platform (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
$264 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$2,464 · Docker Agentic Platform (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
$900 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$700 · Docker Agentic Platform (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
$6,000 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$1,400 · Docker Agentic Platform (pay-as-you-go) · with limits$2,000 · $2000/mo · with limits

Together Code Sandbox: Together lists Code Sandbox at $0.0446 per vCPU-hour and $0.0149 per GiB-hour, but the VMs must be enabled for your organization, so the tables price Code Interpreter: $0.03 per 60-minute session from prepaid credits, $5 minimum. Code Interpreter runs only Python and keeps no disk.

Docker Cloud Sandboxes: Docker bills per second for the size you pick, from $0.07 an hour for 1 vCPU / 2 GiB to $1.12 an hour for 16 vCPU / 32 GiB, with no monthly fee. A stopped sandbox costs nothing, and volumes and egress are free.

Docker Cloud Sandboxes: Plans start at $20 a month, and the whole fee becomes usage credit. You pay per second while a sandbox runs, and a stopped sandbox costs nothing and keeps its disk.

Limits in those scenarios

The Together column is Code Interpreter, so it fits none of the scenarios: sessions last 60 minutes, nothing is kept after a session, it runs only Python and its machine size is not published. Docker fits one coding agent on workdays, but its 24-hour cap rules out one agent that never stops, and its default of 10 sandboxes at once rules out 50 agents, sandboxes for your users and 1,000 short jobs. boat fits every scenario except the 1,000-job burst, where its start limits queue the starts even on the $2,000 plan.

ScenarioTogether Code SandboxDocker Cloud Sandboxesboat
One coding agent, workdays
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • missing persistent disk
  • machine size not published
  • different kind of product: code interpreter
None that biteNone that bite
One agent that never stops
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • missing persistent disk
  • machine size not published
  • different kind of product: code interpreter
  • Docker Agentic Platform (pay-as-you-go): sessions capped at 24 h
None that bite
50 agents in parallel
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • missing persistent disk, Docker inside
  • machine size not published
  • different kind of product: code interpreter
  • Docker Agentic Platform (pay-as-you-go): max 10 concurrent
None that bite
Sandboxes for your users
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • egress price not published
  • Docker Agentic Platform (pay-as-you-go): max 10 concurrent
None that bite
1,000 short jobs at once
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • egress price not published
  • Docker Agentic Platform (pay-as-you-go): max 10 concurrent
  • max 2,400 starts/day (needs ~6,667)
  • max 600 starts/hour (needs ~1,000)
  • bursts above 90 starts/min are queued (a burst of 333 takes ~4 min to start)

Which one should you use?

Use Together Code Sandbox when

you already run models on Together, can get the VMs enabled for your organization, and want light sandboxes from a tenth of a core that you can save with their memory and branch from.

  • Memory snapshots to branch from. Useful for rollouts: end a sandbox with its memory saved and start many copies with processes still running.
  • Sandboxes next to your models. Handy if you already run inference or fine-tuning on Together: sandboxes and models share one account and API key.
  • Tiny machines and a Python runner. Good for many light jobs: sandboxes start at a tenth of a core, and Code Interpreter runs Python per session.

Use Docker Cloud Sandboxes when

you already run agents in sbx on your laptop and want a few of them to keep going in the cloud for up to a day, with memory kept across stops and strict outbound rules.

  • Stop and fork with memory. Useful for agents that pause between steps: a stopped sandbox comes back with its memory and running processes.
  • Outbound rules at the proxy. Teams that must limit where an agent connects can set allow and deny rules by host, enforced outside the VM.
  • The same sandbox on your laptop. If you already run sbx locally, the cloud is the same microVM and CLI, and you can move work between them.

Where boat fits

If your agents do real work for hours or days, look at boat as well. Together's VMs need Together to switch them on and Docker's sandboxes stop at 24 hours, while boat is a full machine you can start today with no session cap on paid plans. Both Together and Docker also leave out the desktop, /dev/kvm and an API to drive the agent inside from outside.

A whole machine with /dev/kvm

Android emulator builds and VM-based tests need /dev/kvm, which neither Together nor Docker documents. Together also runs commands as a normal user and does not document Docker inside, so compose stacks need extra work there.

Runs as long and as wide as the work

On Docker your code must stop and resume an agent before the 24-hour mark, and the eleventh agent waits for a slot. On Together you first wait for access. boat runs 100 at once on the $20 plan with no session cap.

Agents, desktop and private hosting built in

On both you reach the agent through execs or a terminal and parse its text, and there is no screen for computer use. boat ships seven agents with a prompt and events API, a 60fps desktop and token-protected HTTPS on 50 ports.

Use boat when your agents run for days or by the dozen, need Docker, Android emulators, a desktop or a browser, or have to be driven from your own app through an API. Compare it one to one: boat vs Together Code Sandbox and boat vs Docker Cloud Sandboxes.

Questions people ask

Is Together Code Sandbox cheaper than Docker Cloud Sandboxes?

Together's only self-serve price is Code Interpreter, which looks cheaper for long runs, $264 against $2,464 a month for 50 agents, but fits none of the scenarios because sessions end after 60 minutes and keep no disk. For short jobs Docker costs less: $700 against $900 for sandboxes for your users, and $1,400 against $6,000 for 1,000 short jobs at once.

Which is faster, Together Code Sandbox or Docker Cloud Sandboxes?

Neither has a comparable CPU measurement, so there is no fair answer yet. boat did 26.69 runs per second on the StarSling Node.js test at 4 vCPU / 8 GB, a run that included neither of them.

Can Together Code Sandbox run Docker?

Together builds sandboxes from Docker images, but its new SDK does not document Docker inside a sandbox and does not read Dev Containers or Docker Compose. Docker Cloud Sandboxes runs its own Docker Engine in each sandbox, and boat runs Docker, systemd and root on every machine.

Can a Docker cloud sandbox run longer than 24 hours?

Not in one session. A Docker cloud sandbox expires after one hour by default, and extensions cannot go past 24 hours from creation. Together's sandboxes run until you end them, and boat has no session cap on paid plans.

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 first. Docker Cloud Sandboxes and boat are both self-serve.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons