Modal vs AWS AgentCore

Modal is a serverless AI cloud whose sandboxes run next to its GPUs, for up to 24 hours each. AWS AgentCore is an agent platform inside your AWS account, with 2 vCPU microVM sessions of up to 8 hours, an Instances type on EC2 for longer work, and managed code and browser tools.

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.

AWS AgentCore

Amazon Bedrock AgentCore is a set of AWS services to deploy and run AI agents: a Runtime that hosts your agent code, plus built-in Code Interpreter and Browser tools.

AgentCore is not a sandbox product first. It is a hyperscaler's agent platform: you push a container image or code, and each Runtime session gets its own Firecracker microVM. You reach a session through AgentCore APIs, an interactive shell API and authenticated HTTPS session endpoints. Around it sit managed tools (Code Interpreter, Browser) and services for memory, identity, gateways and evaluations. An Instances compute type runs longer sessions on EC2 in your own account. It is built for teams who already build on AWS and want agents to stay inside their account, IAM and VPC.

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 rankAWS AgentCore: 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
132nd of 365, with limits
$888 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 outlasts Modal's 24-hour sandboxes and AgentCore's 8-hour microVM sessions. On Modal your code snapshots the filesystem and starts a new sandbox each day; on AgentCore the Instances type runs up to 14 days. On boat, turn auto-stop off (default 1 hour) on a paid plan for no session cap.
61st of 361, with limits
$1,574 a month
109th of 361, with limits
$1,300 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. AgentCore Code Interpreter ranks #11 at $114 a month and bills only CPU actually used. Modal ranks #15 at $140 and starts many sandboxes fast. boat is a compromise here because of its start limits.
15th cheapest of 336
$140 a month
11th cheapest of 336
$114 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
Modal fits sandboxes for your users at $671 a month. AgentCore Code Interpreter is a different kind of product, so it is a compromise here. boat ranks #3 at $209, and a stopped boat sandbox has no compute charge and keeps its disk for at least 14 days.
18th cheapest of 349
$671 a month
205th of 349, with limits
$506 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 huge bursts of short sandboxes, which Modal is built for: it ranks #6 here. AgentCore's 2 vCPU microVM sessions make it a compromise.
6th cheapest of 349
$11,982 a month
129th of 349, with limits
$8,075 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
46th cheapest of 359
$650 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
AgentCore costs $399 a month in our CI preset and Modal $1,112, where Docker builds need its VM runtime. AgentCore does not document Docker or /dev/kvm. boat ranks #2 at $86, with Docker and /dev/kvm in every sandbox.
110th cheapest of 374
$1,112 a month
51st cheapest of 374
$399 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
242nd of 371, with limits
$52 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
Modal ranks #45 here at $153: its official example installs Xvfb, Chromium and noVNC in a VM sandbox. AgentCore Browser drives a browser window, not a whole desktop. boat ranks #7 at $200 and streams a Linux desktop at 60 fps.
45th cheapest of 367
$153 a month
146th of 367, with limits
$202 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
AgentCore Browser ranks #4 here: a managed Chromium with live view and session replay. On Modal you install a browser yourself. boat ranks #7 and runs Chrome on a full machine you control.
57th of 356, with limits
$121 a month
4th cheapest of 356
$144 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
32nd cheapest of 343
$287 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
171st of 327, with limits
$5,957 a month
164th of 327, with limits
$5,458 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
108th of 351, with limits
$294 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
Modal has GPUs from T4 to B300 right in its sandboxes. AgentCore offers GPUs on the Instances type, and boat has none.
18th cheapest of 102
$1,116 a month
Not ranked: misses a requirementNot 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

FeatureModalAWS AgentCoreboat
What it isA serverless AI cloud: inference, training, batch jobs and sandboxes driven from codeAn AWS agent platform: hosted agent sessions plus managed Code Interpreter and Browser toolsA sandbox platform: each agent gets its own full Linux machine
IsolationgVisor by default; VM runtime with its own kernel availableFirecracker microVM per Runtime session; Code Interpreter and Browser in a containerized environmentFull VM with its own kernel, on AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; vCPUs are shared
Machine sizeSet CPU and memory per sandbox; Modal does not publish the maximum2 vCPU / 8 GB per microVM session, not adjustable; on Instances the EC2 type sets the sizeUp to 8 vCPU / 16 GB on the $20 plan, 16 vCPU / 32 GB on $100 and above
Longest session24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandbox8 hours per lifecycle on microVMs, 15 idle minutes by default; up to 14 days on InstancesNo cap once auto-stop is off on a paid plan (default 1 hour, timer up to 30 days)
What survives a stopNo paused state; your code saves the root disk with a filesystem snapshot (kept 30 days by default, or with no expiry) or a VolumeMounts under /mnt only: a 1 GB session storage mount (preview), your own EFS or S3 Files in a VPC, or EBS volumes on InstancesThe disk, saved every minute and at each stop, with no code; kept at least 14 days. Memory and running programs are not saved
Snapshots and forkOne filesystem snapshot boots many new sandboxes; memory snapshots in alphaNo snapshot or fork of a session; on Instances you can seed EBS volumes from your own EBS snapshotsAutomatic disk snapshot every minute; fork a running sandbox from its last snapshot
Docker and /dev/kvmDocker with the VM runtime (runtime="vm"); nested virtualization on Enterprise only, as an experimental optionRoot in the microVM; Docker and /dev/kvm not documentedDocker, systemd and /dev/kvm in every sandbox
Custom imagesBuild images in code or pull any linux/amd64 registry imageYour own container image: arm64 on microVMs, x86_64 or arm64 on InstancesStart from boat's image or a saved snapshot; you cannot boot your own Docker image
Browser and desktopYou set it up: Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandboxManaged Chromium with live view, session recording and replay; no desktop beyond the browser windowFull Linux desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools
Inbound accessEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistAuthenticated HTTPS session endpoints for 1 to 5 app ports (IAM or OAuth on every request); interactive shell API; no SSHHTTPS URLs for up to 50 ports, token-gated by default or public; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own
Network controlsBlock all outbound, IP-range allowlist, domain allowlist (beta)VPC mode with security groups, PrivateLink and a NAT gateway for a fixed outbound IPOpen internet, no provider-side allowlist
Coding agents and API keysYou install the harness in the image; secrets are environment variables or your own proxy in a sidecar (beta)AWS's managed harness built on Strands Agents; AgentCore Identity hands keys to your agent codeSeven harnesses installed, driven from outside by API; optional paid proxy keeps supported providers' keys out
GPUsT4 to B300 in the sandbox; 10 at once on Starter, 50 on TeamNVIDIA G-series and Inferentia2 on the Instances typeNone
RegionsUS, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75x21 commercial AWS regions plus GovCloud (Instances in 9)Germany, Finland and France; no US or Asia region, and you cannot pick one
Every feature Battleships tracks (43)
FeatureModalAWS AgentCoreboat
Full VM (own kernel)No documented wayYesYes
Docker insideNo documented wayNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNo documented wayNo documented wayYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupYesYes
Computer-use APIWith your own setupYesYes
SSHWith your own setupNo documented wayYes
Persistent diskWith your own setupYesYes
Pause/resumeNo documented wayNo documented wayYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneYesNo documented wayYes
Live fork (no pause)Not publishedNo documented wayYes
Memory forkYesNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesNo documented wayYes
Idle auto-stopYesYesNo documented way
Wake on requestNo documented wayYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundYesNo documented wayYes
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 setupNo documented wayYes
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 wayYesNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayYesNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNot publishedWith your own setupYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Modal12.60 runs/s
AWS AgentCoreNot measured
boat28.06 runs/s

