OpenAI Containers vs Upstash Box
OpenAI Containers are a tool inside OpenAI's model API: the model runs code in a short-lived container that, by default, expires after 20 idle minutes. Upstash Box is a cloud computer for an agent: a container with coding agents built in that pauses when idle and keeps its files.
The companies and products
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.
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. “357th cheapest of 365” means 356 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 | OpenAI Containers: price rank | Upstash Box: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Neither fits fully. Hosted OpenAI containers document no Docker or root and discard files when they expire. An Upstash box is itself a container and documents no Docker inside; custom images are listed as coming soon. boat runs Docker on a full VM. | 357th of 365, with limits $17,371 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 Upstash keep-alive box can stay on all month for a flat fee. By default an OpenAI container expires after 20 idle minutes. boat keeps a full VM with systemd services and a desktop, once auto-stop (default 1 hour) is off on a paid plan. | 344th of 361, with limits $13,140 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 This is what OpenAI Containers are built for, inside the model call. Upstash also fits short runs well, since an idle box costs no CPU. On boat each run counts against the plan's start limits. | 198th of 336, with limits $6,000 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 wakes a user's paused box on the next request to its URL. OpenAI documents no inbound ports for hosted containers. boat gives each user a full VM with token-gated URLs, and keeps a stopped sandbox's disk for at least 14 days. | 349th of 349, with limits $3,780 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 | 195th of 349, with limits $30,000 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 | 355th of 359, with limits $5,760 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 need Docker, root and open internet. Hosted OpenAI containers document no Docker or root and start Code Interpreter with no internet. Upstash documents no Docker inside a box. boat has Docker and /dev/kvm; each CI job counts as a start. | 347th of 374, with limits $1,728 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 Upstash's flat-price keep-alive box makes a light dev box you can SSH into. Hosted OpenAI containers document no SSH and keep no disk. boat's dev box is a full VM. | 365th of 371, with limits $1,051 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 OpenAI has a hosted browser for computer use in the Agents API beta. Upstash has a managed Chromium with a view-only live stream, and no desktop or VNC. boat streams a full 1920x1080 Linux desktop at 60 fps with computer tools. | 353rd of 367, with limits $5,280 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 Upstash ships a managed Chromium with AI page actions, CDP and recordings. OpenAI's hosted browser runs with its own Codex harness. boat gives the agent a desktop browser it can see and click. | 335th of 356, with limits $1,440 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 | 334th of 343, with limits $1,755 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 | 307th of 327, with limits $35,100 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 | 310th of 351, with limits $870 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 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 | OpenAI Containers | Upstash Box | boat |
|---|---|---|---|
| What it is | A sandbox tool the model uses inside OpenAI's API | A cloud computer for an agent, with coding agents built in | A cloud VM you create, keep, stop and reach from outside |
| Isolation | A fully sandboxed virtual machine; hypervisor not named | Docker container per box on AWS | Full VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Root and Docker inside | Commands do not run with sudo; Docker is not documented. You set it up: connect the Agents API to a self-hosted sandbox | Docker inside is not documented; the box is itself a Docker container, and custom images are listed as coming soon | Root, systemd and Docker in every sandbox |
| Nested virtualization | /dev/kvm not documented | Not documented; boxes are containers | /dev/kvm on every sandbox for Android emulators and VMs |
| Machine size | 1, 4, 16 or 64 GB of memory; vCPU not published | Small 2 vCPU / 4 GB, Medium 4 vCPU / 8 GB, Large 8 vCPU / 16 GB; custom sizes on Enterprise | 4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB (xlarge needs the $100 plan) |
| Files after the session | Data is discarded when the container expires. Agents API publishes files in /workspace/outputs as downloadable artifacts | Pauses after 6 hours idle on paid plans and keeps its files; storage keeps billing while paused; 10, 20 or 30 GB disk by size | Disk saved every minute and at each stop; 51 GB at the default size; kept for at least 14 days after a stop |
| Lifetime | By default expires after 20 minutes without use; expires_after can set a longer idle time | No session cap documented; keep-alive boxes stay on all month | Auto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no session cap |
| Wake on request | No | Yes; a request to a public URL resumes a paused box and waits for the app | No; a stopped sandbox is resumed by API, and a resume is like a reboot |
| Fork | No fork call documented. You set it up: create a new container and upload the same files | Snapshot a running box and start many new boxes from it | Fork a running sandbox from its last 1-minute disk snapshot |
| Inbound access | No inbound ports documented for hosted containers; you reach them through the API | HTTPS URL per port, public unless you add a token or basic auth; SSH through a gateway; no raw TCP documented | SSH, token-gated HTTPS URLs for up to 50 ports, raw TCP (IPv6 only on sandboxes without their own IPv4) |
| Outbound network | Code Interpreter and Hosted Shell: off until an admin sets a domain allowlist. Agents API sandboxes: on by default, can be limited to 1 to 100 hosts | Allow all, deny all, or allow and deny by domain and CIDR, changeable on a running box | Open internet on every plan; no provider-side allowlist |
| Keeping API keys out of the sandbox | domain_secrets: a sidecar adds the real header for approved domains, the model sees a placeholder | Host proxy injects headers into outbound HTTPS on port 443 for any host; set when the box is created | Optional AI credentials proxy ($1 per day on, plus $1 per 1,000 requests) for model providers and custom HTTPS APIs |
| Coding agents | Agents API (beta) drives a managed Codex harness from outside | Claude Code, Codex, OpenCode and Cursor built in, plus custom agents, with run and stream APIs, webhooks and scheduled prompts | Seven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Desktop and computer use | Hosted browser for the Agents API computer_use tool | Managed Chromium with AI page actions, CDP, screenshots, recordings and a view-only live stream; no desktop or VNC | Built-in 1920x1080, 60 fps desktop and Chrome, computer tools for agents, embeddable stream |
| Regions | US or EU processing for Code Interpreter | AWS us-east-1; custom regions on Enterprise | Germany, Finland and France; you cannot pick a region, and there is no US or Asia region |
Every feature Battleships tracks (43)
| Feature | OpenAI Containers | Upstash Box | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | No documented way | Yes |
| Docker inside | No documented way | Not published | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | No documented way | Not published | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | Yes | No documented way | Yes |
| Browser | Yes | Yes | Yes |
| Computer-use API | Yes | No documented way | Yes |
| SSH | No documented way | Yes | Yes |
| Persistent disk | No documented way | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | No documented way | Yes | Yes |
| Live fork (no pause) | No documented way | Yes | Yes |
| Memory fork | No documented way | No documented way | No documented way |
| Custom image (Docker or snapshot) | No documented way | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | No documented way | Yes | No documented way |
| HTTPS preview URLs | No documented way | 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 | Yes | No documented way |
| Secret proxy | Yes | Yes | Yes |
| Secret proxy for any API | Yes | Yes | Yes |
| Preinstalled agents | No documented way | Yes | Yes |
| Agent harness API | Yes | Yes | Yes |
| MCP server | No documented way | Yes | 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 | Yes | No documented way |
| Self-hosting | Yes | No documented way | 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 | Not published | Not published | Yes |
| Usage per sandbox (API) | No documented way | Yes | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | Yes | No documented way | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | No documented way | No documented way |
| EU data residency | Yes | No documented way | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither OpenAI Containers nor Upstash Box is in StarSling's CPU benchmark, so we cannot say which is faster. OpenAI does not publish the vCPU behind each container size. 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. ComputeSDK measured Upstash Box at its default size: a median of 2.34 s to the first command with 100 at once (2026-11-06), and 445 ms one at a time (2026-08-07). boat is 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. OpenAI Containers 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.
| Scenario | OpenAI Containers, a month | Upstash Box, 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 | $228 · API pay as you go · with limits | $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 | $1,051 · API pay as you go · 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 | $11,405 · API pay as you go · with limits | $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 | $1,620 · API pay as you go · 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 | $6,000 · API pay as you go · with limits | $1,822 · Pay as You Go | $8,800 · $2000/mo · with limits |
OpenAI Containers: OpenAI bills each container session by the minute for the memory size you pick, with a 5-minute minimum, and model tokens are billed separately on top. There is no plan fee. The scenarios use the 16 GB size for 8 GB needs, because OpenAI does not publish the vCPU per size.
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 for Small, Medium and Large, plus $0.10 per GB-month of storage, snapshots included. RAM is free, and Pay as You Go has no monthly fee. A keep-alive box costs a flat $8, $16 or $32 a month whether it is busy or not.
Upstash Box: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07 each. A stopped sandbox has no compute charge. Saved snapshots above the included count and the AI credentials proxy still charge while sandboxes are stopped. A nearly idle agent can cost less on Upstash, which bills only busy CPU.
Limits in those scenarios
OpenAI Containers fit none of the five scenarios as written: hosted containers discard files when they expire, document no Docker or root, start Code Interpreter and Hosted Shell with no internet, and publish no vCPU per size. Upstash fits four of them. It does not fit 50 agents in parallel, because it documents no Docker inside a box, and its egress price is not published. boat does not fit the 1,000-job burst: 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). If a boat machine fails, you lose what was written after the last 1-minute snapshot.
| Scenario | OpenAI Containers | Upstash Box | 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 OpenAI Containers when
your app already calls OpenAI models and the model only needs to run short pieces of code 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.
- Network off by default. Useful if model code must not reach the internet: Code Interpreter has no outbound access until an admin allows domains.
- US or EU, or your own compute. Code Interpreter can process data in the US or Europe, and the Agents API can drive a sandbox you host.
Use Upstash Box when
your agents mostly wait, keep their files between sessions, need to wake on an incoming request, need strict outbound rules, or run as big bursts in the US.
- A box that keeps its files. Good for agents that work over days: a box pauses when idle, keeps its files and resumes later.
- Idle costs no CPU, a request wakes it. Good for agents that wait a lot: you pay only for CPU used, and a request to its URL wakes a paused box.
- Big bursts. Runs 1,000 boxes at once on Pay as You Go with no published start limit, so a burst of short jobs can start at once.
Where boat fits
If your agents need a real machine rather than a code runner or a container, boat fits. Each sandbox is a full VM with root, Docker and /dev/kvm, a disk kept across stops, ports you can reach and a 60 fps desktop. Of the three, only boat fits this page's 50-agent scenario, which needs Docker inside. boat's own limits: start caps per plan, EU hosts only, and a $20 monthly minimum.
Docker and root on a full VM
Agents that run a database in Docker or build an image need Docker inside. OpenAI runs commands without sudo and documents no Docker; there you host your own sandbox. An Upstash box is itself a container and documents no Docker inside.
A disk that stays, and room to work
An OpenAI container discards its files when it expires. Upstash keeps files, with 10 to 30 GB of disk by size. boat saves a 51 GB disk every minute at the default size, and a stopped sandbox has no compute charge.
A desktop and ports you can reach
OpenAI documents no inbound ports for hosted containers. Upstash has HTTPS URLs and a managed browser with a view-only stream. boat gives SSH, token-gated HTTPS on 50 ports, raw TCP and a 60 fps desktop agents can click.
Use boat when your agents need a real machine: root, Docker and /dev/kvm, a disk kept across stops, a built-in desktop and ports you can reach, for as long as the work takes. Compare it one to one: boat vs OpenAI Containers 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 OpenAI Containers cheaper than Upstash Box?
Not in the scenarios on this page: one coding agent on workdays comes to $228 a month on OpenAI and $21 on Upstash, and one agent that never stops comes to $1,051 against $21. OpenAI also bills model tokens on top. boat comes to $20 and $26 for those two.
Which is faster, OpenAI Containers or Upstash Box?
Neither is in StarSling's CPU benchmark, so we cannot say. ComputeSDK measured Upstash Box at a median of 445 ms to the first command one at a time (2026-08-07). boat is not in ComputeSDK; it did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026.
Can OpenAI Containers or Upstash Box run Docker?
OpenAI documents no Docker, and its hosted shell commands do not run with sudo; the Agents API can drive a sandbox you host instead. An Upstash box is itself a Docker container, and its docs do not offer Docker inside it. boat sandboxes are full VMs with root, systemd and Docker.
Do files survive between sessions?
On hosted OpenAI containers, no: data is discarded when the container expires. An Upstash box pauses when idle and keeps its files, and its storage keeps billing. boat saves the disk every minute and at each stop, and keeps it for at least 14 days after a stop.
Can I open a web app running inside the sandbox?
OpenAI documents no inbound ports for hosted containers. Upstash gives an HTTPS URL per port and SSH through a gateway. boat gives token-gated HTTPS URLs for up to 50 ports, raw TCP and SSH.
Where do they run?
Code Interpreter can process data in the US or Europe. 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.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs OpenAI Containers
- boat vs Upstash Box
- E2B vs OpenAI Containers
- Daytona vs OpenAI Containers
- Modal vs OpenAI Containers
- Vercel Sandbox vs OpenAI Containers
- Cloudflare Sandbox vs OpenAI Containers
- Blaxel vs OpenAI Containers
- Runloop vs OpenAI Containers
- Tensorlake vs OpenAI Containers
- Morph Cloud vs OpenAI Containers
- CodeSandbox SDK vs OpenAI Containers