# AWS Bedrock AgentCore Code Interpreter

Managed code-execution sessions for agents in Amazon Bedrock AgentCore, each in its own microVM, billed per second for CPU actually used and peak memory.

- Operated by: Amazon Web Services, Inc.
- Status: Active [1]
- Website: https://aws.amazon.com/bedrock/agentcore/
- Categories: Agent sandboxes
- Checked: 31 Oct 2026

## AgentCore Code Interpreter (Agent sandboxes)

- Price: $0.0895 /vCPU-h (+ $0.00945 per GB-hour)
- 1-hour session: $0.217 (2 vCPU / 4 GB · rank 19 of 26)
- Fleet month: $1,908 (50 × 8 h × 22 days)
- Billed on: Active CPU (per second)
- Isolation: unknown (sessions up to 8 h)

What to know:

- Active-CPU billing: Only CPU in use is billed, so idle time costs less; the light-use column shows how much.
- Max session 8 h: A sandbox is stopped after 8 h.

### Billing

- Payment: Metered: usage billed afterwards [1]
- Plan minimum: None [1]
- Billing increment: Per second [1]
- Minimum charge: 1 s [1]
- Per-job fee: None [1]

### Runtime

- Billed on: Active CPU [1]
- Isolation: unknown (Each session runs in a dedicated microVM; the hypervisor is not named (the overview page also calls it a containerized environment)) [1]
- Max session: 8 h [1]
- Concurrent sandboxes: 1,000 [1]
- Largest vCPU: 2 [1]
- Largest memory: 8 GB [1]

### Lifecycle

- Survives a stop: Nothing (ephemeral) [3]
- Snapshots: No [3]
- Pause and resume: No [3]
- Fork: No [3]
- Compute billed while stopped: unknown (Sessions have no paused state; inside a running session idle CPU is not charged but memory is) [3]
- Auto-stop: after 15 min [3]
- Start time (vendor claim): unknown (Not published) [3]

### Capabilities

- GPU: No [4]
- Desktop: None [4]
- Coding agents installed: None [4]
- Agent prompt API: No [4]
- SSH: No [4]
- Docker inside: unknown (Not stated in the Code Interpreter docs) [4]
- SDKs: Python, CLI, REST [4]
- SOC 2: Yes [4]

### Storage and network

- Disk included: 10 GB [1]
- Extra disk: unknown (No session storage charge is listed; persistent storage is your own S3 Files or EFS, billed by those services) [1]
- Snapshot storage: unknown (Code Interpreter has no snapshots) [1]
- Egress: unknown (Billed at standard EC2 data transfer rates; no rate on the AgentCore pricing page) [1]

### Platform

- Regions: US East (N. Virginia), US East (Ohio), US West (N. California), US West (Oregon), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Milan), Europe (Paris), Europe (Spain), Europe (Stockholm), Asia Pacific (Malaysia), Asia Pacific (Mumbai), Asia Pacific (Hyderabad), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Thailand), Asia Pacific (Tokyo), Asia Pacific (Seoul), Canada (Central), South America (São Paulo), AWS GovCloud (US-West) [2]
- Your cloud (BYOC): No [2]
- Self-host: No [2]

### Free allowance

- Minutes a month: None [1]
- Credit a month: None [1]
- One-time credit: None [1]

### Prices

| Resource | Price | Per hour |
|---|---|---|
| per vCPU | $0.0895 /h [1] | $0.0895 |
| per GB of memory | $0.00945 /h [1] | $0.00945 |

- Languages are Python, JavaScript and TypeScript, with shell and AWS CLI commands; common libraries are preinstalled. Network mode is Sandbox, Public or VPC.
- Billing runs from microVM boot to shutdown and includes system overhead. The Browser tool uses the same rates.
- Session files are deleted when the session ends; S3 Files and EFS access points can be mounted (VPC mode) for data that must persist.
- Hardware is fixed at up to 2 vCPU and 8 GB per session; the 1,000 concurrent sessions per account (per region) quota can be raised.
- New AWS customers get up to $200 in account-wide Free Tier credits; there is no AgentCore-specific free tier.
- SOC 2 per the AgentCore compliance validation page.

## Sources

[1] https://aws.amazon.com/bedrock/agentcore/pricing/ (checked 31 Oct 2026)
[2] https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agentcore-regions.html (checked 31 Oct 2026)
[3] https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-session-characteristics.html (checked 31 Oct 2026)
[4] https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-tool.html (checked 31 Oct 2026)
