Skip to content

AI agent sandbox providers compared (2026): pricing, limits, saved state and spend caps

Nine sandbox providers for AI agents compared on how they bill, how long a sandbox may run, how many run at once, what state they keep and how you cap spend, with every vendor fact read on the vendor's own pages.

The AI agent sandbox providers compared here, as of 24 November 2026, are nine: Promigence, Modal, Vercel Sandbox, Cloudflare® Sandboxes, Fly.io Sprites, Amazon Bedrock AgentCore, Blaxel, Beam, Koyeb. They differ most in how they bill, how long one sandbox may run, how many run at once, what state they keep between runs and how you put a ceiling on spend. Our own product, Promigence, comes first. Facts about the others were all read on each vendor's own pages on 24 November 2026, and the pages are listed under Sources.

Key takeaways#

  • Billing comes in several shapes. On Promigence you pay for the size you start, per second, and on Beam by the millisecond while a sandbox runs. Modal charges the higher of what a Sandbox requested and what it used. Charges for CPU apply only while code uses it on Vercel and Cloudflare, as on AgentCore, and Fly charges CPU and memory on actual use, so agents that mostly wait on a model cost less there.
  • A session stops at 24 hours on Modal and on Vercel Pro, and at 8 hours on AgentCore's Code Interpreter. Cloudflare sets no fixed maximum runtime, and Fly calls Sprites "exactly as persistent and disposable as you want them to be".
  • Concurrency is set per plan or per account: 100 containers on Modal's Starter plan and 5,000 on Team, 10,000 sandboxes on Vercel Pro, 15,000 vCPU per account by default on Cloudflare, 1,000 Code Interpreter sessions on AgentCore, and 30 vCPU at once on Beam's Developer plan or 1,000 on Team. Limits on Promigence are set per account and raised on request (limits).
  • Saved state varies. Many sandboxes start from one saved snapshot on Promigence and on Modal, and the same goes for Vercel's fork and for Beam, whose sandboxes pick up "exactly where the episode left off". Checkpoints on Fly keep the disk only, and AgentCore sessions start fresh.
  • A price for a run before it starts, with a hard cap, is stated only by Promigence among the providers on this page. At a monthly spend limit Modal stops workloads, and Beam does when a prepaid balance runs out, while Vercel's Pro spend settings and Cloudflare's budget alerts notify without stopping usage and Fly's docs say billing alerts are not supported yet.
  • Runloop is winding down: transition support for existing customers ended on 13 November 2026, according to its docs.

At a glance: billing and limits#

ProviderHow time is billedPublished rateLongest sessionAt once on the entry plan
PromigencePer second, for the size you startBilled per second (pricing)Set by your account's limits (limits)Set by your account's limits
ModalPer second, on the higher of request and use$0.00003942 per core (2 vCPU) per second, $0.00000667 per GiB per second5 minutes by default, up to 24 hours100 containers on Starter, 5,000 on Team
Vercel SandboxActive CPU, plus provisioned memory in 1-minute minimum increments$0.128 per active CPU-hour, $0.0212 per GB-hour, $0.60 per million creations (iad1)45 minutes on Hobby, 24 hours on Pro10 on Hobby, 10,000 on Pro
Cloudflare SandboxesEvery 10 ms while running: CPU on use; memory and disk as provisioned$0.000020 per vCPU-second, $0.0000025 per GiB-second, past the usage a $5 monthly plan includesNo fixed maximum runtime15,000 vCPU per account by default
Fly.io SpritesCPU and memory on actual use; idle Sprites pay for storage only$0.0385 per CPU-hour, $0.021875 per GB-hourAs long as you want, per Fly's Sprites page100 running on the Hero plan
AgentCore Code InterpreterPer second; CPU on use, memory at its peak so far$0.0895 per vCPU-hour, $0.00945 per GB-hour15 minutes by default, up to 8 hours1,000 sessions per account
BlaxelAllocated memory while active; CPU not charged separately$0.0000115 per GB of RAM per second7 days on the free tier, none from Tier 210 on the free tier, 200 at Tier 2
BeamBy the millisecond while running$0.05 per vCPU-hour, $0.01 per GiB-hour (default Performance tier)600 seconds by default; -1 for no timeout30 vCPU on Developer, 1,000 on Team
Koyeb (public preview)Per second by instance type, rounded upFrom $0.0288 an hour for 2 vCPU and 2 GBNot stated; auto-deletion can be set up to 24 hoursCPU concurrency of 100 on Pro

