Modal vs Koyeb

Modal runs sandboxes under gVisor or a VM runtime next to its GPU platform, built for huge bursts of short jobs that end within 24 hours. Koyeb runs each sandbox as a microVM service that can sleep when idle, wake on the next request, and keep running with no documented time cap.

The companies and products

Modal

Modal is a serverless cloud for AI work: inference, training, batch jobs and sandboxed code, all driven from Python, TypeScript or Go code.

Modal Sandboxes are containers you create from code, run commands in, and then terminate. By default they run under gVisor, a user-space kernel from Google. Since October 2026 you can also pick a VM runtime with its own Linux kernel for Docker and FUSE (Battleships tracks that as a separate card, Modal VM Sandboxes). Your code can save a sandbox's disk as a filesystem snapshot and start new sandboxes from it. It suits teams that already run models on Modal and want scalable code execution next to their GPUs.

Koyeb

Koyeb is a serverless cloud for apps, inference and sandboxes. In February 2026 it agreed to join Mistral AI.

A Koyeb sandbox is a Koyeb service: a microVM that starts from any Docker image. You drive it from Python or JavaScript SDKs or the Koyeb CLI: run commands, read files, expose a port and take snapshots. The default image comes with four coding agents. A sandbox can scale to zero when idle and wake on the next request, on CPU or GPU instance types. It suits teams that run AI agents or untrusted code next to apps they already host on Koyeb.

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. “15th cheapest of 336” means 14 of the other 335 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 workloadModal: price rankKoyeb: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
106th of 365, with limits
$633 a month
92nd of 365, with limits
$366 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An always-on agent hits Modal's 24-hour sandbox limit, so your code snapshots the filesystem and starts a new sandbox each day. On Koyeb, Deep Sleep discards the VM, so you keep the sandbox awake or take an SDK snapshot. boat ranks 5th here: turn auto-stop off on a paid plan (default 1 hour) and the disk is saved every minute.
61st of 361, with limits
$1,574 a month
194th of 361, with limits
$923 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
Both fit short code runs well. Koyeb ranks 5th here at about $66 a month and Modal 11th at about $140, thanks to Koyeb's small instances that scale to zero.
15th cheapest of 336
$140 a month
6th cheapest of 336
$66 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
All three fit sandboxes for your users. boat ranks 2nd at about $209 a month, Koyeb 6th at about $495 and Modal 15th at about $671. Koyeb wakes a sleeping sandbox on request.
18th cheapest of 349
$671 a month
8th cheapest of 349
$495 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
RL rollouts launch many short sandboxes at once, which is what Modal is built for, so Modal ranks 6th while Koyeb is a compromise at 142nd.
6th cheapest of 349
$11,982 a month
233rd of 349, with limits
$1,631 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
62nd cheapest of 359
$889 a month
27th cheapest of 359
$429 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 that builds Docker images needs the VM runtime on Modal. Koyeb sandboxes start from Docker images, but Koyeb does not document Docker inside one. boat ranks 2nd here at $86 a month, with Docker and /dev/kvm in every sandbox.
110th cheapest of 374
$1,112 a month
143rd of 374, with limits
$88 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
129th of 371, with limits
$9.07 a month
232nd of 371, with limits
$37 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
Neither Modal nor Koyeb ships a desktop. Modal's official example installs Xvfb, Chromium and noVNC in a VM sandbox; with it Modal ranks 6th at about $153 a month. On Koyeb you add a desktop and VNC to your own image. boat ranks 8th at $200, with a 60 fps desktop built in.
45th cheapest of 367
$153 a month
128th of 367, with limits
$123 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
57th of 356, with limits
$121 a month
237th of 356, with limits
$123 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
98th cheapest of 343
$252 a month
242nd of 343, with limits
$89 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
For mass scraping Koyeb ranks 41st, close to boat at 46th, while Modal is at 112th. All three are compromises here.
171st of 327, with limits
$5,957 a month
67th of 327, with limits
$1,683 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
289th of 351, with limits
$464 a month
261st of 351, with limits
$299 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
Both rent GPUs: Modal from T4 to B300, Koyeb from RTX 4000 cards to H100, H200 and B200. Koyeb ranks 3rd here at about $628 a month and Modal 16th. boat has none.
18th cheapest of 102
$1,116 a month
3rd cheapest of 102
$628 a month
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 requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureModalKoyebboat
IsolationgVisor by default; VM runtime with its own kernel (runtime="vm")Cloud Hypervisor microVM per instanceFull VM with its own kernel on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Docker insideYes with the VM runtime; not documented on the default gVisor runtimeSandboxes start from any Docker image; Docker inside a sandbox is not documentedYes, in every sandbox, with root and systemd
Nested virtualizationVM runtime only, Enterprise plan only, as an experimental optionNot documentedYes, /dev/kvm for Android emulators and VMs
Longest session24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandboxNo forced cap; optional auto-delete timersAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no cap
Stop, sleep and wakeNo paused state; an idle sandbox pays until it is terminatedScales to zero after 5 idle minutes and wakes on the next request; Light Sleep wakes in about 200 ms (preview); not on eco instancesStop and start by API; no compute charge while stopped; disk kept at least 14 days; auto-stop is a timer, not an idle check
Disk that survivesRoot disk ends with the sandbox unless you take a filesystem or directory snapshot (kept 30 days by default, or no expiry) or use a VolumeLocal disk is lost on redeploy and in Deep Sleep; SDK snapshots or volumes (preview, 1 to 10 GB, two regions, not on eco instances) keep filesWhole disk saved every minute and at each stop with no code; writes after the last snapshot can be lost if a machine fails
Snapshots and forkOne filesystem snapshot boots many identical sandboxes; memory snapshots in alpha end the sandboxSDK snapshots of the filesystem or running processes, then new sandboxes from themFork a running sandbox from its last 1-minute snapshot; no memory snapshots
Desktop and browserNo built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandboxNo desktop or browser preinstalled; you can add them to a custom Docker image1920x1080, 60 fps desktop with Chrome and computer-use tools
Coding agents and API keysYou install a harness in the image (official OpenCode example); secrets are environment variables or your own sidecar proxyDefault image preinstalls Mistral Vibe, Codex, Gemini and OpenCode, run through the command API; secrets are environment variablesSeven agents installed with a prompt, steer and events API; optional AI credentials proxy ($1 a day plus $1 per 1,000 requests) keeps supported providers' keys out
Inbound accessEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistOne exposed HTTPS port at a time, plus an optional TCP proxy to one port (preview)HTTPS URLs for up to 50 ports, token-gated by default; raw ports (IPv6 only on sandboxes without their own IPv4)
Outbound rulesBlock all, IP-range allowlist, domain allowlist (beta)Block all, or allow only listed IPs and CIDRsOpen internet, no provider-side allowlist
GPUsT4 to B300, on the gVisor runtime; 10 at once on Starter, 50 on TeamRTX 4000 SFF Ada up to H100, H200 and B200None
RegionsUS, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75xFrankfurt, Paris, Washington D.C., AWS US East, Singapore, TokyoGermany, Finland and France; no region choice, no US or Asia region
CPU speed (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026)15.48 runs/s on the VM runtime, 12.60 on gVisorNot in the public benchmarks we use; at least 0.25 dedicated vCPU per GB, bursting28.06 runs/s, 2nd of 15, on a Ryzen 9 9950X host
Every feature Battleships tracks (43)
FeatureModalKoyebboat
Full VM (own kernel)No documented wayYesYes
Docker insideNo documented wayNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesNot publishedYes
SystemdNo documented wayNot publishedYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupNo documented wayYes
Computer-use APIWith your own setupNo documented wayYes
SSHWith your own setupNo documented wayYes
Persistent diskWith your own setupWith your own setupYes
Pause/resumeNo documented wayYesYes
Automatic snapshotsNo documented wayYesYes
Fork/cloneYesYesYes
Live fork (no pause)Not publishedNot publishedYes
Memory forkYesYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestNo documented wayYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundYesYesYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyNo documented wayNo documented wayYes
Secret proxy for any APINo documented wayNo documented wayYes
Preinstalled agentsWith your own setupYesYes
Agent harness APINo documented wayNo documented wayYes
MCP serverNo documented wayYesNo documented way
GPUYesYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo documented way
Self-hostingNo documented wayYesNo documented way
BYOCNo documented wayYesNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNot publishedNo documented wayYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Modal12.60 runs/s
KoyebNot measured
boat28.06 runs/s

