Amazon Bedrock AgentCore Code Interpreter vs E2B

Amazon Bedrock AgentCore Code Interpreter costs $0.0895 per vCPU-hour and E2B costs $0.0504 per vCPU-hour. Amazon Bedrock AgentCore Code Interpreter runs microVMs and limits a session to 8 hours. E2B runs Firecracker microVMs and limits a session to 24 hours.

Updated

Amazon Bedrock AgentCore Code Interpreter

Isolation
MicroVM
Free tier
Not listed
Max session
8 hours

E2B

Isolation
Firecracker microVM
Free tier
$100 credit, one time
Max session
24 hours

What is different

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

Amazon Bedrock AgentCore Code Interpreter
E2B
vCPU, per hour
Amazon Bedrock AgentCore Code Interpreter: $0.0895
E2B: $0.0504
RAM, per GiB-hour
Amazon Bedrock AgentCore Code Interpreter: $0.00945
E2B: $0.0162
Billing
Amazon Bedrock AgentCore Code Interpreter: Active CPU time only
E2B: Per second
Max session
Amazon Bedrock AgentCore Code Interpreter: 8 hours
E2B: 24 hours
Largest sandbox
Amazon Bedrock AgentCore Code Interpreter: 2 vCPU · 8 GiB
E2B: 8 vCPU · 8 GiB
Concurrent sandboxes
Amazon Bedrock AgentCore Code Interpreter: Up to 1,000
E2B: Up to 1,100
Isolation
Amazon Bedrock AgentCore Code Interpreter: MicroVM
E2B: Firecracker microVM
SDKs
Amazon Bedrock AgentCore Code Interpreter: Python
E2B: Python, JavaScript / TypeScript
Integrations
Amazon Bedrock AgentCore Code Interpreter: LangChain
E2B: LangChain, OpenAI Agents SDK, Vercel AI SDK, MCP, Claude Code

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Amazon Bedrock AgentCore Code Interpreter: $0.0895
E2B: $0.0504
RAM, per GiB-hour
Amazon Bedrock AgentCore Code Interpreter: $0.00945
E2B: $0.0162
Storage
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B: Free
Free tier
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B: $100 credit, one time
Paid plan from
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B: $150 / month
Billing
Amazon Bedrock AgentCore Code Interpreter: Active CPU time only
E2B: Per second

Limits

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

Platform

Isolation
Amazon Bedrock AgentCore Code Interpreter: MicroVM
E2B: Firecracker microVM
GPU
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B: No
Snapshots
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B:
Pause and resume
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B:

Developer

SDKs
Amazon Bedrock AgentCore Code Interpreter: Python
E2B: Python, JavaScript / TypeScript
Integrations
Amazon Bedrock AgentCore Code Interpreter: LangChain
E2B: LangChain, OpenAI Agents SDK, Vercel AI SDK, MCP, Claude Code

Trust

License
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B: Apache-2.0
BYOC
Amazon Bedrock AgentCore Code Interpreter: Not listed
E2B: Enterprise plan

Hourly cost

One sandbox running for one hour

Amazon Bedrock AgentCore Code Interpreter
E2B
1 vCPU · 2 GiB
Amazon Bedrock AgentCore Code Interpreter: $0.108
E2B: $0.083
2 vCPU · 4 GiB
Amazon Bedrock AgentCore Code Interpreter: $0.217
E2B: $0.166
4 vCPU · 8 GiB
Amazon Bedrock AgentCore Code Interpreter: $0.434
E2B: $0.331

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Amazon Bedrock AgentCore Code Interpreter fits when

  • Your code waits a lot: CPU is billed only while it is in use.
  • You need SOC 2.

E2B fits when

  • A session must run longer than 8 hours.
  • You want an open-source platform (Apache-2.0) that you can self-host.
  • You use the OpenAI Agents SDK, the Vercel AI SDK, MCP or Claude Code.
  • You want the lower list price: $0.166 against $0.217 an hour for 2 vCPU and 4 GiB.

More comparisons

See all comparisons

Related