At a glance: saved state, network rules and spend control#

ProviderState kept between runsOutbound network controlSpend control
PromigenceSnapshots checked by a verify command, named by a hash of their contents, kept until deleted; a paused sandbox is kept 30 daysNo network, or a list of allowed hosts, per runA quote before each run and a hard cap on it; a monthly cap per project
ModalFilesystem Snapshots, 30 days by default; Memory Snapshots in alpha, 7 daysBlock all, an IP-range allowlist, or a domain allowlist (beta)Monthly Workspace budget and spend limit; Environment budgets on Team and Enterprise
Vercel SandboxFilesystem saved when a sandbox stops; snapshots expire 30 days after last use by defaultDeny all, or allow listed domains and IP rangesSpend notifications and a webhook; Hobby stops creating sandboxes at its quota
Cloudflare SandboxesDisk is ephemeral by default; filesystem snapshots in public betaA deny-by-default list of allowed hosts, or denied hostsBudget alerts, which do not pause or cap usage
Fly.io SpritesThe disk is kept while the Sprite sleeps; checkpoints keep the disk, not memoryA DNS-based allowlist with allow and deny rulesNo billing alerts yet, per Fly's docs
AgentCore Code InterpreterEphemeral sessions; no snapshot you create yourselfSandbox, public or VPC network modeNot stated on AWS's AgentCore pages
BlaxelStandby keeps processes and files; snapshots and forks in private previewAllowed and forbidden domains through its proxy (public preview)An email at 90% of the tier's quota
BeamSnapshots of the filesystem or of memory; a new sandbox picks up "exactly where the episode left off"Block all, or an allow list of up to 64 hosts and rangesPrepaid workloads stop when the balance runs out
KoyebSandbox snapshots not stated; idle sandboxes can sleepNot stated for sandboxesAlerts at 80% and 100% of a budget

The AI agent sandbox providers, one by one#

1. Promigence#

Promigence is a sandbox platform for AI agents: isolated sandboxes that start in milliseconds and bill by the second. You build an environment once as a snapshot, it is stored only if your own verify command passes, and every sandbox starts as a fresh copy of it, one at a time or many at once.

Key features#

  • Per-second billing for the size you start: small (2 vCPU, 4 GiB), medium (4 vCPU, 16 GiB) or large (8 vCPU, 32 GiB), at the rates on the pricing page. Paused time is not billed, and snapshot storage is included.
  • A price before the run: promigence run quote prices a run as if every sandbox ran for its whole timeout, and --cap refuses a run quoted above your limit. A sandbox that reaches its cap while running is paused with its files kept.
  • Build-time checks: a snapshot is stored only if its verify command exits 0, is named by a hash of its contents and stays until you delete it, and promigence run --snapshot NAME --count N --cap USD -- CMD starts N copies of it.

The SDKs fork a group of sandboxes from a snapshot of a running one. You can pause a sandbox with promigence sandbox pause or set an opt-in idle rule with promigence sandbox autopause; a paused sandbox is kept for 30 days and does not count against your concurrency limit. Network access is set per run, either none (--network none) or a list of allowed hosts (--allow HOST), and promigence sandbox network lists the hosts a sandbox was refused. Each run's validity report keeps environment failures apart from task failures. A sandbox that fails on Promigence's side before it reaches you is not billed. There are Python and TypeScript SDKs, a REST API and the CLI, with packages for Inspect, Harbor, LangChain, the OpenAI Agents SDK, the Claude Agent SDK, the Vercel AI SDK, Google ADK and Strands.