In StarSling's run of 3 October 2026 (run 37073680030), the V8 Web Tooling Benchmark at 4 vCPU / 8 GB did 28.06 runs/s on boat, 15.48 on Modal's VM runtime and 12.60 on Modal gVisor. StarSling ran Modal with cpu=4, and the sandbox saw 4 CPUs (PR #121). Every boat sandbox in that run ran on an AMD Ryzen 9 9950X host; boat also places some sandboxes on other hosts, and does not promise a CPU model. Providers ran on different hardware in different regions. AgentCore is not in the public benchmarks we use, so we cannot say how it compares; its microVM sessions stop at 2 vCPU.

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. AWS AgentCore 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 monthAWS AgentCore, 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$26 · Pay-as-you-go (Instances) · with limits$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$109 · Starter · with limits$107 · Pay-as-you-go (Instances) · 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
$1,480 · Starter · with limits$1,286 · Pay-as-you-go (Instances) · 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$423 · Pay-as-you-go · with limits$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$1,615 · Pay-as-you-go (Instances)$8,800 · $2000/mo · with limits

Modal: Modal bills by the second for the higher of the CPU and memory you request or what you use, and an idle sandbox pays until it ends. Modal prices CPU per physical core, and one core equals 2 vCPU, so 4 vCPU / 8 GiB costs $0.476 an hour at a full request. StarSling ran Modal with cpu=4 (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.

AWS AgentCore: AgentCore microVMs, Code Interpreter and Browser bill per second for CPU actually used and for peak memory, with no monthly fee. The 4 vCPU shape in these scenarios is the Instances type: the EC2 on-demand price plus a 12% fee, with EBS storage and data transfer on top. The scenario prices leave out EBS storage.

AWS AgentCore: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. 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. Saved snapshots above the plan's count ($0.056 a day each) and the optional AI credentials proxy still charge while sandboxes are stopped. Starts above the plan's included number cost $0.03 to $0.07 each.

Limits in those scenarios

On Modal a sandbox lives at most 24 hours. Its root disk ends with it, so the workday, always-on and fleet scenarios keep only files your code saves to a filesystem snapshot or a Volume. The 50-agent fleet needs Docker, which the default gVisor sandbox does not document; Modal VM Sandboxes run it. On AgentCore a 4 vCPU agent needs the Instances type, up to 14 days per session. Files outside /mnt mounts or an EBS volume reset when a session stops, so packages installed at run time have to be set up again. Sandboxes for your users do not fit AgentCore, because Code Interpreter is a different kind of product. 1,000 short jobs at once fit AgentCore at $1,615 a month. On boat, the $2,000 plan includes 90 starts a minute, and starts above 270 a minute fail with 429, so that burst does not fit on boat.

ScenarioModalAWS AgentCoreboat
One coding agent, workdaysNone for this scenario
  • files survive a stop only in capacity provider EBS volumes under /mnt: packages installed elsewhere reset
  • disk beyond 0 GiB: price unknown
None for this scenario
One agent that never stops
  • Starter: sessions capped at 24 h
  • Pay-as-you-go (Instances): sessions capped at 336 h
  • files survive a stop only in capacity provider EBS volumes under /mnt: packages installed elsewhere reset
  • disk beyond 0 GiB: price unknown
None for this scenario
50 agents in parallel
  • missing Docker inside
  • files survive a stop only in capacity provider EBS volumes under /mnt: packages installed elsewhere reset
  • disk beyond 0 GiB: price unknown
None for this scenario
Sandboxes for your usersNone for this scenario
  • different kind of product: code interpreter
None 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
  • disk beyond 0 GiB: price unknown
  • 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, run as huge bursts of short jobs, or should sit next to models you already run on Modal.

  • GPUs in the sandbox. If your agent trains or runs models, Modal rents GPUs from T4 to B300 on the same platform as its sandboxes.
  • Huge bursts of short sandboxes. For RL rollouts and big batches, Modal runs up to 5,000 containers at once on its Team plan.
  • Images and 24-hour sessions. Teams that want any amd64 image built in code get sandboxes that last up to 24 hours, three times AgentCore's microVM limit.

Use AWS AgentCore when

your agents must stay inside your AWS account and VPC, or are short code and browser tasks that fit its managed tools.

  • It stays inside your AWS account. Teams built on AWS keep agents behind their own IAM, VPC, security groups and PrivateLink, in 21 commercial regions.
  • Managed browser and code tools. For short code runs and browser tasks, Code Interpreter and Browser bill only for CPU used, with live view and replay.
  • Two-week sessions on Instances. Agents that need a session of up to 14 days or a GPU can run on EC2 in your account, with Savings Plans applying.

Where boat fits

Modal and AgentCore microVMs both treat a sandbox as something short. If your agents work for hours or days, installing packages, running Docker, building and testing, look at boat. Each agent gets a full VM that saves its disk with no code, has no session cap once auto-stop is off, and serves a URL you can open.

The work is still there tomorrow

Modal sandboxes end within 24 hours; your code keeps work with a filesystem snapshot or a Volume. AgentCore microVMs stop after 8 hours and keep only paths under /mnt. boat saves the whole disk every minute and at each stop. Writes from the last minute can be missing after a machine failure.

Docker, /dev/kvm and room to build

Docker on Modal needs the VM runtime, and nested virtualization needs the Enterprise plan. AgentCore does not document Docker or /dev/kvm, and its microVMs stop at 2 vCPU. boat has Docker and /dev/kvm in every sandbox, up to 16 vCPU.

See what the agent built

AgentCore session endpoints need an AWS signature or an OAuth token on every request. Modal has tunnels, and its desktop is an example you set up. boat gives HTTPS URLs on up to 50 ports, token-gated or public, and a 60 fps desktop with computer use.

Use boat when your agents work on a machine for hours or days, with Docker, a desktop, a disk saved every minute with no code and a URL you can share. Compare it one to one: boat vs Modal and boat vs AWS AgentCore.

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 AWS AgentCore?

It depends on the scenario. One always-on agent costs $107 a month on AgentCore and $109 on Modal; both need a restart within the session limit. 50 parallel agents cost $1,286 on AgentCore and $1,480 on Modal, and 1,000 short jobs at once $1,615 against $1,911. One agent on workdays costs $0 on Modal inside its $30 Starter credit, against $26 on AgentCore. On boat those cost $26, $317, no fit and $20. AgentCore's Instances prices leave out EBS storage.

Which is faster, Modal or AWS AgentCore?

We cannot say: AgentCore is not in the public benchmarks we use. In StarSling's run of 3 October 2026, Modal's VM runtime did 15.48 runs/s and its gVisor runtime 12.60 on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB. boat did 28.06 on an AMD Ryzen 9 9950X host.

Can Modal or AWS AgentCore run Docker?

Modal runs Docker with its VM runtime (runtime="vm"), at the same price; its default gVisor runtime does not document Docker. AgentCore runs your container image as root in a microVM, but its docs do not say Docker works inside a session. Every boat sandbox runs Docker and exposes /dev/kvm.

How long can a session run on Modal and AWS AgentCore?

A Modal sandbox runs up to 24 hours, with a 5-minute default; for longer work, Modal recommends a filesystem snapshot and a new sandbox. An AgentCore microVM session lasts up to 8 hours and stops after 15 idle minutes by default; the Instances type runs up to 14 days. On boat, auto-stop defaults to 1 hour; turn it off on a paid plan for no session cap.

Which one has GPUs?

Modal has GPUs from T4 to B300 inside its sandboxes. AgentCore offers NVIDIA G-series and Inferentia2 on the Instances type, running EC2 in your account. boat has no GPUs.

Is boat SOC 2 compliant?

SOC 2 is in progress, and boat has no SOC 2 report today. Modal has SOC 2 Type II, and AgentCore is listed as a HIPAA eligible AWS service. Live status for boat 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