Anthropic Code Execution vs Amazon Bedrock AgentCore Code Interpreter

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

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

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Anthropic Code Execution: $0.05
Amazon Bedrock AgentCore Code Interpreter: $0.0895
RAM, per GiB-hour
Anthropic Code Execution: Included
Amazon Bedrock AgentCore Code Interpreter: $0.00945
Storage
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Code Interpreter: Not listed
Free tier
Anthropic Code Execution: 1,550 free hours per month
Amazon Bedrock AgentCore Code Interpreter: Not listed
Paid plan from
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Code Interpreter: Not listed
Billing
Anthropic Code Execution: Bundled machine time
Amazon Bedrock AgentCore Code Interpreter: Active CPU time only

Limits

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

Platform

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

Developer

SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
Amazon Bedrock AgentCore Code Interpreter: Python
Integrations
Anthropic Code Execution: Not listed
Amazon Bedrock AgentCore Code Interpreter: LangChain

Trust

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

Hourly cost

One sandbox running for one hour

Anthropic Code Execution
Amazon Bedrock AgentCore Code Interpreter
1 vCPU · 2 GiB
Anthropic Code Execution: $0.050
Amazon Bedrock AgentCore Code Interpreter: $0.108
2 vCPU · 4 GiB
Anthropic Code Execution: $0.100
Amazon Bedrock AgentCore Code Interpreter: $0.217
4 vCPU · 8 GiB
Anthropic Code Execution: $0.200
Amazon Bedrock AgentCore Code Interpreter: $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 pause and resume.

Amazon Bedrock AgentCore Code Interpreter fits when

  • You want each sandbox in its own microVM.
  • You use LangChain.
  • 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