In numbers#

WhatResultConditions
From create to a sandbox that takes commands8 msp50 over n=100 at 2 vCPU / 4 GiB, timed to the first command
100 sandboxes started together, slowest 5%0.94 sp95, n=400, every run completed
Wake a paused sandbox104 msp50 over n=100, resume to first database query; 127 ms under load

These are the figures published in the numbers section of promigence.ai.

Where it fits#

It fits agent work that starts from the same prepared environment again and again: coding agents on a built repository, eval suites, RL rollouts and agentic CI. The run is priced before it starts and capped, so a batch of a thousand sandboxes has a known worst case. Long-running agents fit too. A paused sandbox costs nothing and wakes on the next request.

2. Modal#

Modal describes Sandboxes as "Isolated environments for coding agents, RL rollouts, and untrusted code", inside a serverless platform that also sells inference and training on GPUs.

Key features#

  • Sandbox CPU at $0.00003942 per physical core (2 vCPU) per second and memory at $0.00000667 per GiB per second, and the pricing page says "Sandboxes are billed at non-preemptible rates of 3x list price".
  • A default lifetime of 5 minutes, raised by a timeout to at most 24 hours, after which Modal suggests a Filesystem Snapshot and a new Sandbox.
  • Filesystem Snapshots that start many Sandboxes, kept 30 days by default, and Memory Snapshots, in alpha, that keep running processes and expire after 7 days.

GPUs run inside Sandboxes, priced by the second, and a Sandbox can run Docker. Traffic out of a Sandbox can be blocked or limited to IP ranges, with a domain allowlist in beta, and secret injection, also in beta, keeps a key out of the Sandbox. Modal's SDKs cover Python, plus JavaScript and Go in beta, and its docs add readiness probes and a worked example for Harbor evals.

Where it fits#

It suits teams that want sandboxes next to GPUs and model serving, on one platform and one bill. According to its blog, Modal "supports up to fifty thousand concurrent sandboxes per customer". For a row-by-row look at Modal and Promigence, see Promigence vs Modal, and for other options, Modal sandbox alternatives.

3. Vercel Sandbox#

Vercel Sandbox runs untrusted or agent-generated code, each sandbox with its own filesystem and network, and has been generally available since 30 January 2026.

Key features#

  • Active CPU at $0.128 an hour, provisioned memory at $0.0212 per GB-hour and $0.60 per million creations in the default iad1 region. Waiting on I/O, model calls included, does not count toward Active CPU.
  • 10 sandboxes at once on Hobby, which is for non-commercial use, and 10,000 on Pro, whose $20 monthly fee includes $20 of usage.
  • Sessions of 45 minutes on Hobby and 24 hours on Pro, with the limit reset each time a persistent sandbox stops and resumes.

The filesystem is saved when a sandbox stops, snapshots expire 30 days after last use by default, and Sandbox.fork() starts a new sandbox from the latest saved state. A firewall denies all traffic or allows listed domains and IP ranges, and credentials brokering keeps secrets out of the sandbox. Its SDKs cover TypeScript and Python across 19 regions, and its ecosystem page lists Harbor and frameworks from the AI SDK to LangChain.

Where it fits#

It suits teams already on Vercel, and agents that spend most of a session waiting on a model, since idle CPU time is free. Memory is billed while the sandbox exists, idle or not. Vercel's Spend Management sends notifications and can call a webhook, and its docs say "Setting a budget does not stop usage on its own."

4. Cloudflare Sandboxes#

Cloudflare's Sandbox SDK runs on Cloudflare Workers®, under the $5-a-month Workers Paid plan: a Durable Object™ in your Worker starts the instance that runs untrusted or generated code. Containers and Sandboxes became generally available on 13 April 2026.

