Modal vs StateSet Sandbox

Modal costs $0.070956 per vCPU-hour and StateSet Sandbox costs $0.0055 per vCPU-hour. Modal runs gVisor, offers GPUs and limits a session to 24 hours. StateSet Sandbox runs gVisor and limits a session to 24 hours.

Updated

Modal

Isolation
gVisor
Free tier
$30 credit every month
Max session
24 hours

StateSet Sandbox

Isolation
gVisor
Free tier
$25 trial credit, no card
Max session
24 hours

What is different

5 fields differ. The rest are the same or not listed.

Modal
StateSet Sandbox
vCPU, per hour
Modal: $0.070956
StateSet Sandbox: $0.0055
RAM, per GiB-hour
Modal: $0.024012
StateSet Sandbox: $0.00075
Free tier
Modal: $30 credit every month
StateSet Sandbox: $25 trial credit, no card
SDKs
Modal: Python, JavaScript / TypeScript, Go
StateSet Sandbox: Python, JavaScript / TypeScript
Integrations
Modal: Claude Agent SDK, Claude Code, LangChain
StateSet Sandbox: Claude Code, MCP

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Modal: $0.070956
StateSet Sandbox: $0.0055
RAM, per GiB-hour
Modal: $0.024012
StateSet Sandbox: $0.00075
Storage
Modal: Not listed
StateSet Sandbox: Not listed
Free tier
Modal: $30 credit every month
StateSet Sandbox: $25 trial credit, no card
Paid plan from
Modal: Pay as you go
StateSet Sandbox: Pay as you go
Billing
Modal: Per second
StateSet Sandbox: Per second

Limits

Max session
Modal: 24 hours
StateSet Sandbox: 24 hours
Idle stop
Modal: Not listed
StateSet Sandbox: Not listed
Largest sandbox
Modal: Not listed
StateSet Sandbox: Not listed
Concurrent sandboxes
Modal: Not listed
StateSet Sandbox: Up to 200

Platform

Isolation
Modal: gVisor
StateSet Sandbox: gVisor
GPU
Modal:
StateSet Sandbox: Not listed
Snapshots
Modal:
StateSet Sandbox:
Pause and resume
Modal: Not listed
StateSet Sandbox:

Developer

SDKs
Modal: Python, JavaScript / TypeScript, Go
StateSet Sandbox: Python, JavaScript / TypeScript
Integrations
Modal: Claude Agent SDK, Claude Code, LangChain
StateSet Sandbox: Claude Code, MCP

Trust

License
Modal: Not listed
StateSet Sandbox: Not listed
BYOC
Modal: Not listed
StateSet Sandbox: Not listed

Hourly cost

One sandbox running for one hour

Modal
StateSet Sandbox
1 vCPU · 2 GiB
Modal: $0.119
StateSet Sandbox: $0.007
2 vCPU · 4 GiB
Modal: $0.238
StateSet Sandbox: $0.014
4 vCPU · 8 GiB
Modal: $0.476
StateSet Sandbox: $0.028

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Modal fits when

  • You need GPUs.
  • You use the Claude Agent SDK or LangChain.
  • You want the larger free credit: $30 against $25.
  • You need a desktop in the sandbox.

StateSet Sandbox fits when

  • You use MCP.
  • You want the lower list price: $0.014 against $0.238 an hour for 2 vCPU and 4 GiB.
  • You need pause and resume.

More comparisons

See all comparisons

Related