GitHub Codespaces vs Together Code Sandbox

GitHub Codespaces is a cloud dev environment for people working on a GitHub repository, open to any GitHub account and capped at 12 hours per run. Together Code Sandbox is a sandbox API for code from models and agents. It runs VMs started from Docker-image snapshots and saves disk and memory when a sandbox ends. Together must enable it for your organization; Code Interpreter, a Python runner, is self-serve.

The companies and products

GitHub Codespaces

GitHub Codespaces is GitHub's cloud development environment: a ready-to-code Linux machine for a repository, opened in the browser, VS Code or the GitHub CLI.

Codespaces is a different kind of product from boat: a dev environment for people who work on a GitHub repository, not a sandbox API for agents. Each codespace is a Docker container built from the repo's dev container config. It runs on its own newly built VM on Azure, with 2 to 32 cores. It is built for developers and teams who want every contributor to start from the same setup, with prebuilds, port forwarding and GitHub billing.

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. “290th cheapest of 365” means 289 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 workloadGitHub Codespaces: price rankTogether Code Sandbox: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Codespaces gives an agent Docker and sudo in a dev container but stops it after 12 hours. Together runs commands as user 1000 by default and root per exec on request; its docs do not describe Docker inside a sandbox. boat has Docker, root and /dev/kvm on every sandbox.
290th of 365, with limits
$4,618 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
A codespace stops after 12 hours at most. A Together sandbox runs until you terminate it or its ttl ends, so your backend starts and stops it. On boat you turn auto-stop off on a paid plan (default 1 hour).
320th of 361, with limits
$6,970 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
For short Python runs, Together's Code Interpreter is the simpler fit, billed per 60-minute session. Each codespace builds a dev container on a new VM before it can run anything. On boat each start counts against the plan's start cap.
283rd of 336, with limits
$619 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
Codespaces are made for GitHub users on a repository. Together port URLs are open to everyone by default, unless you set an experimental access policy. boat's HTTPS URLs are token-protected by default.
276th of 349, with limits
$1,964 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 saves a sandbox with its memory when it ends and starts many copies from that warm state, which suits rollouts. Codespaces has no copy or snapshot endpoint. A boat fork copies the disk only and counts as a start.
276th of 349, with limits
$9,489 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
295th of 359, with limits
$1,519 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
317th of 374, with limits
$909 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
For a developer's own box, Codespaces is the polished choice with VS Code built in, though it stops after 12 hours. Together documents no SSH. boat has SSH and no session cap once auto-stop is off.
144th of 371, with limits
$270 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
A codespace can add a basic noVNC desktop through the desktop-lite add-on. On Together you build a desktop and browser into your image yourself. boat streams its desktop at 60 fps with computer tools.
297th of 367, with limits
$1,367 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
306th of 356, with limits
$678 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
324th of 343, with limits
$922 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
279th of 327, with limits
$18,637 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
boat forks one prepared sandbox into many while it keeps running; each fork counts as a start. Together starts copies from a snapshot after the parent stops. Codespaces creates each copy again from the repository.
284th of 351, with limits
$445 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
Not ranked: misses a requirementNot ranked: misses a requirementNot 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 requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureGitHub CodespacesTogether Code Sandboxboat
What it isA dev environment per GitHub repository, opened in VS Code, the browser or JupyterLabA sandbox API for model-generated code, agent tool calls and rollouts, on Together's AI cloudA sandbox you drive from code: full VMs for agents, with an API, SDK and CLI
Getting startedOpen a codespace from any repo, branch or pull request with a GitHub accountThe SDK and CLI must be enabled for your organization by Together; Code Interpreter is self-serveSign up with a card (7-day trial), then start a sandbox from the API, CLI or dashboard
IsolationA Docker container on its own newly built VM, with its own virtual networkA VM per sandbox on Together's infrastructureFull VM with its own kernel, on boat's own AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; shared vCPUs
Machine size2, 4, 8, 16 or 32 cores, with 4 GB of memory per core0.1 to 16 cores, 1 to 8 GB per core; disk size not configurable2, 4, 8 or 16 vCPU at 2 GB per vCPU; disk 51 to 251 GB by size; 16 vCPU needs the $100 plan
How long it runsStops after 30 idle minutes by default and after 12 hours at most, even while in useRuns until you terminate it or its ttl ends; ttl counts from creation; no idle detection or wake on requestNo cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days
Docker, root and nested virtualizationDocker and sudo inside the dev container; /dev/kvm not documentedCommands run as user 1000 by default, root per exec on request; Docker inside and nested virtualization not documentedDocker, root, systemd and /dev/kvm on every sandbox
Shell accessSSH, the GitHub CLI and a terminal in the editorCommands, interactive shells and files through the SDK and CLI; SSH not documentedSSH, plus exec and files over the API
Saving stateFiles kept while the codespace exists, storage billed; processes end; stopped codespaces deleted after 30 days by defaultEnd a sandbox with a snapshot of its disk, or disk and memory; a new sandbox resumes with its processes runningDisk saved every minute and at each stop; no compute charge while stopped; disk kept at least 14 days; resume is like a reboot
Fork and copiesNo copy or snapshot endpoint; new codespaces start from a repo, branch, pull request or prebuildThe parent stops first, then you start many sandboxes from its snapshot, with memory if you askFork a running sandbox from its last 1-minute disk snapshot; the original keeps running
Reaching the sandboxA URL per forwarded port, private, organization or public; no public IPA URL per port, open to everyone by default; an experimental policy limits access by IP or requires a tokenUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own
Desktop and computer useVS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite add-on, which you configureNo built-in desktop or stream; install a browser or virtual display in your own imageBuilt-in desktop and Chrome at 1920x1080 and 60 fps, with computer tools for agents
Coding agentsGitHub Copilot as a VS Code extension; other agents you install yourselfRun your own agent through execs; a Harbor guide for agent evalsSeven harnesses installed, with a prompt, steer and events API
Keeping API keys out of the sandboxSecrets are copied into the codespace as environment variablesNo credentials proxy documentedOptional AI credentials proxy ($1 a day while on, plus $1 per 1,000 requests) for supported model providers and HTTPS APIs
RegionsUS East, US West, Europe West and Southeast AsiaNot publishedGermany, Finland and France; you cannot pick one; no US or Asia region
Every feature Battleships tracks (43)
FeatureGitHub CodespacesTogether Code Sandboxboat
Full VM (own kernel)YesYesYes
Docker insideYesNot publishedYes
Nested virtualizationNot publishedNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUIWith your own setupNot publishedYes
BrowserNo documented wayNot publishedYes
Computer-use APINo documented wayNot publishedYes
SSHYesNo documented wayYes
Persistent diskYesWith your own setupYes
Pause/resumeYesYesYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneNo documented wayYesYes
Live fork (no pause)No documented wayNo documented wayYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsNo documented wayYesYes
Idle auto-stopYesNo documented wayNo documented way
Wake on requestNo documented wayNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistNo documented wayNo documented wayNo documented way
Secret proxyNo documented wayNo documented wayYes
Secret proxy for any APINo documented wayNo documented wayYes
Preinstalled agentsNo documented wayNo documented wayYes
Agent harness APINo documented wayNo documented wayYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesYesYes
Usage per sandbox (API)No documented wayYesYes
Audit logsYesNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayNo documented wayNo documented way
EU data residencyYesNot publishedNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

GitHub CodespacesNot measured
Together Code SandboxNot measured
boat28.06 runs/s

GitHub Codespaces and Together Code Sandbox are not in the public benchmarks 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.

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. GitHub Codespaces 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.

ScenarioGitHub Codespaces, a monthTogether Code Sandbox, 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
$51 · Personal account: GitHub Free$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
$270 · Personal account: GitHub Free · with limits$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
$3,019 · Personal account: GitHub Free$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
$850 · Personal account: GitHub Free · with limits$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
$1,889 · Personal account: GitHub Free · with limits$6,000 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$8,800 · $2000/mo · with limits

GitHub Codespaces: Codespaces bills $0.09 per core-hour while a codespace is active, used or not, plus $0.07 per GB-month of storage while it exists, stopped too. There is no 4-core machine with 8 GB, so 4 vCPU / 8 GB jobs are priced on the 4-core 16 GB machine. Personal accounts get a free monthly quota, and organizations do not.

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. Your organization must have it enabled first. 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 table uses that line 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. Unused time does not carry over. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge, and boat 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, 60 an hour and 200 a day; create, fork and resume each count as one start, and an extra start costs $0.03 to $0.07. A card is required, also for the 7-day trial.

Limits in those scenarios

Every codespace stops after 12 hours at most, so it misses the always-on scenario. GitHub does not publish how many codespaces can run at once, so 300 user sandboxes and 1,000 short jobs are not confirmed. The scenario table's Together column uses the Code Interpreter line, because Code Sandbox needs Together to enable it. Code Interpreter's 60-minute sessions and unpublished machine size rule it out of every scenario. Together publishes no concurrency or start limits for Code Sandbox. boat's limits: auto-stop defaults to 1 hour, and each plan caps starts. For 1,000 short jobs at once, even the $2,000 plan needs paid extra starts and refuses starts above 270 a minute, so boat does not fit. boat has no US or Asia region.

