---
title: "Modal sandbox alternatives in 2026: where else to run agent sandboxes"
description: "Eight alternatives to Modal Sandboxes for AI agents, compared on price, session length, saved state and spend control, with every vendor fact read on the vendor's own pages."
url: "https://www.promigence.ai/blog/modal-sandbox-alternatives-2026"
site: "Promigence"
---

# Modal sandbox alternatives in 2026: where else to run agent sandboxes

_Harshraj, 24 November 2026_

The main alternatives to Modal Sandboxes in 2026 are Promigence, Vercel Sandbox, Cloudflare® Sandboxes, [Fly.io](https://fly.io) Sprites and Amazon Bedrock AgentCore, along with Blaxel and Beam, and Koyeb in public preview. Which one fits depends on what pushed you to look: the Sandbox rate, the 24-hour session limit, how long saved state lasts, or wanting a cap on a single run. Our own product, Promigence, comes first. Facts about Modal and the others were all read on each vendor's own pages on 24 November 2026, and the pages are listed under Sources. For a row-by-row comparison of Modal and Promigence alone, see [Promigence vs Modal](https://www.promigence.ai/compare/promigence-vs-modal).

## Key takeaways

- Price: Modal bills Sandboxes "at non-preemptible rates of 3x list price", which comes to $0.2380 an hour for a Sandbox that requests 1 physical core (2 vCPU) and 4 GiB. The same size lists at $0.1400 on Beam and $0.1645 on Fly.io Sprites when busy, Promigence bills it per second ([pricing](https://www.promigence.ai/pricing)), and Vercel and AgentCore charge nothing for CPU while an agent waits on I/O.
- Session length: a Modal Sandbox stops at 24 hours at most. Cloudflare sets no fixed maximum runtime, Fly calls Sprites "exactly as persistent and disposable as you want them to be", and Vercel resets its 24-hour Pro limit every time a persistent sandbox resumes.
- Saved state: Modal keeps Filesystem Snapshots for 30 days by default and Memory Snapshots, in alpha, for 7. A Promigence snapshot stays until you delete it, unless you give it an expiry.
- Spend: Modal's budgets are monthly. Each Promigence run is priced before it starts, and one quoted over your cap is refused.
- GPUs: Modal runs GPUs inside Sandboxes, and so do Beam and Koyeb among the alternatives. Modal stays the natural choice when sandboxes should share one platform with inference and training.

## Why teams look for a Modal alternative

Modal is a serverless platform, and Sandboxes are one product in it, listed beside inference and training on GPUs. If agents are the only thing you run there, four facts from Modal's own pages are worth weighing.

### The Sandbox rate

Modal's pricing page says "Sandboxes are billed at non-preemptible rates of 3x list price": $0.00003942 per physical core (2 vCPU) per second and $0.00000667 per GiB per second, against $0.0000131 and $0.00000222 for its standard Functions. A Sandbox is billed on the higher of what it requested and what it used, with a minimum of 0.125 cores. Pinning a Sandbox to a region adds a multiplier: 1.15x for a broad region such as `us` and 1.75x for a narrow one such as `us-west`.

### How long a Sandbox lives

"Sandboxes have a default maximum lifetime of 5 minutes", and a timeout raises that to 24 hours at most. Past that, Modal recommends saving the state as a Filesystem Snapshot and restoring it in a new Sandbox.

### What a snapshot keeps, and for how long

Filesystem Snapshots are kept 30 days by default, a TTL you can change or remove. Memory Snapshots keep running processes as well as files, but they are in alpha, "expire 7 days after creation and cannot currently be extended", come back only on the same instance type, and cannot run with GPUs.

### Where spending stops

There is a monthly Workspace budget and spend limit, with Environment budgets on the Team and Enterprise plans. When the spend limit is reached, Modal stops workloads that would add out-of-pocket charges. A quote or a cap for one run is not stated on Modal's site.

## When Modal is still the right choice

If the sandbox needs a GPU and you want it next to your models, Modal sells GPUs by the second (an H100 SXM5 at $0.001097 a second, an A100 80 GB at $0.000694) on the same bill as inference and training. A Sandbox can run Docker. According to its blog, Modal "supports up to fifty thousand concurrent sandboxes per customer", its documentation carries a worked example for Harbor evals, and secret injection, in beta, keeps a key out of the Sandbox entirely.

## Modal and the alternatives at a glance

| Provider | How time is billed | 2 vCPU and 4 GiB, busy for an hour | Longest session | Spend control |
|---|---|---|---|---|
| Modal Sandboxes | Per second, on the higher of request and use | $0.2380 (1 physical core) | 24 hours | Monthly budget and spend limit |
| Promigence | Per second, for the size you start | Billed per second ([pricing](https://www.promigence.ai/pricing)) | Set by your account's limits; paused sandboxes kept 30 days | A quote and a hard cap on each run, a monthly cap per project |
| Vercel Sandbox | Active CPU, plus provisioned memory | $0.3408 in iad1; CPU is free while waiting on I/O | 24 hours on Pro, reset on each resume | Notifications and a webhook |
| Cloudflare Sandboxes | Every 10 ms: CPU on use; memory and disk as provisioned | Not a listed size: 2 vCPU needs at least 6 GiB | No fixed maximum runtime | Budget alerts only |
| Fly.io Sprites | CPU and memory on actual use | $0.1645 | As long as you want, per Fly's Sprites page | No billing alerts yet, per Fly's docs |
| AgentCore Code Interpreter | Per second; CPU on use, memory at its peak | $0.2168; CPU is free during I/O wait | 8 hours | Not stated on AWS's AgentCore pages |
| Blaxel | Allocated memory while active | Not comparable: billed on memory only, at $0.0414 per GB-hour | 7 days on the free tier, none from Tier 2 | An email at 90% of the tier's quota |
| Beam | By the millisecond while running | $0.1400 (default Performance tier) | 600 seconds by default; -1 for no timeout | Prepaid workloads stop when the balance runs out |
| Koyeb (public preview) | Per second by instance type | $0.0288 as eco-large, in three regions only; sandbox use of Eco types not stated | Not stated | Budget alerts; spending limit to come |

The hourly figures are list prices worked out from each vendor's published rates, before plan fees and credits, and before included usage; Vercel's is for its default iad1 region. Memory counts as 4 GiB, or 4 GB where the vendor prices per GB.

## The best Modal alternatives in 2026

### 1. Promigence

Promigence is a sandbox platform for AI agents. You build an environment once as a snapshot, it is stored only if your verify command passes, and every sandbox starts as a fresh copy of it.

#### Compared with Modal

- Billed per second for the size you start, at the rates on the [pricing page](https://www.promigence.ai/pricing); Modal's Sandbox rate is 3x its list price.
- `promigence run quote` prices a run before it starts, and `--cap` refuses a run quoted over your limit, where Modal's budgets are monthly.
- A paused sandbox is not billed and is kept for 30 days, and `promigence sandbox extend SID --timeout DUR` gives a live sandbox more time within its cap.

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 or until an expiry you set. Every run's validity report keeps environment failures apart from task failures, and exit codes 3 and 4 tell the two apart in a script. Network access is set per run: none, or a list of allowed hosts, with every refused host recorded.

#### Where it fits

It fits teams whose Modal bill is mostly Sandboxes running agent episodes: evals, rollouts, coding agents and agentic CI. A batch is priced before it starts, and the environment is checked before any agent arrives.

### 2. 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.

#### Compared with Modal

- Billing for CPU only while code uses it ($0.128 per active CPU-hour in iad1), and for memory as provisioned ($0.0212 per GB-hour), with 2 GB per vCPU.
- 10,000 sandboxes at once on Pro, whose $20 monthly fee includes $20 of usage; Hobby is limited to non-commercial use.
- A 24-hour session on Pro that resets each time a persistent sandbox stops and resumes.

The filesystem is saved on stop, and `Sandbox.fork()` starts a new sandbox from the latest saved state. Credentials brokering keeps secrets out of the sandbox, and the firewall allows only listed domains and IP ranges when you ask it to. Its Harbor page says "GPU tasks are not supported."

#### Where it fits

It suits agents that spend most of their time waiting on a model, and teams already deploying on Vercel.

### 3. 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.

#### Compared with Modal

- Billing every 10 ms while running: CPU on active use at $0.000020 per vCPU-second, and memory and disk on the instance type you choose.
- No fixed maximum runtime, though Cloudflare does not guarantee how long an instance runs, and the disk is ephemeral by default.
- Instance types up to 4 vCPU and 12 GiB, with a default account limit of 15,000 vCPU running at once.

Outbound handlers hold secrets that code in the sandbox never sees, and outbound traffic can be limited to a deny-by-default list of allowed hosts. Cloudflare's budget alerts "do not pause or limit usage".

#### Where it fits

It suits teams building on Workers who want code to run next to the request.

### 4. Fly.io Sprites

[Fly.io](https://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".

#### Compared with Modal

- CPU at $0.0385 per CPU-hour of cumulative use and memory at $0.021875 per GB-hour of actual use; idle Sprites pay for storage only.
- Sprites pause on their own after about 30 seconds of inactivity; warm keeps memory, and cold drops it.
- Checkpoints keep the disk, not memory.

Fly calls Sprites "exactly as persistent and disposable as you want them to be", and its cost docs say "We don't support billing alerts (yet), so budget accordingly."

#### Where it fits

It suits long-lived, mostly idle agent computers, such as one per user.

### 5. Amazon Bedrock AgentCore

AWS offers Code Interpreter for running code inside an agent, and Runtime for deploying agents and tools, each session with its own compute and memory.

#### Compared with Modal

- Code Interpreter at $0.0895 per vCPU-hour and $0.00945 per GB-hour, per second: "I/O wait and idle time is free, if no other background process is running."
- Sessions of up to 8 hours at 2 vCPU and 8 GB, with 1,000 concurrent Code Interpreter sessions per account by default.
- Ephemeral sessions, with no snapshot you create yourself, and sandbox, public or VPC network modes.

#### Where it fits

It suits teams that keep everything inside AWS and need short code runs inside an agent.

### 6. Blaxel

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

#### Compared with Modal

- Billed on allocated memory while active ($0.0000115 per GB of RAM per second), with CPU allocated to match; memory is not billed in standby.
- Standby keeps running processes and files.
- No maximum lifetime from Tier 2 up, and 7 days on the free tier.

Its snapshots and forks are in private preview.

#### Where it fits

It suits agents that pause for long stretches and must resume with their processes intact.

### 7. Beam

Beam describes its product as "Secure sandboxes for AI code", with GPUs and Docker-in-Docker among its features, and of the alternatives here it is the most like Modal in shape: Python-first, with GPUs in the sandbox.

#### Compared with Modal

- CPU at $0.05 per vCPU-hour and memory at $0.01 per GiB-hour on the default Performance tier, paid by the millisecond while the sandbox runs: $0.14 an hour for 2 vCPU and 4 GiB.
- GPUs attached to a sandbox in the same constructor as CPU and memory.
- Snapshots of the filesystem or of memory, with no egress fees; storage is not billed yet.

A sandbox runs 600 seconds by default and can be set to never time out.

#### Where it fits

It suits Python teams that need GPUs in their sandboxes but want a sandbox-first product.

### 8. Koyeb

Koyeb's docs say "Koyeb Sandboxes are currently in public preview", and Koyeb has announced a definitive agreement to join Mistral AI.

#### Compared with Modal

- Instance types billed per second: 2 vCPU with 2 GB is $0.0288 an hour, and 4 vCPU with 4 GB is $0.0576.
- GPU sandboxes as well as CPU ones, and plans from Pro at $29 a month with $10 of compute included.
- Snapshots and outbound controls for sandboxes are not stated on Koyeb's pages, and a spending limit is still to come, per its pricing FAQ.

#### Where it fits

It suits low-cost sandboxes at small sizes, for teams comfortable with a product in public preview.

## Moving from Modal to Promigence

Most Modal Sandbox concepts have a direct counterpart.

| On Modal | On Promigence |
|---|---|
| `Sandbox.create` from an Image | `promigence fork --snapshot NAME --count 1 --cap USD` for a long-lived sandbox, from a snapshot checked by its verify command |
| Several Sandboxes from one Filesystem Snapshot | `promigence fork --snapshot NAME --count N --cap USD`, or `promigence run --snapshot NAME --count N --cap USD -- CMD` for a batch |
| `timeout` up to 24 hours | `--timeout`, and `promigence sandbox extend SID --timeout DUR` for more time |
| `snapshot_filesystem()` | `promigence sandbox snapshot SID`, without stopping the sandbox (commands started in the background end) |
| `block_network=True` or an allowlist | `--network none`, or `--allow HOST` for each host |
| Workspace budget | `--cap` on each run, and `promigence project cap` per project |

The [quickstart](https://www.promigence.ai/docs/quickstart) takes about ten minutes, and the [CLI reference](https://www.promigence.ai/docs/cli) lists every flag.

## Frequently asked questions

### What is a good alternative to Modal Sandboxes for batch agent work and long-running agents?

Batches need a price before the run, a cap on it, and a way to tell broken environments from failed tasks. All three are on Promigence: `promigence run quote`, `--cap`, and a validity report on every run. Long-running agents raise a different question: what an idle agent costs and how long its state lasts. A paused Promigence sandbox costs nothing and is kept 30 days, Fly.io Sprites pay for storage only when idle, and Blaxel bills no memory in standby.

### Do any sandbox providers automatically pause the sandbox while the agent is waiting on a model response?

It depends on what each provider counts as idle. On Promigence the idle rule is opt-in: `promigence sandbox autopause SID --after DUR` pauses a sandbox once it has been idle that long, and paused time is not billed. By default, idle means no API requests reach the sandbox. With `--mode activity`, a sandbox also needs CPU use under 5% of one core, no network traffic and no connection to the outside to count as idle, so an agent that waits on a model call from inside the sandbox stays awake, and `--off` turns the rule off. Fly.io Sprites pause on their own after about 30 seconds of inactivity, and Blaxel moves an idle sandbox to standby. On Vercel and AgentCore the session keeps running but no CPU is charged while code waits on I/O, model calls included; memory is still billed.

### What is the cheapest sandbox for running many AI agents in parallel?

It depends on how busy each agent keeps the CPU. At 2 vCPU and 4 GiB (4 GB where the vendor prices per GB), busy for a whole hour, the list prices on the vendors' own pages are $0.1400 on Beam (default Performance tier), $0.1645 on Fly.io Sprites, $0.2168 on AgentCore's Code Interpreter, $0.2380 on Modal and $0.3408 on Vercel Sandbox in iad1. Promigence bills per second at the rates on its [pricing page](https://www.promigence.ai/pricing). Agents that mostly wait cost less on the platforms that bill CPU on use. Check the concurrency limit too: 100 containers on Modal's Starter plan, 10,000 on Vercel's Pro plan, and on Promigence whatever your account's [limits](https://www.promigence.ai/docs/limits) allow.

## Try Promigence

The rates are on the [pricing page](https://www.promigence.ai/pricing), billed per second. [Request access](https://www.promigence.ai/?ref=blog#request-access), follow the [quickstart](https://www.promigence.ai/docs/quickstart), and read [Promigence vs Modal](https://www.promigence.ai/compare/promigence-vs-modal) for the full comparison. The [snapshot and fork guide](https://www.promigence.ai/docs/guides/snapshot-and-fork) shows the Promigence side of Modal's snapshot-then-fork pattern. Workload guides: [agent evals](https://www.promigence.ai/for/agent-evals), [RL environments](https://www.promigence.ai/for/rl-environments), [background agents](https://www.promigence.ai/for/background-agents) and [coding agents](https://www.promigence.ai/for/coding-agents).

## Sources

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

| Platform | Pages | Checked |
|---|---|---|
| Promigence | [Pricing](https://www.promigence.ai/pricing), [Limits and notices](https://www.promigence.ai/docs/limits), [CLI reference](https://www.promigence.ai/docs/cli), [Background agents](https://www.promigence.ai/for/background-agents), [Promigence vs Modal](https://www.promigence.ai/compare/promigence-vs-modal) | 24 Nov 2026 |
| Modal | [Pricing](https://modal.com/pricing), [Sandboxes](https://modal.com/docs/guide/sandboxes), [Sandbox pricing and resources](https://modal.com/docs/guide/sandbox-resources), [Snapshots](https://modal.com/docs/guide/sandbox-snapshots), [Region selection](https://modal.com/docs/guide/region-selection), [Budgets](https://modal.com/docs/guide/budgets), [Secret injection](https://modal.com/docs/guide/sandbox-secret-injection), [Harbor evals example](https://modal.com/docs/examples/harbor_evals), [Scaling to 1 million concurrent sandboxes](https://modal.com/blog/scaling-to-1-million-concurrent-sandboxes-in-seconds) | 24 Nov 2026 |
| Vercel | [Sandbox](https://vercel.com/docs/sandbox), [Sandbox pricing and limits](https://vercel.com/docs/sandbox/pricing), [Concepts](https://vercel.com/docs/sandbox/concepts), [SDK reference](https://vercel.com/docs/sandbox/sdk/javascript), [Firewall](https://vercel.com/docs/sandbox/concepts/firewall), [Harbor](https://vercel.com/docs/sandbox/ecosystem/harbor), [Pro plan](https://vercel.com/docs/plans/pro-plan), [Fair use](https://vercel.com/docs/limits/fair-use-guidelines), [GA announcement](https://vercel.com/blog/vercel-sandbox-is-now-generally-available) | 24 Nov 2026 |
| Cloudflare | [Sandboxes](https://developers.cloudflare.com/sandbox/), [Containers pricing](https://developers.cloudflare.com/containers/platform/pricing/), [Containers limits](https://developers.cloudflare.com/containers/platform/limits/), [Containers FAQ](https://developers.cloudflare.com/containers/faq/), [Outbound traffic](https://developers.cloudflare.com/containers/configuration/outbound-traffic/), [Budget alerts](https://developers.cloudflare.com/billing/manage/budget-alerts/) | 24 Nov 2026 |
| Fly.io | [Sprites](https://fly.io/sprites.md), [Pricing](https://fly.io/pricing.md), [Sprites overview](https://docs.fly.io/sprites/index.md), [Lifecycle](https://docs.fly.io/sprites/concepts/lifecycle.md), [Checkpoints](https://docs.fly.io/sprites/concepts/checkpoints.md), [Cost management](https://docs.fly.io/about/cost-management.md) | 24 Nov 2026 |
| AWS | [AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/), [AgentCore quotas](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/bedrock-agentcore-limits.html), [Code Interpreter sessions](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-session-characteristics.html), [Code Interpreter network modes](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-create.html), [Runtime sessions](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-sessions.html) | 24 Nov 2026 |
| Blaxel | [Sandboxes](https://blaxel.ai/platform/sandboxes), [Sandboxes overview](https://docs.blaxel.ai/Sandboxes/Overview), [Pricing](https://blaxel.ai/pricing), [TTL and expiration](https://docs.blaxel.ai/knowledge-base/configuration-and-operation/understanding-sandbox-ttl-and-expiration-policies), [Fork](https://docs.blaxel.ai/Sandboxes/Fork), [Home page](https://blaxel.ai/) | 24 Nov 2026 |
| Beam | [Sandboxes](https://www.beam.cloud/sandbox), [Pricing](https://www.beam.cloud/pricing), [Sandbox overview](https://docs.beam.cloud/v2/sandbox/overview), [Snapshots](https://docs.beam.cloud/v2/sandbox/snapshots), [Python SDK reference](https://docs.beam.cloud/v2/reference/py-sdk), [Pricing and billing](https://docs.beam.cloud/v2/resources/pricing-and-billing) | 24 Nov 2026 |
| Koyeb | [Pricing](https://www.koyeb.com/pricing), [Instances](https://www.koyeb.com/docs/reference/instances), [Sandbox lifecycle](https://www.koyeb.com/docs/sandboxes/sandbox-lifecycle), [Pricing FAQ](https://www.koyeb.com/docs/faqs/pricing), [Sandboxes announcement](https://www.koyeb.com/blog/koyeb-sandboxes-fast-scalable-fully-isolated-environments-for-ai-agents), [Joining Mistral AI](https://www.koyeb.com/blog/koyeb-is-joining-mistral-ai-to-build-the-future-of-ai-infrastructure) | 24 Nov 2026 |

The product names on this page (Modal, Vercel, Cloudflare, Fly.io, AWS, Amazon Bedrock AgentCore, Blaxel, Beam, Koyeb) 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.