Key features#

  • Billed every 10 ms while running: CPU at $0.000020 per vCPU-second on active use, memory at $0.0000025 per GiB-second and disk at $0.00000007 per GB-second on the instance type you choose, past the usage Workers Paid includes, with Workers and Durable Object charges on top.
  • Instance types from lite up to standard-4 (4 vCPU, 12 GiB), custom types up to 4 vCPU and 12 GiB, and a default account limit of 15,000 vCPU running at once, which Cloudflare says can be increased.
  • No fixed maximum runtime, though Cloudflare does not guarantee that an instance will run for a set period, and the disk is ephemeral by default.

Outbound traffic can be limited to a deny-by-default list of allowed hosts, and outbound handlers hold secrets that code in the sandbox never sees. The SDK is TypeScript and runs inside a Worker.

Where it fits#

It suits teams already building on Workers, whose sandboxes should run close to the request that starts them. Budget alerts there "are informational only. They do not pause or limit usage."

5. Fly.io Sprites#

Fly.io describes Sprites as "full Linux computers designed for agents", and says a Sprite "keeps its disk" and "sleeps when idle and wakes with everything where it was".

Key features#

  • CPU at $0.0385 per CPU-hour of cumulative use and memory at $0.021875 per GB-hour of actual use. A Sprite is not billed for compute while warm or cold, though its storage keeps billing.
  • Sprites pause on their own after about 30 seconds of inactivity; warm keeps memory, and cold drops it.
  • 100 Sprites running at once on the Hero plan, according to the Sprites FAQ, with higher tiers raising that ceiling, and $1 of trial credit for a new account, valid for 7 days.

Fly calls Sprites "exactly as persistent and disposable as you want them to be". Checkpoints keep the disk, not memory. A DNS-based allowlist governs outbound traffic, and connectors keep tokens out of the Sprite. There are SDKs for JavaScript and Python, plus Go and Elixir, and integrations from the OpenAI Agents SDK to an OpenEnv provider in alpha.

Where it fits#

Sprites suit long-lived agent computers that sit idle most of the time. Fly's cost docs say "We don't support billing alerts (yet), so budget accordingly", and its pricing pages describe plans differently from one page to the next, so check the plan on Fly's site before you size a fleet.

6. Amazon Bedrock AgentCore#

AWS offers two sandbox-like services under AgentCore: Code Interpreter, which lets agents run code in isolated sessions, and Runtime, for deploying agents and tools. Every session gets its own compute and memory, with a filesystem of its own, and AWS says the session's memory is sanitized when it ends.

Key features#

  • Code Interpreter at $0.0895 per vCPU-hour and $0.00945 per GB-hour, billed per second with a 1-second minimum on actual CPU and on peak memory so far: "I/O wait and idle time is free, if no other background process is running."
  • Sessions of 15 minutes by default and up to 8 hours, at 2 vCPU and 8 GB each, with 1,000 concurrent Code Interpreter sessions per account by default and 5,000 Runtime sessions in US East (Northern Virginia) and US West (Oregon), both adjustable.
  • Sandbox, public or VPC network modes.

It runs Python, JavaScript or TypeScript code, and works with CrewAI, LangGraph, LlamaIndex, Google ADK, the OpenAI Agents SDK and Strands Agents.

Where it fits#

AgentCore suits teams that keep everything in AWS and need short code runs inside an agent. Sessions are ephemeral, there is no snapshot you create yourself, and each session stops at 2 vCPU and 8 GB.

7. Blaxel#

Blaxel sells "Perpetual sandboxes for autonomous agents", and its homepage says it has joined Baseten.

Key features#

  • Billing on allocated memory while active, at $0.0000115 per GB of RAM per second, with CPU allocated to match and not charged separately.
  • Standby keeps running processes and files, memory is not billed in standby, and snapshot storage is $0.20 per GB a month.
  • Limits by tier, set by the credit you top up over 30 days: 10 sandboxes on the free tier, 50 at Tier 1 and 200 at Tier 2.

