GitHub Codespaces vs Upstash Box

GitHub Codespaces is a dev environment for people: a dev container built from a GitHub repository, opened in VS Code, that stops after 12 hours at most. Upstash Box is a computer for AI agents: a light container with a coding agent built in, driven from an SDK, that pauses when idle and wakes on the next request.

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.

Upstash Box

Upstash Box is a cloud computer for AI agents from Upstash, the company known for serverless Redis, Vector and QStash.

Each box is a Docker container with its own filesystem, shell, git and an optional coding agent such as Claude Code, Codex, OpenCode or Cursor, which you drive from TypeScript or Python SDKs. A box pauses when it sits idle, keeps its files, and you pay for the CPU it actually uses. Upstash built it to run its own Context7 service and opened it to everyone in March 2026.

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 rankUpstash Box: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Codespaces runs Docker inside the dev container through a dev container feature, but a codespace stops after 12 hours at most. Upstash does not document Docker inside a box, which is itself a container. boat runs Docker and systemd in every VM.
290th of 365, with limits
$4,618 a month
98th of 365, with limits
$464 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An always-on assistant hits the 12-hour cap on Codespaces, so it needs a restart script. An Upstash keep-alive box stays on all month at a flat price. A boat VM runs until you stop it once auto-stop is off (default 1 hour).
320th of 361, with limits
$6,970 a month
170th of 361, with limits
$450 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
Upstash suits short code runs: an idle box costs no CPU, and a paused box wakes when work arrives. Each codespace builds a dev container on a new VM. On boat, each create counts against the plan's start limits.
283rd of 336, with limits
$619 a month
13th cheapest of 336
$119 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
Upstash and boat both fit sandboxes for your own users. Codespaces is made for GitHub users on a repository, and GitHub does not publish how many can run at once.
276th of 349, with limits
$1,964 a month
4th cheapest of 349
$222 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
276th of 349, with limits
$9,489 a month
343rd of 349, with limits
$8,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
295th of 359, with limits
$1,519 a month
67th cheapest of 359
$1,011 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 that build containers need Docker. A codespace has it through a dev container feature, and Upstash does not document it. Codespaces has no fork or snapshot API; each run starts from a repo or a prebuild.
317th of 374, with limits
$909 a month
122nd cheapest of 374
$1,480 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A flat-price Upstash keep-alive box makes a light 24/7 dev box with up to 30 GB of disk. Codespaces is a polished VS Code setup that stops after 12 hours. boat is a full VM that runs until you stop it once auto-stop is off.
144th of 371, with limits
$270 a month
8th cheapest of 371
$19 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
Codespaces can add a basic noVNC desktop through the desktop-lite dev container feature, which you configure, with no computer-use API. Upstash runs Chromium with a view-only live view and no desktop. boat streams a 60fps Linux desktop with computer tools.
297th of 367, with limits
$1,367 a month
123rd of 367, with limits
$76 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
48th of 356, with limits
$38 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
41st cheapest of 343
$400 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
201st of 327, with limits
$8,000 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
Upstash can start many boxes from a snapshot, and boat can fork a running sandbox from its last 1-minute snapshot. On Codespaces every copy is created again from the repository or a prebuild.
284th of 351, with limits
$445 a month
255th of 351, with limits
$259 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 CodespacesUpstash Boxboat
IsolationA Docker container on its own newly built VM on AzureOne Docker container per box on AWSFull VM with its own kernel, on a physical host dedicated to boat; vCPUs are shared
How long it runsStops after 30 idle minutes by default and after 12 hours at most, even while in useNo session cap; a standard box pauses after 6 hours idle on paid plans, and a keep-alive box stays onAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no session cap
Docker insideYes, through a dev container feature, with sudoNot documented; the box is itself a Docker container, and custom images are listed as coming soonYes, Docker, root and systemd as on any Linux server
Nested virtualization/dev/kvm is not documentedNot documented; boxes are containersYes, /dev/kvm for Android emulators and VMs
Machine sizes2, 4, 8, 16 or 32 cores, with 4 GB of memory per coreSmall 2 vCPU / 4 GB, Medium 4 vCPU / 8 GB, Large 8 vCPU / 16 GB; disk 10 to 30 GB by size2 to 16 vCPU (16 vCPU / 32 GB from the $100 plan); disk fixed per size, 51 to 251 GB
Files after a stopFiles are kept and storage is billed; a stopped codespace is deleted after 30 days by defaultA paused box keeps its files; storage keeps billing while pausedDisk saved every minute and at each stop, kept at least 14 days; no compute charge while stopped, but extra saved snapshots and the AI credentials proxy still bill
Wake on requestNo; you start a stopped codespace from the editor, CLI or REST APIYes; a request to a public URL resumes a paused boxNo; a stopped sandbox is started by API, and a resume is like a reboot
Fork and templatesNo copy or snapshot endpoint; new codespaces start from a repo or a prebuild built by GitHub ActionsSnapshot a running box and start many new boxes from itFork a running sandbox from its last 1-minute snapshot; saved snapshots as templates
Coding agentsGitHub Copilot as a VS Code extension; other agents you install yourselfClaude Code, Codex, OpenCode and Cursor built in, with run and stream APIs, webhooks and scheduled promptsSeven harnesses installed, among them Claude Code, Codex and OpenCode, with a prompt, steer and events API
Keeping API keys out of the sandboxSecrets are copied in as environment variablesHost proxy injects headers into outbound HTTPS on port 443 for any host, set when the box is createdOptional AI credentials proxy ($1 a day on, plus $1 per 1,000 requests) for supported model providers; other secrets still enter the sandbox
Desktop and browserVS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite dev container feature, which you configure; no computer-use APIManaged Chromium with AI page actions, CDP and a view-only live view; no desktop or VNCLinux desktop and Chrome streamed at 60fps, with computer tools for agents; no GPU
Inbound accessA URL per forwarded port, private, organization or public; SSH; no public IPHTTPS URL per port, public unless you add a token or basic auth; SSH through a gateway; no raw TCP documentedUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 only on sandboxes with no IPv4 of their own
Outbound rulesOpen internet; GitHub says there is no way to restrict itAllow all, deny all, or allow and deny by domain and CIDR, changeable on a running boxOpen internet, no provider-side allowlist
RegionsUS East, US West, Europe West and Southeast AsiaAWS us-east-1 on self-serve plans; custom regions on EnterpriseGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureGitHub CodespacesUpstash Boxboat
Full VM (own kernel)YesNo documented wayYes
Docker insideYesNot publishedYes
Nested virtualizationNot publishedNo documented wayYes
RootYesNot publishedYes
SystemdNot publishedNot publishedYes
Desktop GUIWith your own setupNo documented wayYes
BrowserNo documented wayYesYes
Computer-use APINo documented wayNo documented wayYes
SSHYesYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneNo documented wayYesYes
Live fork (no pause)No documented wayYesYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsNo documented wayYesYes
Idle auto-stopYesYesNo documented way
Wake on requestNo documented wayYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistNo documented wayYesNo documented way
Secret proxyNo documented wayYesYes
Secret proxy for any APINo documented wayYesYes
Preinstalled agentsNo documented wayYesYes
Agent harness APINo documented wayYesYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo 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 limitsYesNot publishedYes
Usage per sandbox (API)No documented wayYesYes
Audit logsYesNot publishedNo documented way
SSOYesNo documented wayNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayNo documented wayNo documented way
EU data residencyYesNo documented wayNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

GitHub CodespacesNot measured
Upstash BoxNot measured
boat28.06 runs/s

Neither GitHub Codespaces nor Upstash Box 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.

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 Upstash Box 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 monthUpstash Box, 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$21 · Pay as You Go$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$21 · Pay as You Go$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$900 · 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
$850 · Personal account: GitHub Free · with limits$306 · Pay as You Go$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$1,822 · Pay as You Go$8,800 · $2000/mo · with limits

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

Upstash Box: A standard box is billed for the CPU it actually uses, at $0.10, $0.20 or $0.40 per active CPU hour by size, plus $0.10 per GB-month of storage. RAM is not billed. A keep-alive box costs a flat $8, $16 or $32 a month whether busy or not.

Upstash Box: Plans cost $20, $100, $500 or $2,000 a month. The whole plan price comes back as VM time for that month, and it 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; saved snapshots above the plan's count and the AI credentials proxy still charge. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07. A card is required, also for the 7-day trial.

Limits in those scenarios

Codespaces stops every codespace after 12 hours, so it does not fit 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 there. Upstash does not document Docker inside a box, so the 50-agent scenario does not fit. Its egress price is not published, and keep-alive boxes bill every month whether used or not. boat's limit is starts: for 1,000 short jobs at once, even the $2,000 plan includes 90 starts a minute and 2,400 a day. Extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429. boat's always-on agent needs auto-stop turned off (default 1 hour).

ScenarioGitHub CodespacesUpstash Boxboat
One coding agent, workdaysNone for this scenario
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenario
One agent that never stops
  • Personal account: GitHub Free: sessions capped at 12 h
  • flat pool: the tier is billed whether used or not
  • egress price not published
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)
  • not confirmed: Docker inside
  • flat pool: the tier is billed whether used or not
  • egress price not published
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)
  • 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)
  • 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. Useful if your team lives on GitHub: open a ready dev container from any repo, branch or pull request in VS Code.
  • Free hours for personal accounts. Useful for occasional personal work: a GitHub Free account includes 120 core-hours and 15 GB-month of storage each month.
  • Big machines in more regions. Useful for heavy builds or teams outside the US: up to 32 cores, in US East, US West, Europe West and Southeast Asia.

Use Upstash Box when

your agents mostly wait, need to wake on an incoming request, must stay inside a strict outbound allowlist, or must run in the US, and do not need Docker.

  • Idle costs no CPU, and a request wakes the box. Good for agents that wait a lot: you pay only for CPU used, and a request to its URL wakes a paused box.
  • Outbound network rules. Useful when an agent may only reach a short list of domains or IP ranges, changeable on a running box.
  • Agents and big bursts built in. Claude Code, Codex, OpenCode and Cursor come built in, and Pay as You Go runs 1,000 boxes at once by default.

Where boat fits

If you run coding agents that build, test and keep working for hours, each option has a gap. Codespaces is a dev environment that stops at 12 hours, and Upstash does not document Docker inside a box. boat gives each agent a full VM with Docker, a desktop and agents you drive from outside. boat runs only in Germany, Finland and France, and caps starts per plan.

A whole Linux machine with Docker and /dev/kvm

Upstash does not document Docker inside a box, so the 50-agent scenario does not fit there. A codespace runs Docker through a dev container feature but documents no /dev/kvm, so emulators and microVMs are out. boat has Docker, systemd and /dev/kvm on every sandbox.

Machines that keep running and keep their work

A codespace stops at 12 hours even while in use, so a long agent task needs a restart script. Upstash disks stop at 10, 20 or 30 GB by size. boat has no session cap once auto-stop is off (default 1 hour), saves the disk every minute and forks running sandboxes. A resume is like a reboot, and a machine failure loses writes after the last good snapshot.

A desktop the agent can see

On Codespaces you configure a noVNC desktop add-on and the control layer yourself. Upstash has a managed browser with a view-only live view and no desktop. boat streams a 60fps desktop with computer tools. Its optional paid credentials proxy keeps real model keys out of the sandbox.

Use boat when your agents need a full VM: Docker, emulators, a desktop, a disk above 30 GB, and services that keep running once auto-stop is off. boat runs only in Germany, Finland and France, and caps starts per plan. Compare it one to one: boat vs GitHub Codespaces and boat vs Upstash Box.

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 Upstash Box?

In the scenarios we priced, Upstash costs less. One coding agent on workdays is $21 a month against $51. One agent running all month is $21 against $270, and Codespaces also needs a restart every 12 hours. 50 agents come to $3,019 on Codespaces and $900 on Upstash, which does not fit because it does not document Docker inside a box. boat is $20, $26 and $317 for the same three.

Which is faster, Codespaces or Upstash Box?

Neither is in the public CPU benchmark we use, so we cannot say. 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. boat does not promise a CPU model.

Can GitHub Codespaces or Upstash Box run Docker?

Codespaces can: Docker works inside the dev container through a dev container feature, and you have sudo. GitHub does not document /dev/kvm. Upstash does not document Docker inside a box, which is itself a Docker container. Every boat sandbox has Docker, systemd and /dev/kvm.

Can I run an AI agent 24/7 on Codespaces or Upstash Box?

Not on Codespaces without restarts: a codespace stops after 12 hours at most, even while in use. On Upstash a keep-alive box stays on all month for a flat price. boat has no session cap once auto-stop is off on a paid plan (default 1 hour). A stopped boat sandbox keeps its disk for at least 14 days.

Where do Codespaces and Upstash Box run?

Codespaces runs in US East, US West, Europe West and Southeast Asia. Upstash Box runs in AWS us-east-1, with custom regions on Enterprise. boat runs on machines in Germany, Finland and France; you cannot pick a region, and snapshot copies can be stored outside the EU.

Is boat SOC 2 compliant?

SOC 2 is in progress, so there is no SOC 2 report today. Live status is 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