StarSling's run of 3 October 2026 (run 37073680030) ran the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, median of 5 sandboxes. Modal's VM runtime did 15.48 runs/s and its default gVisor runtime 12.60. boat did 28.06, second of 15. 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. Providers ran on different hardware in different regions. Koyeb is not in the public benchmarks we use, so we cannot say how it compares. Koyeb publishes a CPU share of at least 0.25 dedicated vCPU per GB of memory, bursting to all cores.

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. Modal measured on: Sandbox (gVisor), request = size, any region. 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. Koyeb is 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.

ScenarioModal, a monthKoyeb, a monthboat, 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
$0 · Starter$29 · Pro$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$109 · Starter · with limits$57 · Pro$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
$1,480 · Starter · with limits$475 · Pro · 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
$579 · Team$329 · Scale$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
$1,911 · Team · with limits$485 · Scale · with limits$8,800 · $2000/mo · with limits

Modal: Modal bills by the second for whichever is higher, the CPU and memory you request or what you use, and an idle sandbox pays until it is terminated. Modal prices CPU per physical core, and one core equals 2 vCPU, so a 4 vCPU / 8 GiB sandbox is $0.476 an hour at a full request. StarSling ran Modal with cpu=4 and the sandbox saw 4 CPUs (PR #121); sized that way, Modal bills 4 cores, $0.76 an hour. Starter is free with $30 of monthly credit, Team is $250 a month with $100 of credit, and pinning a region multiplies the price by 1.15x to 1.75x.

Koyeb: Koyeb bills each instance per second at a fixed price per instance type: eco-xlarge (4 vCPU / 8 GB, 20 GB disk) costs $0.0576 an hour. Deep Sleep costs nothing. Pro is $29 a month with $10 of usage included and Scale $299 a month with $100 included; the rest of the fee is not credit.

Koyeb: 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 sandbox (4 vCPU / 8 GB) costs $0.036 an hour, billed per second while it runs. A stopped sandbox has no compute charge and keeps its disk for at least 14 days, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; each extra start costs $0.03 to $0.07.

Limits in those scenarios

On Modal, a sandbox lives at most 24 hours, so the always-on scenario keeps only files your code saves to a filesystem snapshot or a Volume, and the 50-agent fleet needs Docker, which takes the VM runtime. Koyeb's priced eco-xlarge shape has a 20 GB local disk and takes no volume, and no Koyeb shape keeps a 50 GB disk across a redeploy, because volumes stop at 10 GB. Koyeb does not document Docker inside a sandbox for the fleet. At 1,000 short jobs at once nothing fits as priced: Modal's tier shares vCPUs, Koyeb's eco CPU guarantees only part of each vCPU, and boat's $2,000 plan includes 90 starts a minute and 2,400 a day and bills extra starts at $0.03 to $0.07 each.

ScenarioModalKoyebboat
One coding agent, workdaysNone for this scenario
  • disk beyond 20 GiB: price unknown
None for this scenario
One agent that never stops
  • Starter: sessions capped at 24 h
  • disk beyond 20 GiB: price unknown
None for this scenario
50 agents in parallel
  • missing Docker inside
  • not confirmed: Docker inside
None for this scenario
Sandboxes for your usersNone for this scenarioNone for this scenarioNone for this scenario
1,000 short jobs at once
  • shared vCPUs on this tier (Modal sells dedicated cores separately as “Sandbox (gVisor), request = size, any region”): heavy, sustained CPU use can be slowed by other tenants
  • burstable CPU: 50% of each vCPU guaranteed, throttled above that
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use Modal when

your sandboxes need GPUs up to B300, or are huge bursts of short jobs like RL rollouts that finish in minutes, with domain-level outbound rules.

  • GPUs from T4 to B300. Useful when your agent trains or runs models: Modal rents GPUs up to B300 on the same platform as its sandboxes.
  • Huge bursts of short jobs. Built for RL rollouts and big fan-outs, with up to 5,000 containers on Team.
  • Finer outbound rules. Modal can block a sandbox's traffic or allow only chosen IP ranges or domains. Koyeb filters by IP and CIDR.

Use Koyeb when

your sandboxes sit idle and must wake on a request, run for longer than a day, start from your own Docker image, or need GPUs in the EU, US or Asia.

  • Sleep when idle, wake on request. Good for sandboxes that sit idle between requests: Koyeb scales to zero and wakes on the next call.
  • No 24-hour cap. A Koyeb sandbox keeps running until you delete it, so long agent sessions are not cut off at a day.
  • A microVM per sandbox, from any image. Each Koyeb sandbox gets its own microVM and starts from any Docker image.

Where boat fits

If your sandboxes run coding agents that work for hours, look at boat. Modal and Koyeb both suit sandboxes that come and go. On both, your code keeps an agent's disk with snapshots or volumes, and you set up the desktop and agent tooling. boat gives each agent a full VM that saves its disk with no code.

The machine keeps its work

On Modal a sandbox ends within 24 hours, and you continue from a filesystem snapshot or a Volume. On Koyeb a redeploy or Deep Sleep wipes local files unless you take an SDK snapshot or attach a volume of up to 10 GB. boat saves the whole disk every minute and at each stop, and a stopped sandbox has no compute charge.

A real VM with Docker and /dev/kvm

Modal runs Docker on its VM runtime, and its nested virtualization is Enterprise only and experimental. Koyeb documents neither Docker inside a sandbox nor /dev/kvm, so Android emulators and VM builds run elsewhere. Every boat sandbox has root, systemd, Docker and /dev/kvm.

Desktop, agents and ports built in

On both, you set up VNC yourself from an example or your own image, drive agents through exec, and keep keys in environment variables. Koyeb exposes one port at a time. boat has a 60 fps desktop, seven agents with an API, an optional paid credentials proxy and 50 HTTPS ports.

Use boat when your agents work for hours or days: builds, Docker, emulators, a desktop browser and preview servers, on a VM that saves its disk with no code. Turn auto-stop off on a paid plan for long work (default 1 hour). Compare it one to one: boat vs Modal and boat vs Koyeb.

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 Modal cheaper than Koyeb?

It depends on the workload. For sandboxes for your users (2 vCPU / 4 GB, 30,000 ten-minute sessions a month), Koyeb costs $329 a month, Modal about $579 and boat $200. For one agent on workdays, Modal costs $0 inside its $30 monthly credit. For one agent that never stops, Koyeb's eco-xlarge costs $0.0576 an hour plus the $29 Pro fee, but it has a 20 GB disk and takes no volume; Modal costs about $109 and ends a sandbox every 24 hours; boat costs $26.

Which is faster, Modal or Koyeb?

Only Modal was measured. In StarSling's run of 3 October 2026 at 4 vCPU / 8 GB, Modal's VM runtime did 15.48 runs/s and its gVisor runtime 12.60. Koyeb is not in that benchmark. boat did 28.06 in the same run.

Can Modal and Koyeb run Docker?

Modal runs Docker with its VM runtime, chosen with runtime="vm"; the default gVisor runtime does not document it. Koyeb sandboxes start from any Docker image, but Koyeb does not document Docker inside a sandbox. Every boat sandbox runs Docker with root and systemd.

How long can a sandbox run on Modal and Koyeb?

Modal caps a sandbox at 24 hours, with a default of 5 minutes; for longer work, Modal recommends a filesystem snapshot and a new sandbox. Koyeb has no forced cap, only optional auto-delete timers you set. boat auto-stop defaults to 1 hour; on a paid plan you can turn it off, and then there is no session cap.

Do Modal and Koyeb have GPUs?

Yes, both do. Modal rents T4 up to B300, and Koyeb runs RTX 4000 SFF Ada up to H100, H200 and B200. boat is CPU only.

Is boat SOC 2 compliant?

SOC 2 is in progress; there is no SOC 2 report today. Live status is at status.ascii.dev and our data retention policy is at docs.boat.dev/data-retention.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons