Home / Compare / Modal Sandboxes vs Northflank
Modal Sandboxes vs Northflank
Short answer: Northflank is the better agent sandbox on our published method, 78/100 vs 57/100. Northflank is cheaper: $11.73 vs $41.88 a month for our reference workload. Checked 2026-11-14.
Security incident (2026-10-30): Northflank's status page reports a security incident: user-provided secrets were decrypted on 30 October 2026, and some customers reported unauthorised use of AI API keys. Northflank asks every customer to rotate all secrets. The investigation is ongoing; the platform stayed online. Source
Verdict (2026-11-16): Northflank scores higher: 57/100 vs 78/100 as AI agent sandboxes. Choose Modal Sandboxes for bursty agent workloads where average CPU and memory use is far below peak, since billing follows actual usage when no request is set. Choose Northflank for long-running or always-on agent sandboxes, since there is no time limit.
Modal Sandboxes
Containers for untrusted code on Modal's serverless platform, billed per second on max(request, actual usage).
$41.88 a month
Northflank
Highest scoreMicroVM sandboxes on Northflank's container platform, billed per second for CPU and memory, on its cloud or yours.
$11.73 a month
Score by part
Cost at four workloads
| Workload | Modal Sandboxes | Northflank |
|---|---|---|
| Short tasks: 1 vCPU, 1 GiB, 50 h/month | $0.00 | $0.00 |
| Dev agent: 2 vCPU, 4 GiB, 176 h/month | $11.88 | $0.00 |
| Fleet: 2 vCPU, 4 GiB, 1,760 h/month | $388.81 | $117.32 |
| Always on: 4 vCPU, 8 GiB, 730 h/month | $317.42 | $97.32 |
Per month, cheapest plan for each, without storage, network or GPU. Lowest cost in bold.
Choose Modal Sandboxes if
- Bursty agent workloads where average CPU and memory use is far below peak, since billing follows actual usage when no request is set.
- Sandboxes that need GPUs, from T4 up to B300.
- Teams already running Python, JS or Go workloads on Modal who want sandboxes on the same account and credit.
Choose Northflank if
- Long-running or always-on agent sandboxes, since there is no time limit
- Large or GPU sandboxes (up to 288 vCPU, L4 to B200 GPUs)
- Teams that want the same sandbox API on Northflank Cloud or a BYOC cluster in their own cloud
Side by side
| Modal Sandboxes | Northflank | |
|---|---|---|
| Category | agent sandbox, GPU sandbox | agent sandbox, GPU sandbox |
| Our score | 57/100 | 78/100 |
| Isolation | gVisor container runtime, or a VM runtime with its own Linux kernel (selectable per sandbox) | Cloud Hypervisor microVM (CPU sandboxes); gVisor (GPU sandboxes) |
| vCPU per hour | $0.07096 | $0.01667 |
| Memory per GiB-hour | $0.02401 | $0.00833 |
| Storage per GiB-month | $0.09 | $0.1166 |
| Billing | per second | per second |
| Free tier | Starter plan: $0/month with $30 of compute credit every month (CPU, memory, GPU for Functions and Sandboxes). | Free Sandbox plan: up to $20/month of resources on Northflank Cloud (2 services, 2 jobs, 1 database), no card needed. |
| Pause and resume | No | Yes |
| Snapshots | Yes | Not stated |
| GPU | Yes | Yes |
| Custom images | Yes | Yes |
| Network controls | Yes | Yes |
| Max session | 24 hours | Not stated |
| Max vCPU | Not stated | 288 vCPU |
| Max memory | Not stated | 2048 GiB |
| Open source | No | No |
| Self-host | No | Yes |
| SDKs and interfaces | Python, JavaScript/TypeScript, Go | JavaScript, Python, CLI, REST API |
| Regions | Runs in Modal's multi-cloud fleet; optional region pinning (us, eu, ap and narrower regions such as us-west, uk, jp) at a 1.15x (broad) or 1.75x (narrow) price multiplier. | Northflank Cloud regions chosen per project (GPU sandboxes need a GPU-enabled region such as asia-southeast), or BYOC on AWS, Google Cloud, Azure, Oracle, CoreWeave, Nebius and others. |
| Facts checked | 2026-11-14 | 2026-11-14 |
Modal Sandboxes alternatives · Northflank alternatives
Sources
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
Sandboxes are billed at non-preemptible rates of 3x list price.
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
Physical core (2 vCPU equivalent) $0.00003942
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
Memory (non-preemptible) $0.00000667
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
Nvidia H100 SXM5 $0.001097
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
$250 + compute / month
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
$30 / month free credits
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
$100 / month free credits
- Modal Sandboxes: https://modal.com/pricing, checked 2026-11-14:
Volumes $0.09
- Modal Sandboxes: https://modal.com/docs/guide/resources, checked 2026-11-14:
For CPU and memory, you'll be charged based on whichever is higher: your request or actual usage.
- Modal Sandboxes: https://modal.com/docs/guide/resources, checked 2026-11-14:
Disk requests are billed by increasing the memory request at a 20:1 ratio.
- Modal Sandboxes: https://modal.com/docs/guide/sandboxes, checked 2026-11-14:
You can change this by passing a timeout of up to 24 hours to the Sandbox.create(...) function.
- Modal Sandboxes: https://modal.com/docs/guide/sandbox-resources, checked 2026-11-14:
By default, each Sandbox requests 0.125 CPU cores and 128 MiB of memory
- Modal Sandboxes: https://modal.com/docs/guide/sandbox-resources, checked 2026-11-14:
Unlike CPU Sandboxes, GPU Sandboxes are subject to preemption.
- Modal Sandboxes: https://modal.com/docs/guide/region-selection, checked 2026-11-14:
A multiplier on top of our base usage pricing will be applied to any Function or Sandbox that has a container region defined.
- Modal Sandboxes: https://modal.com/docs/guide/sandbox-networking, checked 2026-11-14:
Modal provides three levels of outbound network restriction
- Modal Sandboxes: https://modal.com/docs/guide/sandbox-snapshots, checked 2026-11-14:
Memory Snapshots expire 7 days after creation and cannot currently be extended.
- Northflank: https://northflank.com/pricing, checked 2026-11-14:
CPU |$0.01667 / vCPU / hour ... Memory |$0.00833 / GB / hour ... Ephemeral storage Not persisted |Free
- Northflank: https://northflank.com/pricing, checked 2026-11-14:
Persistent disk NVMe, for addon and service volumes |$0.11657 / GiB / month
- Northflank: https://northflank.com/pricing, checked 2026-11-14:
Up to $20/mo of resources on Northflank Cloud
- Northflank: https://northflank.com/pricing, checked 2026-11-15:
NVIDIA H100 80 GB VRAM
- Northflank: https://northflank.com/pricing, checked 2026-11-14:
You’ll be billed at the end of your monthly billing cycle based on your configured resources and instances, prorated to the second of usage.
- Northflank: https://northflank.com/product/sandboxes, checked 2026-11-14:
Up to 288 vCPU, 2 TB of memory, and 64 TB of volume storage, with GPUs from L4 to B200.
- Northflank: https://northflank.com/product/sandboxes, checked 2026-11-14:
No time limits Sandboxes run until you delete them, billed per second.
- Northflank: https://northflank.com/docs/v1/application/sandboxes/sandboxes-on-northflank-cloud, checked 2026-11-14:
Pausing a sandbox scales it to zero instances, which stops compute charges. Volumes attached to a paused sandbox continue to be billed, because the data is still stored.
- Northflank: https://northflank.com/docs/v1/application/sandboxes/sandboxes-on-northflank-cloud, checked 2026-11-14:
CPU sandboxes run in microVMs, and GPU sandboxes run under gVisor. ... A project's region cannot be changed after the project is created.
- Northflank: https://northflank.com/pricing, checked 2026-11-15:
$2.74 / hour
- Northflank: https://status.northflank.com, checked 2026-11-16:
The first known decryption of secrets occurred between 02:39 UTC and 03:08 UTC on 30 October.
- Northflank: https://status.northflank.com, checked 2026-11-16:
Please rotate all secrets now, both integration secrets and project secrets, even if you haven’t seen suspicious activity.
- Northflank: https://status.northflank.com, checked 2026-11-16:
Users have reported unauthorised use of AI API keys supplied to the Northflank platform.
Questions
Is Modal Sandboxes or Northflank better?
Northflank scores higher on our published method: 57/100 vs 78/100 as AI agent sandboxes. Choose Modal Sandboxes for bursty agent workloads where average CPU and memory use is far below peak, since billing follows actual usage when no request is set. Choose Northflank for long-running or always-on agent sandboxes, since there is no time limit. Checked 2026-11-14.
Is Modal Sandboxes or Northflank cheaper?
Northflank is cheaper: Modal Sandboxes $41.88, Northflank $11.73 a month for 2 vCPU, 4 GiB, 176 hours a month (8 h × 22 days), CPU busy 30%.
How do Modal Sandboxes and Northflank isolate code?
Modal Sandboxes: gVisor container runtime, or a VM runtime with its own Linux kernel (selectable per sandbox). Northflank: Cloud Hypervisor microVM (CPU sandboxes); gVisor (GPU sandboxes).