Anthropic Code Execution vs AWS Lambda MicroVMs

Anthropic Code Execution costs $0.05 per vCPU-hour and AWS Lambda MicroVMs costs $0.0997 per vCPU-hour. Anthropic Code Execution runs containers. AWS Lambda MicroVMs runs Firecracker microVMs and limits a session to 8 hours.

Updated

Anthropic Code Execution

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

AWS Lambda MicroVMs

Isolation
Firecracker microVM
Free tier
Not listed
Max session
8 hours

What is different

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

Anthropic Code Execution
AWS Lambda MicroVMs
vCPU, per hour
Anthropic Code Execution: $0.05
AWS Lambda MicroVMs: $0.0997
RAM, per GiB-hour
Anthropic Code Execution: Included
AWS Lambda MicroVMs: $0.0132
Billing
Anthropic Code Execution: Bundled machine time
AWS Lambda MicroVMs: Per second
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
AWS Lambda MicroVMs: 4 vCPU · 8 GiB
Isolation
Anthropic Code Execution: Container
AWS Lambda MicroVMs: Firecracker microVM
SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
AWS Lambda MicroVMs: Python, JavaScript

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Anthropic Code Execution: $0.05
AWS Lambda MicroVMs: $0.0997
RAM, per GiB-hour
Anthropic Code Execution: Included
AWS Lambda MicroVMs: $0.0132
Storage
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Snapshot storage $0.08 per GB-month (US East). Snapshot write $0.0038 per GB. Snapshot read $0.00155 per GB.
Free tier
Anthropic Code Execution: 1,550 free hours per month
AWS Lambda MicroVMs: Not listed
Paid plan from
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Not listed
Billing
Anthropic Code Execution: Bundled machine time
AWS Lambda MicroVMs: Per second

Limits

Max session
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: 8 hours
Idle stop
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Not listed
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
AWS Lambda MicroVMs: 4 vCPU · 8 GiB
Concurrent sandboxes
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Not listed

Platform

Isolation
Anthropic Code Execution: Container
AWS Lambda MicroVMs: Firecracker microVM
GPU
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Not listed
Snapshots
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs:
Pause and resume
Anthropic Code Execution:
AWS Lambda MicroVMs:

Developer

SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
AWS Lambda MicroVMs: Python, JavaScript
Integrations
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Not listed

Trust

License
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Not listed
BYOC
Anthropic Code Execution: Not listed
AWS Lambda MicroVMs: Not listed

Hourly cost

One sandbox running for one hour

Anthropic Code Execution
AWS Lambda MicroVMs
1 vCPU · 2 GiB
Anthropic Code Execution: $0.050
AWS Lambda MicroVMs: $0.126
2 vCPU · 4 GiB
Anthropic Code Execution: $0.100
AWS Lambda MicroVMs: $0.252
4 vCPU · 8 GiB
Anthropic Code Execution: $0.200
AWS Lambda MicroVMs: $0.504

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.252 an hour for 2 vCPU and 4 GiB.

AWS Lambda MicroVMs fits when

  • You want each sandbox in its own microVM.
  • You need snapshots.
  • You need a sandbox larger than 1 vCPU · 5 GiB.

More comparisons

See all comparisons

Related