
Anthropic Code Execution
Sandboxed Python and bash containers that Claude runs through the Anthropic API.
Anthropic Code Execution runs each sandbox in a container. It costs $0.05 per vCPU-hour, with memory included. It includes 1,550 free hours per month for free.
- anthropic.com
- platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool
- platform.claude.com/docs/en/about-claude/pricing
Updated
$0.05
vCPU per hour
Included
RAM per GiB-hour
Not listed
Max session
1 vCPU · 5 GiB
Largest sandbox
Anthropic Code Execution specifications
List prices and limits for Anthropic Code Execution
Pricing
platform- vCPU per hour
- $0.05
- RAM per GiB-hour
- Included
- Storage
- Not listed
- Billing
- Bundled machine time
- Free tier
- 1,550 free hours per month
- Paid plan from
- Not listed
Limits
platform- Max session
- Not listed
- Idle stop
- Not listed
- Sandbox size
- 1 vCPU · 5 GiB
- Default size
- 1 vCPU · 5 GiB
- Concurrent sandboxes
- Not listed
- Storage
- 5 GiB workspace storage
Platform
platform- Isolation
- Container
- GPU
- Not listed
- Snapshots
- Not listed
- Pause and resume
- Idle containers are saved and restored on reuse within 30 days
- Desktop
- Not listed
- Regions
- Not listed
Developer
platform- SDKs
- Python, TypeScript, Go, Java, Ruby
- Integrations
- Not listed
Hourly cost
Anthropic Code Execution next to other providers
One sandbox with 2 vCPU and 4 GiB of RAM for one hour, at list price.
Compute only. Storage and network are not included.
Open the calculatorCompare Anthropic Code Execution

Anthropic Code Execution vs Agent Sandbox
Anthropic Code Execution vs Agent37 Cloud
Anthropic Code Execution vs AgentBay
Anthropic Code Execution vs Alibaba Cloud Agent Sandbox
Anthropic Code Execution vs Amazon Bedrock AgentCore Code Interpreter
Anthropic Code Execution vs AWS Lambda MicroVMs
Anthropic Code Execution vs Azure Container Apps dynamic sessions
Anthropic Code Execution vs Azure Container Apps Sandboxes
Alternatives to Anthropic Code Execution
Agent37 Cloud
Persistent Linux sandboxes and VMs for code and agents.
$0.001 per vCPU-hour, no session limit
Hugging Face Sandboxes
Isolated cloud machines for running AI-generated code.
$0.005 per vCPU-hour, GPUs
Lizard Sandboxes
Firecracker microVM sandboxes for AI agents.
$0.008 per vCPU-hour, no session limit
Recent changes
No changes recorded for Anthropic Code Execution yet.
Related
More pages that include Anthropic Code Execution