Anthropic Code Execution vs Amazon Bedrock AgentCore Runtime

Anthropic Code Execution costs $0.05 per vCPU-hour and Amazon Bedrock AgentCore Runtime costs $0.0895 per vCPU-hour. Anthropic Code Execution runs containers. Amazon Bedrock AgentCore Runtime runs 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

Amazon Bedrock AgentCore Runtime

Isolation
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
Amazon Bedrock AgentCore Runtime
vCPU, per hour
Anthropic Code Execution: $0.05
Amazon Bedrock AgentCore Runtime: $0.0895
RAM, per GiB-hour
Anthropic Code Execution: Included
Amazon Bedrock AgentCore Runtime: $0.00945
Billing
Anthropic Code Execution: Bundled machine time
Amazon Bedrock AgentCore Runtime: Active CPU time only
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
Amazon Bedrock AgentCore Runtime: 2 vCPU · 8 GiB
Isolation
Anthropic Code Execution: Container
Amazon Bedrock AgentCore Runtime: MicroVM
SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
Amazon Bedrock AgentCore Runtime: Python, TypeScript

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Anthropic Code Execution: $0.05
Amazon Bedrock AgentCore Runtime: $0.0895
RAM, per GiB-hour
Anthropic Code Execution: Included
Amazon Bedrock AgentCore Runtime: $0.00945
Storage
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Session storage is free during preview. Code storage is billed at Amazon ECR or S3 rates
Free tier
Anthropic Code Execution: 1,550 free hours per month
Amazon Bedrock AgentCore Runtime: Not listed
Paid plan from
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Pay as you go
Billing
Anthropic Code Execution: Bundled machine time
Amazon Bedrock AgentCore Runtime: Active CPU time only

Limits

Max session
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: 8 hours
Idle stop
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: After 15 minutes
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
Amazon Bedrock AgentCore Runtime: 2 vCPU · 8 GiB
Concurrent sandboxes
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Up to 5,000

Platform

Isolation
Anthropic Code Execution: Container
Amazon Bedrock AgentCore Runtime: MicroVM
GPU
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Not listed
Snapshots
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Not listed
Pause and resume
Anthropic Code Execution:
Amazon Bedrock AgentCore Runtime:

Developer

SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
Amazon Bedrock AgentCore Runtime: Python, TypeScript
Integrations
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Claude Agent SDK, LangChain, MCP, OpenAI Agents SDK

Trust

License
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Not listed
BYOC
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Runtime: Not listed

Hourly cost

One sandbox running for one hour

Anthropic Code Execution
Amazon Bedrock AgentCore Runtime
1 vCPU · 2 GiB
Anthropic Code Execution: $0.050
Amazon Bedrock AgentCore Runtime: $0.108
2 vCPU · 4 GiB
Anthropic Code Execution: $0.100
Amazon Bedrock AgentCore Runtime: $0.217
4 vCPU · 8 GiB
Anthropic Code Execution: $0.200
Amazon Bedrock AgentCore Runtime: $0.434

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.217 an hour for 2 vCPU and 4 GiB.
  • You need SOC 2 Type II.

Amazon Bedrock AgentCore Runtime fits when

  • You want each sandbox in its own microVM.
  • You use the Claude Agent SDK, LangChain, MCP or the OpenAI Agents SDK.
  • Your code waits a lot: CPU is billed only while it is in use.
  • You need a sandbox larger than 1 vCPU · 5 GiB.

More comparisons

See all comparisons

Related