OpenAI Containers vs Azure Container Apps Sandboxes
OpenAI Containers are a tool inside OpenAI's model API: the model runs code in a box with no sudo, and by default the box expires after 20 minutes without use. Azure Container Apps Sandboxes are microVMs in your Azure subscription that you create, suspend with their memory and resume through an SDK.
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.
Azure Container Apps Sandboxes
Azure Container Apps Sandboxes is a service inside Microsoft Azure that gives each agent or user an isolated microVM you create, suspend and resume through an SDK.
It is part of Azure Container Apps, the hyperscaler's serverless container platform, and lives in your Azure subscription as a sandbox group resource. Each sandbox boots from an OCI image or a snapshot and has its own kernel. A stop keeps the disk, or the disk and the memory, and a memory-mode sandbox resumes in under a second. It is built for teams already on Azure that want stateful code execution with Azure networking, identity and billing.
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 | Azure Container Apps Sandboxes: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A coding agent that installs packages and runs Docker for days loses its files when an OpenAI container expires. Azure keeps the disk, with Docker on images such as azure-dev. boat adds SSH, /dev/kvm and a desktop. | 357th of 365, with limits $17,371 a month | 33rd cheapest of 365 $5,276 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An OpenAI container expires after its idle time (20 minutes by default, settable with expires_after). Azure and boat both keep the machine; on Azure the lowest always-on price needs a 3-year savings plan. boat adds a desktop and SSH. | 344th of 361, with limits $13,140 a month | 52nd cheapest of 361 $6,780 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 the job OpenAI Containers are built for. Azure fits it well too, with short runs that suspend with their memory and resume in under a second. | 198th of 336, with limits $6,000 a month | 39th cheapest of 336 $354 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 Azure fits sandboxes for your users, with public HTTPS ports and memory suspend; its default quota of 300 active cores per region needs a raise for 300 sandboxes. OpenAI documents no inbound ports for hosted containers. | 349th of 349, with limits $3,780 a month | 32nd cheapest of 349 $2,260 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 | 158th of 349, with limits $10,740 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 Evals need open internet and a clean machine per run. Azure gives both. OpenAI's Code Interpreter and Hosted Shell containers have no outbound access until an admin allows domains. | 355th of 359, with limits $5,760 a month | 85th cheapest of 359 $1,728 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 needs Docker, root and open internet. OpenAI documents no Docker or root for hosted containers. Azure has Docker on images that ship it. boat also has /dev/kvm for Android builds. | 347th of 374, with limits $1,728 a month | 108th cheapest of 374 $1,046 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A dev box you SSH into and keep all month fits neither well: OpenAI documents no SSH and discards files on expiry, and Azure gives a shell through its aca CLI, SDK or portal. | 365th of 371, with limits $1,051 a month | 327th of 371, with limits $262 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 inside the Agents API beta. Azure ships no desktop image; you build one into your own OCI image. boat streams a 60fps desktop built in. | 353rd of 367, with limits $5,280 a month | 58th cheapest of 367 $1,573 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 | 335th of 356, with limits $1,440 a month | 129th of 356, with limits $795 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 | 112th cheapest of 343 $561 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 | 240th of 327, with limits $10,956 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 | 30th cheapest of 351 $517 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 | Azure Container Apps Sandboxes | boat |
|---|---|---|---|
| What it is | A sandbox tool the model uses inside OpenAI's API | A microVM compute type inside Azure Container Apps, managed through an SDK | A cloud VM you create, keep, stop and reach from outside |
| Isolation | A fully sandboxed virtual machine; hypervisor not named | MicroVM per sandbox with its own kernel | Full VM with its own kernel on AMD Ryzen hosts dedicated to boat; vCPUs are shared |
| Root and Docker | Hosted commands do not run with sudo; no Docker documented; the Agents API can drive a sandbox you host | Depends on the image: azure-dev ships Docker on systemd; the default ubuntu image has only Buildah; you can import your own image | Root, systemd and Docker on every sandbox; you cannot boot your own Docker image |
| Nested virtualization | Not documented | Not documented | /dev/kvm for Android emulators and VMs |
| Machine size | 1, 4, 16 or 64 GB of memory; vCPU not published | Seven tiers from 0.25 cores / 0.5 GiB to 16 cores / 32 GiB | 4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB on the $100 plan and above |
| Files after the session | Data is discarded when the container expires; the Agents API keeps files in /workspace/outputs as downloadable artifacts | Stop keeps the disk, or the disk and memory; a memory-mode resume takes under a second with processes running | Disk saved every minute and at stop; no compute charge while stopped; disk kept at least 14 days; memory is not saved |
| Lifetime and idle | Expires after 20 minutes without use by default; expires_after can set a longer idle time | No session cap; auto-suspends after an idle timeout (default 5 minutes) and wakes on traffic | Auto-stop defaults to 1 hour, up to 30 days or off on a paid plan; the timer does not watch for idle |
| Fork | No fork call documented; you create a new container and upload the same files | Snapshot a running sandbox with its memory and create new sandboxes 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 | Public HTTPS routes per published port; private endpoint from your VNet; shell through the aca CLI, SDK or portal; SSH not documented | SSH, up to 50 HTTPS URLs token-gated by default, raw ports over public IPv6 |
| Outbound internet | Code Interpreter and Hosted Shell: off until an admin sets a domain allowlist; Agents API sandboxes open by default | Egress policy that can allow, deny or rewrite requests by host, path and method; VNet integration | Open internet; 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 | An egress Transform rule adds a secret or managed-identity token as a header outside the sandbox, one rule per host; built-in Copilot and Claude connections put tokens inside | Optional AI credentials proxy ($1 a day plus $1 per 1,000 requests) for supported providers; other secrets still enter |
| Coding agents | Agents API (beta) drives a managed Codex harness from outside | Copilot CLI and Claude Code images, run through the exec API | Seven harnesses installed, among them Claude Code and Codex, with a prompt, steer and events API |
| Desktop and computer use | Hosted browser for the Agents API computer_use tool | No desktop or browser in the public images; you can build one into your own OCI image | 60fps Linux desktop, Chromium and computer tools built in, embeddable stream |
| Regions | US or EU processing for Code Interpreter; Agents API data residency in the US only | 40 Azure regions, 9 of them in the EU | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | OpenAI Containers | Azure Container Apps Sandboxes | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | No documented way | Yes | Yes |
| Nested virtualization | No documented way | Not published | Yes |
| Root | No documented way | Yes | Yes |
| Systemd | Not published | Yes | Yes |
| Desktop GUI | Yes | With your own setup | Yes |
| Browser | Yes | With your own setup | Yes |
| Computer-use API | Yes | No documented way | Yes |
| SSH | No documented way | No documented way | Yes |
| Persistent disk | No documented way | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | No documented way | Yes | Yes |
| Fork/clone | No documented way | Yes | Yes |
| Live fork (no pause) | No documented way | Yes | Yes |
| Memory fork | No documented way | Yes | 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 | No documented way | 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 | 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 | Yes | Yes |
| Usage per sandbox (API) | No documented way | Yes | Yes |
| Audit logs | Not published | Yes | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | Yes | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither OpenAI Containers nor Azure Container Apps Sandboxes is in the public benchmarks we use, so we cannot say which is faster, and OpenAI does not publish the vCPU behind each container size. boat did 28.06 V8 Web Tooling Benchmark runs/s 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. OpenAI Containers and Azure Container Apps Sandboxes 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 | Azure Container Apps Sandboxes, 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 | $68 · 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 | $262 · 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 | $11,405 · API pay as you go · with limits | $3,421 · Pay-as-you-go | $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 | $989 · 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 | $2,148 · 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 on top. There is no plan fee. The scenarios use the 16 GB size ($1.44 an hour) for 8 GB needs, because OpenAI does not publish the vCPU per size.
Azure Container Apps Sandboxes: Azure bills per second on the Container Apps Consumption meters for the vCPU and memory of the sandbox's tier while it runs, including idle time before auto-suspend (5 minutes by default). The XL tier (4 cores / 8 GiB) is $0.432 an hour at East US rates. Stopped sandboxes pay no CPU or memory, and there is no plan fee. Storage for images and snapshots is announced as billed per GiB.
Azure Container Apps Sandboxes: Plans cost $20, $100, $500 or $2,000 a month. The whole plan price comes back as VM time for that month, and 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, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07.
Limits in those scenarios
OpenAI Containers fit none of the five scenarios as written: hosted containers discard files when they expire, document no Docker, start Code Interpreter and Hosted Shell with no open internet, and publish no vCPU or concurrency cap, so 300 user sandboxes and a 1,000-job burst are unconfirmed. Azure fits four of the five. The always-on agent gets its lowest price ($262) only with a 3-year savings plan, Docker means an image such as azure-dev, and the default quota of 300 active cores per region caps a fleet until support raises it. boat fits four of the five. For the burst, the $2,000 plan bills starts above the 2,400 included a day ($8,800 a month), and starts above 270 a minute fail with 429; Azure costs $2,148 there, after a quota raise.
| Scenario | OpenAI Containers | Azure Container Apps Sandboxes | 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 | None for this scenario |
| Sandboxes for your users |
| None for this scenario | None for this scenario |
| 1,000 short jobs at once |
| None for this scenario |
|
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 or shell commands on files you give it.
- Built into the model call. For apps that already call OpenAI models: one tool line in a request gives the model a place to run code.
- Closed network by default. For code that must reach only chosen hosts: Code Interpreter and Hosted Shell have no outbound access until an admin allows domains.
- Your own compute. For teams that want the harness but not the hosting: the Agents API can drive a sandbox on machines you run.
Use Azure Container Apps Sandboxes when
your team already runs on Azure and wants stateful sandboxes from its own images that suspend with their memory, wake on traffic, sit behind strict egress rules, or run outside the EU.
- A machine that keeps its state. For stateful jobs that sleep between requests: a sandbox suspends with its memory and resumes in under a second.
- Fine-grained outbound rules. For agents held to set hosts: its egress policy can allow, deny or rewrite each request by host, path and method.
- Your own image, inside Azure, in 40 regions. For teams already on Azure: Entra ID, Azure billing, VNets and your own OCI images, in 40 regions on six continents.
Where boat fits
If your coding agents work for hours or days, look at boat. OpenAI Containers are a short-lived tool for the model, and Azure's sandboxes are microVMs you reach through its CLI, SDK and HTTPS ports. boat gives each agent a full VM with root, Docker, /dev/kvm, SSH and a desktop, with coding agents built in. boat runs only in the EU, has no GPU and limits starts per plan.
A whole machine it keeps
A hosted OpenAI container runs without sudo, documents no Docker, and discards its files when it expires. Azure keeps the disk and has Docker on some images, but documents no /dev/kvm, so Android emulators and nested VMs are not a supported path. boat has root, Docker and /dev/kvm on every sandbox.
Reachable and on screen
OpenAI documents no inbound ports for hosted containers. Azure publishes HTTPS ports and gives a shell through its CLI, with no documented SSH, and you build a desktop into your own image. boat has SSH, up to 50 HTTPS URLs, raw ports over IPv6 and a 60fps desktop.
Agents built in
OpenAI drives its own Codex harness, and Azure runs agent images through the exec API. boat installs seven harnesses with a prompt, steer and events API. Its optional paid proxy keeps the real keys of supported providers outside the sandbox.
Use boat when your agents need a whole computer for real work: root, Docker, /dev/kvm, SSH, a desktop and a disk saved every minute, with coding agents built in. Compare it one to one: boat vs OpenAI Containers and boat vs Azure Container Apps Sandboxes.
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 Azure Container Apps Sandboxes?
Not in the scenarios on this page. One coding agent on workdays comes to $228 a month on OpenAI and $68 on Azure, and 50 agents in parallel come to $11,405 against $3,421. OpenAI also bills model tokens on top. boat comes to $20 and $317 for the same two.
Which is faster?
Neither is in the public benchmarks we use, and OpenAI does not publish the vCPU behind its container sizes, so we cannot say. boat did 28.06 V8 Web Tooling runs/s at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on a Ryzen 9 9950X host.
Can OpenAI Containers or Azure sandboxes run Docker?
OpenAI's docs say hosted shell commands do not run with sudo, and Docker is not documented; the Agents API can drive a sandbox you host. On Azure, the azure-dev image ships Docker on systemd, the default ubuntu image has only Buildah, and you can import your own image. boat runs Docker on every sandbox and also exposes /dev/kvm.
How long does a sandbox last on each?
An OpenAI container expires after 20 minutes without use by default, and its data is discarded. An Azure sandbox has no session cap; it suspends when idle with its memory and disk and wakes on traffic. boat has no session cap once auto-stop is off on a paid plan (default 1 hour), and keeps a stopped sandbox's disk for at least 14 days.
Can I SSH into either?
OpenAI documents no SSH for hosted containers; you reach them through the API. Azure does not document SSH and gives an interactive shell through the aca CLI, the SDK or the portal. Every boat sandbox has SSH, up to 50 HTTPS URLs and raw ports over IPv6.
Is boat SOC 2 compliant?
SOC 2 is in progress, so there is no SOC 2 report today. No HIPAA BAA and no SAML SSO are documented. Live status is at status.ascii.dev and the data retention policy at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs OpenAI Containers
- boat vs Azure Container Apps Sandboxes
- 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