Domain allow and deny lists come through a proxy in public preview, which can also add secrets server-side. Its SDKs cover Python and TypeScript, plus Go, and there are sandbox packages for the OpenAI Agents SDK and Mastra.

Where it fits#

Blaxel suits agents that pause for long stretches and need to resume with their processes intact. Manual snapshots and forks are in private preview, and a hard dollar cap is not stated on Blaxel's pages.

8. Beam#

Beam describes its product as "Secure sandboxes for AI code", with GPUs and Docker-in-Docker among its features.

Key features#

  • CPU at $0.05 per vCPU-hour and memory at $0.01 per GiB-hour on the default Performance tier, paid "by the millisecond, only when the sandbox is running", with no egress fees. Storage is not billed yet.
  • Snapshots of the filesystem or of memory, and a sandbox started from a memory snapshot "picks up exactly where the episode left off".
  • The Developer plan is $20 a month with $20 of credit and 30 vCPU at once; Team is $89 a month plus usage, with 1,000 vCPU.

GPUs attach to a sandbox in the same constructor as CPU and memory. Outbound traffic can be blocked or limited to an allow list of up to 64 hosts and ranges, and secrets reach the sandbox as placeholders, with the real key swapped in only for matching hosts. Python and TypeScript SDKs come with a CLI.

Where it fits#

Beam suits Python teams that want sandboxes and GPUs on one bill, and RL environments that need to pick an episode up where it stopped. Beam's billing docs say "Prepaid workloads stop when the balance runs out"; a price for a run before it starts is not stated on Beam's pages.

9. Koyeb#

Koyeb's docs say "Koyeb Sandboxes are currently in public preview." Koyeb has announced a definitive agreement to join Mistral AI and says its platform will continue operating.

Key features#

  • Instance types billed per second and rounded up to the nearest unit: 2 vCPU with 2 GB is $0.0288 an hour, and 4 vCPU with 4 GB is $0.0576.
  • Plans from Pro at $29 a month with $10 of compute included, and a CPU concurrency limit of 100 on Pro and 1,000 on Scale.
  • GPU sandboxes as well as CPU ones, idle sleep, and auto-deletion set anywhere from 60 seconds to 24 hours.

SDKs come in Python and JavaScript.

Where it fits#

Koyeb suits small, cheap sandboxes and GPU work on one platform. Snapshots and outbound controls for sandboxes are not stated on Koyeb's pages, and its pricing FAQ says a spending limit is still to come.

If you are on Runloop#

Runloop's docs say: "Runloop is winding down its services. Transition support for existing customers continues through November 13, 2026 at 11:59 PM PT." That date has passed. Its transition guides cover several other platforms. To move devboxes and blueprints to Promigence, see Moving from Runloop to Promigence.

How to choose#

Start with how your agent spends its time. If it compiles, tests or installs for most of a session, a provider that bills the size you start costs about the same as one that bills active CPU, and the per-hour rate decides. When it mostly waits on a model, active-CPU billing or a pause that stops the meter does more for the bill than any list rate.

Then look at what has to survive between runs. A batch of identical episodes needs a snapshot that many sandboxes start from. An agent that works for days needs a long session, or a pause that keeps its state.

Last, decide where the money should stop. A monthly budget protects the account. A cap on each run protects you from one bad batch.

What sets Promigence apart#

The bill for a run, before the run#

promigence run quote prices a run as if every sandbox ran for its whole timeout, and --cap refuses a run quoted over your limit. A sandbox that reaches its cap mid-run is paused with its files kept, and paused time is not billed.

Environments that passed their own test#

A snapshot is stored only if your verify command passes, so no agent opens on a broken environment. The snapshot's ID is a hash of its contents, and it stays until you delete it.

Failures with a label#

Every run reports environment failures apart from task failures, so a broken environment never counts against your agent, and a sandbox that fails on Promigence's side before it reaches you is not billed.

Frequently asked questions#