ScenarioGitHub CodespacesTogether Code Sandboxboat
One coding agent, workdaysNone for this scenario
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
One agent that never stops
  • Personal account: GitHub Free: sessions capped at 12 h
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
50 agents in parallel
  • how many machines can run at once: limit not published, probably fine at 50 (the typical published limit is 50)
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
Sandboxes for your users
  • not confirmed: how many machines can run at once (you need 300; the typical published limit is 50)
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • egress price not published
None for this scenario
1,000 short jobs at once
  • not confirmed: how many machines can run at once (you need 1,000; the typical published limit is 50)
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • egress price not published
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use GitHub Codespaces when

your developers want a ready VS Code environment for a GitHub repository, opened from a branch or pull request, in the US, EU or Asia.

  • Built into GitHub. Best for teams on GitHub: open a ready dev container from any repo, branch or pull request, in VS Code or the browser.
  • Open to anyone today. Any GitHub account can start one, and a personal Free account gets 120 core-hours and 15 GB-month of storage each month.
  • Regions in the US, EU and Asia. Useful for teams spread out: codespaces run in US East, US West, Europe West and Southeast Asia at one price.

Use Together Code Sandbox when

you already run models on Together, can get it enabled, and want light sandboxes that you save with their memory and branch from, or a simple Python runner.

  • Memory snapshots to branch from. Good for rollouts and test variants: save a sandbox with its memory when it ends 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.
  • Very small machines and a Python runner. Good for many light jobs: sandboxes start at a tenth of a core, and a Python interpreter API bills per session.

Where boat fits

Codespaces is a dev box for people that stops at 12 hours, and Together's VMs need Together to switch them on. If your agents work for hours, build with Docker and emulators, use a desktop or serve apps to other people, boat gives each one a full machine you can start today. It has no session cap once auto-stop is off on a paid plan (default 1 hour). boat has no memory snapshots and caps starts per plan.

A whole machine, with KVM

A codespace has Docker but documents no /dev/kvm. Together documents neither /dev/kvm nor Docker inside a sandbox. boat has Docker, systemd, root, SSH and /dev/kvm on every sandbox.

Fork a running machine

Codespaces cannot copy a machine, and Together copies only after the parent stops, with its memory. boat forks a running sandbox from its last 1-minute disk snapshot while the original keeps working. A boat resume is like a reboot.

Agents, desktop and private hosting built in

On both you install and wire up agents yourself, and neither has a built-in desktop. boat ships seven coding agents you drive from outside, a 60 fps desktop, an optional credentials proxy and token-protected HTTPS on 50 ports.

Use boat when your agents do hours of installs, builds, Docker, emulators and browser work, and serve apps to other people, on a full machine with the agents built in. Turn auto-stop off on a paid plan for long work (default 1 hour). Compare it one to one: boat vs GitHub Codespaces 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 GitHub Codespaces cheaper than Together Code Sandbox?

At Together's Code Sandbox list rates, compute only, Together costs about the same or less. One agent on workdays is about $52 a month against $51 on Codespaces. 50 agents in parallel are $2,619 against $3,019. Code Sandbox must be enabled by Together, and its billing granularity is not published. boat is $20 and $317 for those two.

Which is faster, Codespaces or Together Code Sandbox?

Neither is in the public benchmarks we use, so we cannot say. In StarSling's run of 3 October 2026, boat did 28.06 V8 Web Tooling runs/s at 4 vCPU / 8 GB on a Ryzen 9 9950X host. boat does not promise a CPU model.

Can GitHub Codespaces and Together Code Sandbox run Docker?

Codespaces runs Docker inside the dev container, with sudo. Together builds sandboxes from Docker images, but its docs do not describe Docker inside a sandbox or nested virtualization. boat has Docker, systemd and /dev/kvm on every sandbox.

Can I run an AI agent 24/7 on either?

Not on Codespaces without restarts: every codespace stops after 12 hours at most, even while in use. A Together sandbox runs until you terminate it or its ttl ends, once Together enables the product. boat has no session cap once auto-stop is off on a paid plan (default 1 hour).

Can I copy a running machine?

Codespaces has no copy or snapshot endpoint, so each codespace starts from the repository or a prebuild. Together saves a sandbox's disk and memory when it ends and starts copies from that. boat forks a running sandbox from its last 1-minute disk snapshot while the original keeps running.

Is boat SOC 2 compliant?

SOC 2 is in progress; there is no SOC 2 report today. We're open about where we stand: live status at status.ascii.dev and our data retention policy at docs.boat.dev/data-retention.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons