GitHub Codespaces vs OpenAI Containers
GitHub Codespaces gives a developer a Linux dev container with Docker and sudo for a GitHub repository. It keeps files between sessions and stops after 12 hours at most. OpenAI Containers are a tool inside OpenAI's model API: the model runs Python or shell commands in a short-lived box with no sudo. By default the box and its files go away after 20 minutes without use; the create call can set a different idle time.
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.
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. “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 workload | GitHub Codespaces: 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 Codespaces gives a coding agent Docker and a disk that stays, but stops it after 12 hours. A hosted OpenAI container runs without sudo and discards files when it expires; you can connect the Agents API to a sandbox you host. boat adds /dev/kvm and no session cap once auto-stop is off. | 290th of 365, with limits $4,618 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 fits neither as-is. A codespace stops after 12 hours. An OpenAI container expires after its idle time (20 minutes by default), and its files go with it. boat has no session cap once auto-stop is off on a paid plan (default 1 hour). | 320th of 361, with limits $6,970 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 This is what OpenAI Containers are built for: the model runs its code in the same API call. A codespace builds a dev container on a new VM first. On boat each start counts against the plan's start cap. | 283rd of 336, with limits $619 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 A codespace belongs to a GitHub user on a repository, and OpenAI documents no inbound ports for hosted containers. boat gives each sandbox SSH and token-gated URLs for up to 50 ports. | 276th of 349, with limits $1,964 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 | 276th of 349, with limits $9,489 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 | 295th of 359, with limits $1,519 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 Codespaces has Docker and open internet but no fork or snapshot API. OpenAI documents no Docker or root for hosted containers, and Code Interpreter has no internet until an admin allows domains. boat has Docker, root and /dev/kvm; each CI job counts as a start. | 317th of 374, with limits $909 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 Codespaces is the better dev box of the two: a polished VS Code environment per repo, though it stops after 12 hours at most. Hosted OpenAI containers document no SSH. boat keeps the disk across stops for at least 14 days. | 144th of 371, with limits $270 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 A codespace can add a basic noVNC desktop through the desktop-lite add-on. OpenAI has a hosted browser in the Agents API beta. boat streams a 60 fps desktop you can embed in your app. | 297th of 367, with limits $1,367 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 | 306th of 356, with limits $678 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 | 324th of 343, with limits $922 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 | 279th of 327, with limits $18,637 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 boat can fork one prepared sandbox into many while it runs; each fork counts as a start. On Codespaces every copy starts again from the repository. OpenAI documents no fork call; you create a new container and upload the same files. | 284th of 351, with limits $445 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 | GitHub Codespaces | OpenAI Containers | boat |
|---|---|---|---|
| What it is | A cloud dev environment for a GitHub repository, opened in VS Code, the browser or the CLI | A sandbox tool the model uses inside OpenAI's API | A cloud VM you create, keep, stop and reach from outside, driven from code |
| Isolation | A Docker container on its own newly built VM, with its own virtual network | A fully sandboxed virtual machine; hypervisor not named | Full VM with its own kernel, on boat's own AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; shared vCPUs |
| Root, Docker and nested virtualization | Docker and sudo inside the dev container; /dev/kvm not documented | Commands do not run with sudo; Docker and /dev/kvm not documented; the Agents API can drive a sandbox you host | Root, systemd, Docker and /dev/kvm on every sandbox |
| How long it runs | Stops after 30 idle minutes by default (up to 240) and after 12 hours at most, even while in use | Expires after 20 minutes without use by default; expires_after can be set on create, no maximum published | No cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days |
| Files after a stop | Files are kept and storage is billed; stopped codespaces are deleted after 30 days by default | Data is discarded when the container expires; Agents API keeps files in /workspace/outputs as downloadable artifacts | Disk saved every minute and at each stop; no compute charge while stopped; disk kept at least 14 days, longer with a saved snapshot |
| Fork and snapshots | No copy or snapshot endpoint; new codespaces start from a repo, branch, pull request or prebuild | No fork call documented; create a new container and upload the same files | Fork a running sandbox from its last 1-minute disk snapshot; saved snapshots as templates |
| Starting image | Dev container config in the repository, with prebuilds built by GitHub Actions | Fixed Debian 12 image; you upload files or skills into each container | boat's image or a saved snapshot, shareable by code; you cannot boot your own Docker or OCI image |
| Machine size | 2, 4, 8, 16 or 32 cores, with 4 GB of memory per core | 1, 4, 16 or 64 GB of memory; vCPU not published. Agents API sandboxes: up to 4 vCPU / 16 GB | 4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB (needs the $100 plan) |
| Reaching it from outside | A URL per forwarded port and SSH through the GitHub CLI; no public IP | No inbound ports documented for hosted containers; you reach them through the API | SSH and up to 50 HTTPS URLs, token-gated by default; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound internet | Open internet; GitHub says there is no way to restrict it | Code Interpreter and Hosted Shell: off until an admin sets an org domain allowlist. Agents API: on by default, can be limited to 1 to 100 hosts | Open internet; no provider-side allowlist |
| Keeping API keys out of the sandbox | Secrets are copied into the codespace as environment variables | domain_secrets: a sidecar adds the real header for approved domains, the model sees a placeholder | Optional AI credentials proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs; other secrets still enter the sandbox |
| Coding agents | GitHub Copilot as a VS Code extension; other agents you install and run yourself | Agents API (beta) drives a managed Codex harness from outside, with steering, events and webhooks | Seven harnesses installed, among them Claude Code and Codex, with a prompt, steer and events API |
| Desktop and computer use | VS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite add-on, which you configure | Hosted browser for the Agents API computer_use tool | Built-in desktop and Chrome at 1920x1080 and 60 fps, computer tools for agents and an embeddable stream |
| Regions | US East, US West, Europe West and Southeast Asia | US or EU processing for Code Interpreter; Agents API can drive a sandbox you host | Germany, Finland and France; you cannot pick one; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | GitHub Codespaces | OpenAI Containers | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | No documented way | Yes |
| Nested virtualization | Not published | No documented way | Yes |
| Root | Yes | No documented way | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | With your own setup | Yes | Yes |
| Browser | No documented way | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | No documented way | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | No documented way | No documented way | Yes |
| Live fork (no pause) | No documented way | No documented way | Yes |
| Memory fork | No documented way | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | No documented way | Yes |
| ≥24 h sessions | No documented way | Yes | Yes |
| Idle auto-stop | Yes | 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 | No documented way | 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) | No documented way | No documented way | Yes |
| Audit logs | Yes | 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 | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
GitHub Codespaces and OpenAI Containers are not in the public benchmarks we use, and OpenAI does not publish the vCPU behind each container size, 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 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 | GitHub Codespaces, 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 | $51 · Personal account: GitHub Free | $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 | $270 · Personal account: GitHub Free · 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 | $3,019 · Personal account: GitHub Free | $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 | $850 · Personal account: GitHub Free · 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 | $1,889 · Personal account: GitHub Free · with limits | $6,000 · API pay as you go · 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.
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 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. 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
A codespace stops after 12 hours at most, so it does not fit the always-on scenario without a restart script. GitHub does not publish how many codespaces can run at once, so 300 user sandboxes and 1,000 short jobs are not confirmed. OpenAI Containers fit none of the five scenarios as written: hosted containers discard files when they expire, document no Docker or root, and do not publish vCPU, and Code Interpreter and Hosted Shell have no internet until an admin allows domains. 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.
| Scenario | GitHub Codespaces | OpenAI Containers | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| 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 GitHub Codespaces when
your developers want a ready VS Code environment for a GitHub repository, with Docker and files that stay between sessions, 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.
- A real workspace that keeps your files. Useful for developers: a codespace has sudo, Docker and a disk that stays between sessions. Hosted OpenAI containers run without sudo and discard files when they expire.
- 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.
Use OpenAI Containers when
your app already calls OpenAI models and the model only needs to run short pieces of Python or shell 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.
- No plan and nothing to clean up. Useful for occasional runs: you pay by the minute for each session, with a 5-minute minimum, and an idle container expires on its own.
Where boat fits
If you run coding agents that work for hours or days, each has a limit to plan around. Codespaces is a dev box for people that stops at 12 hours. A hosted OpenAI container discards its files when it expires. boat gives each agent a full VM that keeps its disk across stops and has no session cap once auto-stop is off on a paid plan (default 1 hour). boat has no memory pause and no US or Asia region, and caps starts per plan.
A whole machine with no session cap
A codespace stops at 12 hours even while in use, so you need a restart script, and its processes end. A hosted OpenAI container runs without sudo, documents no Docker, and discards its files when it expires. boat has root, Docker and /dev/kvm, and runs until you stop it once auto-stop is off.
Reachable from outside, with a desktop
OpenAI documents no inbound ports for hosted containers. Codespaces forwards ports but documents no /dev/kvm, and its desktop is an add-on you configure. boat has SSH, up to 50 token-gated HTTPS URLs and a 60 fps desktop. Its IP changes at each resume.
Any agent, driven from outside
On Codespaces you start and watch each agent over SSH, with API keys in environment variables. OpenAI's Agents API drives its own Codex harness. boat installs seven harnesses with one API. Its optional paid proxy keeps the real keys of supported providers outside the sandbox.
Use boat when your agents do hours of installs, builds, tests, Docker, emulators and browser work on a machine that keeps its disk across stops, with built-in coding agents and HTTPS URLs. 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 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 GitHub Codespaces cheaper than OpenAI Containers?
In the scenarios we priced, yes. One coding agent on workdays is $51 a month on Codespaces against $228 on OpenAI, and 50 agents in parallel come to $3,019 against $11,405. OpenAI is priced at its 16 GB size because it does not publish vCPU, and it bills model tokens on top. boat comes to $20 and $317 for the same two. For a few short runs a month, OpenAI has no plan fee, and boat starts at $20.
Which is faster, Codespaces or OpenAI Containers?
Neither is in the public benchmarks we use, and OpenAI does not publish vCPU per container size, 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.
Can GitHub Codespaces or OpenAI Containers run Docker?
Docker works inside a codespace through dev container features, and you have sudo. OpenAI's docs say hosted shell commands do not run with sudo, and Docker is not documented; you can connect the Agents API to a self-hosted sandbox instead. Every boat sandbox has root, Docker, systemd and /dev/kvm.
How long can each one run?
A codespace stops after 30 idle minutes by default and after 12 hours at most, even while in use, but keeps its files. By default an OpenAI container expires after 20 minutes without use, and its data is discarded; expires_after can set a longer idle time. boat has no session cap once auto-stop is off on a paid plan (default 1 hour).
Can I open a web app running inside either one?
In a codespace, yes: each forwarded port gets a URL that can be private, organization-wide or public. OpenAI documents no ports, URLs or SSH for hosted containers. boat gives each sandbox SSH and up to 50 HTTPS URLs, token-gated by default.
Is boat SOC 2 compliant?
SOC 2 is in progress, so there is no SOC 2 report today. boat's live status is at status.ascii.dev and its data retention policy is at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs GitHub Codespaces
- boat vs OpenAI Containers
- E2B vs GitHub Codespaces
- Daytona vs GitHub Codespaces
- Modal vs GitHub Codespaces
- Vercel Sandbox vs GitHub Codespaces
- Cloudflare Sandbox vs GitHub Codespaces
- Blaxel vs GitHub Codespaces
- Runloop vs GitHub Codespaces
- Tensorlake vs GitHub Codespaces
- Morph Cloud vs GitHub Codespaces
- CodeSandbox SDK vs GitHub Codespaces