Anthropic Code Execution vs Deno Sandbox

Anthropic Code Execution costs $0.05 per vCPU-hour and Deno Sandbox costs $0.10 per vCPU-hour. Anthropic Code Execution runs containers. Deno Sandbox runs Firecracker microVMs and limits a session to 30 minutes.

Updated

Anthropic Code Execution

Isolation
Container
Free tier
1,550 free hours per month
Max session
Not listed

Deno Sandbox

Isolation
Firecracker microVM
Free tier
Not listed
Max session
30 minutes

What is different

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

Anthropic Code Execution
Deno Sandbox
vCPU, per hour
Anthropic Code Execution: $0.05
Deno Sandbox: $0.10
RAM, per GiB-hour
Anthropic Code Execution: Included
Deno Sandbox: $0.025
Billing
Anthropic Code Execution: Bundled machine time
Deno Sandbox: Active CPU time only
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
Deno Sandbox: 2 vCPU · 4 GiB
Isolation
Anthropic Code Execution: Container
Deno Sandbox: Firecracker microVM
SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
Deno Sandbox: JavaScript / TypeScript, Python

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Anthropic Code Execution: $0.05
Deno Sandbox: $0.10
RAM, per GiB-hour
Anthropic Code Execution: Included
Deno Sandbox: $0.025
Storage
Anthropic Code Execution: Not listed
Deno Sandbox: Volumes $0.20 per GiB-month after plan allowance. Volumes 300 MB to 20 GB.
Free tier
Anthropic Code Execution: 1,550 free hours per month
Deno Sandbox: Not listed
Paid plan from
Anthropic Code Execution: Not listed
Deno Sandbox: $20 / month
Billing
Anthropic Code Execution: Bundled machine time
Deno Sandbox: Active CPU time only

Limits

Max session
Anthropic Code Execution: Not listed
Deno Sandbox: 30 minutes
Idle stop
Anthropic Code Execution: Not listed
Deno Sandbox: Not listed
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
Deno Sandbox: 2 vCPU · 4 GiB
Concurrent sandboxes
Anthropic Code Execution: Not listed
Deno Sandbox: Up to 20

Platform

Isolation
Anthropic Code Execution: Container
Deno Sandbox: Firecracker microVM
GPU
Anthropic Code Execution: Not listed
Deno Sandbox: Not listed
Snapshots
Anthropic Code Execution: Not listed
Deno Sandbox:
Pause and resume
Anthropic Code Execution:
Deno Sandbox: Not listed

Developer

SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
Deno Sandbox: JavaScript / TypeScript, Python
Integrations
Anthropic Code Execution: Not listed
Deno Sandbox: Not listed

Trust

License
Anthropic Code Execution: Not listed
Deno Sandbox: Not listed
BYOC
Anthropic Code Execution: Not listed
Deno Sandbox: Not listed

Hourly cost

One sandbox running for one hour

Anthropic Code Execution
Deno Sandbox
1 vCPU · 2 GiB
Anthropic Code Execution: $0.050
Deno Sandbox: $0.150
2 vCPU · 4 GiB
Anthropic Code Execution: $0.100
Deno Sandbox: $0.300
4 vCPU · 8 GiB
Anthropic Code Execution: $0.200
Deno Sandbox: $0.600

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Anthropic Code Execution fits when

  • You want the lower list price: $0.100 against $0.300 an hour for 2 vCPU and 4 GiB.
  • You need pause and resume.

Deno Sandbox fits when

  • You want each sandbox in its own microVM.
  • You need snapshots.
  • Your code waits a lot: CPU is billed only while it is in use.
  • You need SOC 2, ISO 27001 and HIPAA.

More comparisons

See all comparisons

Related