Together Code Sandbox vs OpenAI Containers
Together Code Sandbox starts VMs from Docker-image snapshots and can save their memory when they end. Together must enable it for your organization. OpenAI Containers are boxes the model runs code in during an API call. By default a container expires after 20 minutes without use, and its data is discarded.
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 Together must enable it for your organization. The pricing page also lists Code Interpreter at $0.03 per 60-minute session.
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. “67th cheapest of 365” means 66 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 | Together Code Sandbox: 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 software factory needs root, Docker and a disk that stays. Together runs commands as a normal user unless you ask for root per exec, and does not document Docker inside. OpenAI's hosted shell runs without sudo; you can connect the Agents API to a sandbox you host instead. boat has root, Docker and /dev/kvm on every sandbox. | 67th of 365, with limits $528 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 lives on its machine all month needs a disk that survives. An OpenAI container expires after 20 idle minutes by default, and expires_after can set a longer idle time. A Together sandbox runs until you end it or its time to live ends, with no idle detection. boat keeps the disk across stops for at least 14 days. | 107th of 361, with limits $1,095 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 Short code runs are what both are built for. OpenAI runs the model's code inside the model call and bills by the minute with a 5-minute minimum. Together's pricing page lists Code Interpreter at $0.03 per 60-minute session. | 318th of 336, with limits $2,190 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 On Together every port URL is public unless you set an experimental access policy. OpenAI documents no inbound ports for hosted containers. boat serves HTTPS URLs on up to 50 ports, token-protected by default. | 231st of 349, with limits $900 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 Together can save a sandbox with its memory and start many copies from it, which suits rollouts that branch from one warm state. OpenAI documents no snapshot or fork call; you upload the same files into a new container. | 309th of 349, with limits $21,900 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 | 260th of 359, with limits $450 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 jobs need Docker and outbound internet. Together does not document Docker inside a sandbox. OpenAI Code Interpreter and Hosted Shell containers have no outbound access until an admin allows domains. | 253rd of 374, with limits $180 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 Neither documents SSH for its hosted sandboxes. A dev box you SSH into and keep all month is what boat is. | 226th of 371, with limits $22 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 has a hosted browser for the Agents API computer_use tool. Together ships no desktop or browser; you build them into your image. boat streams a full 60fps desktop with Chrome. | 105th of 367, with limits $600 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 | 195th of 356, with limits $900 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 | 181st of 343, with limits $180 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 | 126th of 327, with limits $3,600 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 | 95th of 351, with limits $150 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 | Together Code Sandbox | OpenAI Containers | boat |
|---|---|---|---|
| Getting started | The SDK and CLI must be enabled for your organization by Together; the pricing page also lists Code Interpreter on prepaid credits | Self-serve on the API: add Code Interpreter or the shell tool to a request | Sign up with a card (7-day trial), then start a sandbox from the API, CLI or dashboard |
| Isolation | A VM per sandbox on Together's infrastructure | 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 |
| Machine size | 0.1 to 16 cores, 1 to 8 GB of memory per core; disk size not configurable | 1, 4, 16 or 64 GB of memory; vCPU not published. Agents API sandboxes: 1 vCPU / 1 GB, 2 vCPU / 4 GB or 4 vCPU / 16 GB | 2, 4, 8 or 16 vCPU at 2 GB per vCPU; 16 vCPU needs the $100 plan or higher |
| Root, Docker and nested virtualization | Commands run as user 1000 by default, root per exec on request; Docker inside and nested virtualization not documented | Commands do not run with sudo; Docker and /dev/kvm not documented. You set it up: connect the Agents API to a self-hosted sandbox | Root, systemd, Docker and /dev/kvm on every sandbox |
| Custom image | Snapshots built from your Docker image or Dockerfile | Fixed Debian 12 image; you upload files or skills into each container | Start from boat's image or a saved snapshot; you cannot boot your own Docker image |
| Shell access | Commands, interactive shells and files through the SDK and CLI; SSH is not documented | The model runs commands through the API; SSH is not documented | SSH, plus exec and files over the API |
| Saving state | End a sandbox with a snapshot of its disk, or disk and memory; a new sandbox from a memory snapshot resumes with its processes running | Data is discarded when the container expires; the Agents API publishes files in /workspace/outputs as artifacts that stay downloadable | Disk saved every minute and at each stop; memory is not saved, so a resume is like a reboot |
| Lifetime | VM sandboxes run until you end them or their time to live runs out | 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; set up to 30 days, or turn it off on a paid plan for no session cap |
| Fork | The parent stops first, then you start many sandboxes from its snapshot, with memory if you ask | 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 disk snapshot; the original keeps running |
| Reaching the sandbox | A URL per port, open to everyone by default; an experimental policy limits access by IP or requires a token | No inbound ports documented for hosted containers; you reach them through the API | Up to 50 HTTPS URLs, token-protected by default; SSH; raw ports (IPv6 only on sandboxes with no IPv4 of their own) |
| Outbound internet | No egress allowlist documented | Code Interpreter and Hosted Shell: off until an admin sets an org 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 | No credentials proxy documented | domain_secrets: a sidecar adds the real header for approved domains, and the model sees a placeholder | Optional AI credentials proxy ($1 a day plus $1 per 1,000 requests) for model providers and custom HTTPS APIs |
| Coding agents | You install your agent in your image and run it through execs; a Harbor guide for agent evals | Agents API (beta) drives a managed Codex harness from outside, with steering, events and webhooks | Seven harnesses preinstalled, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Desktop and computer use | No built-in desktop or stream; install a browser or virtual display in your own image | Hosted browser for the Agents API computer_use tool | Linux desktop and Chrome streamed at 1920x1080, 60fps, with computer-use tools and an embeddable stream |
| Regions | Not published | US or EU processing for Code Interpreter; the Agents API can also drive a sandbox you host | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | Together Code Sandbox | OpenAI Containers | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Not published | No documented way | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | No documented way | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | Not published | Yes | Yes |
| Browser | Not published | Yes | Yes |
| Computer-use API | Not published | Yes | Yes |
| SSH | No documented way | No documented way | Yes |
| Persistent disk | With your own setup | No documented way | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | Yes | No documented way | Yes |
| Live fork (no pause) | No documented way | No documented way | Yes |
| Memory fork | Yes | 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 | No documented way | Yes | No documented way |
| Wake on request | No documented way | No documented way | No documented way |
| HTTPS preview URLs | Yes | No documented way | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | No documented way | 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 | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Yes | Not published | Yes |
| Usage per sandbox (API) | Yes | No documented way | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | No documented way | Yes | No documented way |
| EU data residency | Not published | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Together Code Sandbox and OpenAI Containers are not in the public benchmarks we use, so we cannot say which is faster, and OpenAI does not publish the vCPU behind each Responses container size. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark 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.
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. Together Code Sandbox 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 | Together Code Sandbox, 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 | $5 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 | $22 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 | $264 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 | $900 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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 | $6,000 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits | $6,000 · API pay as you go · with limits | $8,800 · $2000/mo · with limits |
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, from prepaid credits, once Together enables it for your organization. Billing granularity, snapshot storage and egress prices are not published. The pricing page also lists Code Interpreter at $0.03 per 60-minute session; the scenario tables use that line because Code Sandbox needs enablement.
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 separately on top. There is no plan fee. The scenarios use the 16 GB size ($1.44 an hour) for 8 GB needs and the 4 GB size 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 running sandbox bills per second at full rate, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. A stopped sandbox has no compute charge and keeps its disk for at least 14 days. Saved snapshots above the included count and the optional AI credentials proxy still charge while sandboxes are stopped. The $20 plan includes 12 starts a minute and 200 a day; extra starts cost $0.03 to $0.07. A card is required, also for the 7-day trial.
Limits in those scenarios
Neither fits the scenarios as written. The tables price Together with the Code Interpreter line ($0.03 per 60-minute session), because Code Sandbox needs Together to enable it; those sessions last 60 minutes and their machine size is not published. Hosted OpenAI containers discard their files when they expire, document no Docker or root, and do not publish the vCPU behind each size. Code Interpreter and Hosted Shell containers have no outbound access until an admin allows domains. OpenAI does not publish how many containers can run at once, so 300 user sandboxes and the 1,000-job burst are unconfirmed. boat has its own limits: the $20 plan includes 200 starts a day, and boat never queues a start. In the burst, the $2,000 plan charges for starts above 90 a minute and refuses them above 270, so boat does not fit it either. A stopped boat sandbox keeps its disk for at least 14 days, and a machine failure loses what was written after the last snapshot.
| Scenario | Together Code Sandbox | 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 Together Code Sandbox when
you already run models on Together, can get the VMs enabled, and want light sandboxes from your own Docker image that you save with their memory and branch from.
- Memory snapshots to branch from. Useful for rollouts and test variants: save a sandbox with its memory and start many copies with processes still running.
- A machine you build from a Dockerfile. Good when the code needs your own tools: sandboxes start from your Docker image, and commands can run as root on request.
- Sandboxes next to your models. Handy if you already run inference or fine-tuning on Together: sandboxes and models share one account.
Use OpenAI Containers when
your app already calls OpenAI models and the model only needs to run short pieces of code or shell commands 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.
- 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.
- US or EU processing, and your own compute. Self-serve on any API account, with US or EU processing for Code Interpreter; the Agents API can also drive a sandbox you host.
Where boat fits
Both are built around short pieces of code: OpenAI runs what the model writes, and Together runs sandboxes you script from your backend once Together enables them. For agents that work for hours, install things, start servers and come back the next day, boat gives each one a full VM. boat needs a card, has no region choice and caps starts per plan.
A whole machine with root
boat has root, systemd, Docker and /dev/kvm. OpenAI's hosted shell runs without sudo and documents no Docker; you can connect the Agents API to a sandbox you host instead. Together runs commands as a normal user by default and does not document Docker inside a sandbox.
A disk that stays
By default an OpenAI container expires after 20 minutes without use, and its data is discarded; expires_after can set a longer idle time. Together saves a snapshot when a sandbox ends. boat saves the disk every minute and at each stop, and keeps a stopped sandbox's disk for at least 14 days. A boat resume is like a reboot.
Private hosting and agents built in
OpenAI documents no inbound ports for hosted containers, and Together port URLs are public unless you set an experimental policy. boat serves token-protected HTTPS on up to 50 ports, with seven coding agents and a 60fps desktop you drive from outside.
Use boat when your agents do real work for hours: root, Docker, a disk that stays, open internet and private ports you can reach, on a full VM with seven coding agents installed. Compare it one to one: boat vs Together Code Sandbox 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 Together Code Sandbox cheaper than OpenAI Containers?
On the lines the tables use, yes for long runs. Together's Code Interpreter line comes to $22 a month for one agent running all month against $1,051 on OpenAI, and to $264 for 50 agents against $11,405. For 1,000 short jobs at once both come to $6,000. Neither fits these scenarios as written, and OpenAI bills model tokens on top. boat comes to $26 and $317 for the first two, and about $8,800 for the burst with paid starts, which it does not fit either.
Which is faster, Together Code Sandbox or OpenAI Containers?
Neither is in the public benchmarks we use, so we cannot say, and OpenAI does not publish the vCPU behind each container size. In StarSling's run of 3 October 2026, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host.
Can I run Docker in Together Code Sandbox or OpenAI Containers?
Neither documents it for its hosted sandboxes. Together builds sandboxes from Docker images and can run commands as root on request, but does not document Docker inside a sandbox. OpenAI's hosted shell runs commands without sudo; the Agents API can drive a self-hosted sandbox where you control the machine. boat runs Docker, systemd and root on every sandbox.
How long does a session last on each?
By default an OpenAI container expires after 20 minutes without use, and its data is discarded; expires_after can set a different idle time. Together's VM sandboxes run until you end them or their time to live runs out. boat has no session cap once auto-stop is off on a paid plan (default 1 hour), and keeps the disk for at least 14 days after a stop.
Can I open a web app running inside the sandbox?
Not on a hosted OpenAI container: OpenAI documents no ports, URLs or SSH for them. On Together every port URL is public by default, and an experimental policy limits access by IP or token. boat gives each sandbox HTTPS URLs for up to 50 ports, token-protected by default, plus raw ports and SSH.
Is boat SOC 2 compliant?
SOC 2 is in progress at boat, so there is no SOC 2 report today. Together's trust center lists a SOC 2 Type 2 report, and OpenAI's API Platform is audited for SOC 2 Type 2. 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 Together Code Sandbox
- boat vs OpenAI Containers
- E2B vs Together Code Sandbox
- Daytona vs Together Code Sandbox
- Modal vs Together Code Sandbox
- Vercel Sandbox vs Together Code Sandbox
- Cloudflare Sandbox vs Together Code Sandbox
- Blaxel vs Together Code Sandbox
- Runloop vs Together Code Sandbox
- Tensorlake vs Together Code Sandbox
- Morph Cloud vs Together Code Sandbox
- CodeSandbox SDK vs Together Code Sandbox