Beam vs Together Code Sandbox
Beam is a self-serve serverless platform with gVisor sandboxes, CPU VMs and GPUs. Together Code Sandbox starts VMs from Docker-image snapshots and can save them with their memory, but Together must enable it for your organization. Its pricing page also lists a Code Interpreter billed per session.
The companies and products
Beam
Beam is a serverless cloud for GPU inference, sandboxes, VMs and background jobs, built on its open-source runtime Beta9.
Beam runs functions, REST endpoints, task queues, pods, sandboxes and VMs on CPUs and GPUs, from a Python or TypeScript SDK. A sandbox is a container isolated with gVisor by default. It lives until you terminate it or its time to live runs out, and you can save it as a filesystem image or a memory snapshot. Beam VMs are a separate CPU product: a microVM with its own kernel, systemd, a root disk that stays when it stops, and a browser desktop. A VM can pause with its memory, fork and take disk snapshots. CPU work runs on Spot, Shared or Performance tiers at different prices.
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. “7th cheapest of 365” means 6 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 | Beam: 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 | 7th cheapest of 365 $1,200 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 | 12th cheapest of 361 $1,495 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 Beam fits short code runs, with sandboxes that bill per millisecond, and ranks 17th here. Together's Code Interpreter line bills $0.03 per 60-minute session; Code Sandbox runs short code through exec once Together enables it. | 21st cheapest of 336 $161 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 Beam fits this with a quick sandbox per user and ranks 12th. On Together every port URL is public unless you set an experimental access policy. boat ranks 2nd, with token-gated HTTPS URLs. | 14th cheapest of 349 $567 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 save a sandbox with its memory and start many copies from it, and Beam can restore memory snapshots into new sandboxes too. Together's VM product needs Together to enable it first. | 332nd of 349, with limits $984 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 | 16th cheapest of 359 $258 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 Beam runs Docker in a sandbox with docker_enabled and in its VMs. Together does not document Docker inside a sandbox. Builds that need /dev/kvm, like Android or VM images, run on boat. | 29th cheapest of 374 $300 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 A Beam VM keeps its root disk while stopped, and boat saves the disk every minute. A Together sandbox runs until you terminate it or its ttl ends, and your backend starts and stops it. | 44th cheapest of 371 $55 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 Beam VMs have a browser desktop with an SDK for clicks and screenshots. On Together you build a browser and virtual display into your image. boat streams a desktop at 60 fps with Chrome. | 12th cheapest of 367 $431 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 | 73rd of 356, with limits $272 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 | 16th cheapest of 343 $196 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 | 44th of 327, with limits $967 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 | 6th cheapest of 351 $219 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 Beam has GPUs from RTX 4090 up to H100, H200 and B200, and ranks 1st here. Together Code Sandbox and boat have no GPU. | Cheapest of 102 $547 a month | 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 | Beam | Together Code Sandbox | boat |
|---|---|---|---|
| Isolation | gVisor container by default for sandboxes, with an opt-in VM-backed mode; Beam VMs are CPU microVMs with their own kernel | A VM per sandbox on Together's infrastructure | Full VM with its own kernel, on physical hosts dedicated to boat; vCPUs are shared |
| Getting started | Self-serve: sign up on Developer ($20 a month with $20 of credit) | 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 |
| Price for 4 vCPU / 8 GB per hour | Performance $0.28 (default for new accounts), Shared $0.088, Spot $0.036 (interruptible with 30 s notice) | About $0.30 ($0.0446 per vCPU-hour + $0.0149 per GiB-hour), from prepaid credits | $0.036, billed per second while it runs, from a $20 plan |
| Docker and systemd | Beam VMs have Docker and systemd; sandboxes run Docker with docker_enabled, without systemd | Commands run as user 1000 by default, root per exec on request; Docker inside not documented | Docker, systemd and root on every sandbox |
| Nested virtualization | Not documented | Not documented | Yes, /dev/kvm for Android emulators and VMs |
| GPUs | GPU sandboxes, serverless GPUs and GPU machines up to H100, H200 and B200 | No GPU | No GPU on any size |
| Machine size | You request CPU and RAM per sandbox; Beam VMs have a 50 GiB root disk by default, up to 100 GiB | 0.1 to 16 cores, 1 to 8 GB of memory per core; disk size not configurable | 2, 4, 8 or 16 vCPU at 2 GB per vCPU; 16 vCPU needs the $100 plan or higher |
| Saving state | Sandbox filesystem image or memory snapshot; a Beam VM keeps its root disk while stopped and can pause with RAM | End a sandbox with a snapshot of its disk, or disk and memory; new sandboxes resume with processes running | Disk saved every minute and at stop; kept at least 14 days with no compute charge; memory is not saved |
| Fork | Sandbox memory snapshots restored into new sandboxes; VMs fork | The parent stops first, then you start many sandboxes from its snapshot | Fork a running sandbox from its last 1-minute disk snapshot; the original keeps running |
| Reaching the sandbox | Sandboxes: a public HTTPS URL per port, no built-in auth. VMs: token-protected URLs and TCP ports on a persistent public IPv6 address | 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 per sandbox, token-gated by default; SSH; raw ports on public IPv6, and on IPv4 where the sandbox has its own address |
| Outbound rules | Block all, or allow up to 64 hosts, wildcard domains, IPs or CIDRs, changeable while running | No egress allowlist documented | Open internet, no provider-side allowlist |
| Desktop and browser | Beam VMs have a browser Linux desktop with Chrome and an SDK for screenshots, clicks and typing; documented for VMs, not sandboxes | No built-in desktop or stream; you install a browser or virtual display in your own image | Desktop and Chrome in every sandbox at 1920x1080 and 60 fps, with computer tools for agents |
| Coding agents | You install agents and run them through process exec; Beam's MCP server plugs into Claude Code, Codex and Cursor | You install your agent in your image and run it through execs; a Harbor guide for agent evals | Seven agents installed, including Claude Code and Codex, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Brokered secrets: the guest sees a placeholder, and Beam puts the real key into HTTPS headers to approved hosts | No credentials proxy documented | Optional AI credentials proxy ($1 a day while on, plus $1 per 1,000 requests) for supported model providers; other secrets still enter the sandbox |
| Self-hosting | Beta9 runtime is AGPL-3.0 and free to self-host; bring your own cloud for a fee | No; the SDKs and CLI are MIT-licensed, the platform is not | No |
Every feature Battleships tracks (43)
| Feature | Beam | Together Code Sandbox | boat |
|---|---|---|---|
| Full VM (own kernel) | No documented way | Yes | Yes |
| Docker inside | Yes | Not published | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | No documented way | 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 | With your own setup | With your own setup | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | Yes | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | No documented way | No documented way | No documented way |
| Wake on request | No documented way | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | No documented way | No documented way |
| Secret proxy | Yes | 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 | Yes | 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 | Yes | No documented way | No documented way |
| BYOC | Yes | 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 | Not published | 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 | Not published | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither Beam nor Together Code Sandbox is in the public CPU benchmark we use, so we cannot say which is faster. For reference, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15 in StarSling's run of 3 October 2026 (run 37073680030). 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. For start time, ComputeSDK measured Beam at 534 ms median with 100 at once (2026-11-06), at Beam's default size. Together and boat are not in ComputeSDK.
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. Beam 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 | Beam, 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 | $20 · Developer | $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 | $58 · Developer | $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 | $836 · Team | $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 | $312 · Team | $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 | $527 · Team · with limits | $6,000 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits | $8,800 · $2000/mo · with limits |
Beam: Beam bills sandboxes per millisecond while they run, for each vCPU and GiB, on Spot, Shared or Performance tiers; new accounts default to Performance. For 4 vCPU / 8 GiB that is $0.28 an hour on Performance, $0.088 on Shared and $0.036 on Spot. VMs bill per second while running, and nothing for compute while stopped. Developer is $20 a month with $20 of credit; Team is $89 a month plus usage. There are no egress fees, and storage is not billed yet.
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. Billing granularity, snapshot storage and egress prices are not published. The table uses the Code Interpreter line ($0.03 per 60-minute session) because Code Sandbox needs enablement.
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 and keeps its disk for at least 14 days, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 12 starts a minute and 200 a day; extra starts cost $0.03 to $0.07.
Limits in those scenarios
The Together column uses Code Interpreter, which fits none of the five scenarios: sessions last 60 minutes, nothing is kept, and the machine size is not published. Code Sandbox, the VM product, publishes no concurrency or start limits. Beam's Developer plan allows 30 vCPUs at once, so 50 parallel agents need Team, and Beam does not bill storage yet, so no disk cost is counted for it. For 1,000 short jobs at once, Beam Team allows 1,000 vCPUs where the burst needs 2,000, and boat's $2,000 plan charges for starts above 90 a minute and refuses them above 270. boat's auto-stop defaults to 1 hour.
| Scenario | Beam | 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 Beam when
your agents or jobs need GPUs, when you want a self-serve sandbox or VM you can start today with outbound rules, or when you must self-host the runtime.
- GPUs in the same platform. For agents or jobs that need a GPU, Beam offers GPU sandboxes, serverless GPUs and GPU machines from RTX 4090 to H100, H200 and B200.
- Self-serve sandboxes and VMs. You can sign up and start today, with sandboxes that bill per millisecond and VMs that keep their disk and have a desktop.
- Open source, outbound rules and brokered secrets. Teams can self-host the AGPL-3.0 Beta9 runtime, limit outbound traffic to up to 64 hosts, and keep secrets as placeholders.
Use Together Code Sandbox when
you already run models on Together and want light VM 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 and test variants: save a sandbox with its memory 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.
- Sizes cut to the job. Good for many light jobs: sandboxes start at a tenth of a core, priced per vCPU-hour and GiB-hour.
Where boat fits
If you run coding agents that work for hours, install tools, run Docker and serve apps, look at boat. Each boat sandbox is a full VM you can sign up for today, with /dev/kvm, token-gated HTTPS, a desktop and seven agents installed. Beam is the better pick for GPUs, and Together for memory snapshots next to your models.
A whole machine with /dev/kvm
Beam VMs have systemd and Docker, but Beam documents no /dev/kvm. Together documents neither Docker inside a sandbox nor nested virtualization. Every boat sandbox has root, systemd, Docker and /dev/kvm.
Hosting that is private by default
A Beam sandbox URL has no built-in auth, and Beam VMs add protected URLs. On Together every port is public unless you set an experimental policy. boat serves up to 50 token-gated HTTPS URLs per sandbox, plus SSH.
Agents and a desktop installed
On Beam and Together you install the agent harness yourself and drive it through execs. On Together you also build the browser and desktop into your image. boat ships seven agents with a prompt, steer and events API and a 60 fps desktop.
Use boat when your agents do real work for hours: installs, builds, Docker, emulators, a browser and servers other people reach, on a full machine with the agents already set up. Compare it one to one: boat vs Beam 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 Beam cheaper than Together Code Sandbox?
At Together's Code Sandbox list rates, Beam costs less in every scenario on this page. One agent on workdays costs $20 a month on Beam against $52, one agent always on $58 against $217, 50 agents $836 against $2,619, and sandboxes for your users $312 against $744. For 1,000 short jobs at once, Together's rates give $1,488, and Beam Team does not fit. Code Sandbox must be enabled by Together. boat costs $20, $26, $317 and $200 in the first four.
Which is faster, Beam or Together Code Sandbox?
Neither is in the public CPU benchmark we use, so we cannot compare their CPU speed. ComputeSDK measured Beam at 534 ms to start with 100 at once; Together is not in it.
Can Beam and Together Code Sandbox run Docker?
Beam runs Docker in a sandbox with docker_enabled and in its VMs. Together builds sandboxes from Docker images, but its docs do not describe Docker inside a sandbox. boat runs Docker, systemd and root on every sandbox, plus /dev/kvm.
Is a Beam sandbox a VM like a Together sandbox?
Not by default. Beam's sandboxes are gVisor containers, with an opt-in VM-backed mode, and Beam sells separate CPU VMs with their own kernel and systemd. Each Together sandbox is a VM, and each boat sandbox is a full VM with /dev/kvm.
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. Beam and boat are both self-serve; boat needs a card, also for its 7-day trial.
Do Beam or Together Code Sandbox have GPUs?
Beam does, with GPU sandboxes, serverless GPUs and GPU machines up to H100, H200 and B200. Together Code Sandbox and boat have no GPU.
Try boat
Install the CLI, then run boat new.
7-day free trial