How do cloud sandbox providers for AI agents compare on startup time, price and reliability?#

On price, the tables above give each provider's published rate and how it counts time. A sandbox of 2 vCPU and 4 GiB, busy for a whole hour with all its memory in use, lists at $0.1400 on Beam (its default Performance tier), $0.1645 on Fly.io Sprites, $0.2168 on AgentCore's Code Interpreter, $0.2380 on Modal (1 physical core requested) and $0.3408 on Vercel Sandbox in iad1, counting 4 GB where the vendor prices per GB. Promigence bills per second at the rates on its pricing page. Agents that mostly wait cost less on the platforms that bill CPU on use. Start times are published by each vendor under its own conditions, so compare them on one test. ComputeSDK's public Burst TTI board launches many sandboxes at once from each provider it covers, measures time to interactive and publishes each provider's success rate, updated weekly. Then count, on your own workload, how many environments failed per run; Promigence's validity report does that for every run.

Which sandbox platforms let me snapshot and fork a running agent environment?#

promigence sandbox snapshot saves a running Promigence sandbox as a new snapshot without stopping it, and the SDKs fork a group of sandboxes from it. With Modal, Filesystem Snapshots start many Sandboxes from one, and Memory Snapshots, in alpha, keep running processes too. A new sandbox can start from the latest saved state of an existing one with Vercel's Sandbox.fork(). With Beam, new sandboxes start from filesystem or memory snapshots, and one started from memory picks up where the original left off. Blaxel's snapshots and forks, which keep running processes, are in private preview, and Fly's checkpoints keep the disk.

Which agent sandbox providers let me cap what a run can spend?#

Each Promigence run is priced before it starts, and one quoted over its cap is refused; a sandbox that reaches the cap mid-run is paused with its files kept. When a Workspace reaches its monthly spend limit, Modal stops workloads, and Beam stops prepaid workloads when the balance runs out. Vercel's budget "does not stop usage on its own" outside Hobby, Cloudflare's budget alerts "do not pause or limit usage", Blaxel emails at 90% of a tier's quota, Koyeb alerts at 80% and 100% of a budget, and Fly's docs say billing alerts are not supported yet.

Try Promigence#

The rates are on the pricing page, billed per second. Request access and follow the quickstart: build a verified snapshot, quote a run, start sandboxes from it and read the report. To branch copies of a running sandbox, see snapshot after npm install, then fork 10 copies. Workload guides: coding agents, agent evals, RL environments and background agents.

Sources#

These pages were read on 24 Nov 2026. Prices and limits change, and each vendor's own page is the authority.

The product names on this page (Modal, Vercel, Cloudflare, Fly.io, AWS, Amazon Bedrock AgentCore, Blaxel, Beam, Koyeb, Runloop) are trademarks of their owners, used only to identify their products; no affiliation or endorsement is implied. Vercel, the Vercel design, Next.js and related marks, designs and logos are trademarks or registered trademarks of Vercel, Inc. or its affiliates in the US and other countries. Cloudflare, the Cloudflare logo, Cloudflare Workers and Durable Objects are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.

If anything on this page is out of date or wrong, write to support@promigence.ai and we will correct it and note the date.

More in the Promigence blog, or follow it by RSS.

Run your own workload on it, free

Send a repo and the command you run against it, whatever that is: an eval suite, an RL rollout, a CI job, a queue of coding tasks. We build the environment once, run it a thousand times, and send back the timings, the failures and an exact price. Free, once, on your real workload.

  • 1,000 runs of your own command, on your own repo
  • What each one cost in wall clock, and anything that failed
  • Whether a failure was your code or the environment
  • An exact price for your real volume

A person replies, usually the same day. Or write to support@promigence.ai.

See our Privacy Policy for how we use what you send.

Not ready to hand over a repo? Read the quickstart or check the numbers first.

Request access

Leave your work email and we will email you an invite code with $100 in free credits.

See our Privacy Policy for how we use your email.