# Amazon Bedrock AgentCore Code Interpreter (slim) > Amazon Bedrock AgentCore Code Interpreter is AWS's managed sandbox for running agent-written Python, JavaScript and TypeScript. Each session is a dedicated microVM, reached through the AWS API, the AgentCore SDKs or an MCP server. - Full: https://www.anchorterminal.com/tools/agentcore-code-interpreter.md (~9,050 tokens) · this version ~1,630 tokens · JSON https://www.anchorterminal.com/tools/agentcore-code-interpreter.json · canonical https://www.anchorterminal.com/tools/agentcore-code-interpreter - Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · Updated: 2026-10-09 **BB · 73.1/100 · rank #89 of 842 · #3 in Code execution sandboxes · agent-ready · confidence medium** Assessment: Each session runs in its own microVM with 2 vCPU, 8 GB and a 10 GB disk for up to eight hours, and IAM can scope access to one interpreter. Sessions cannot be paused or resumed, and an AWS account with IAM set-up is needed before a first call. ## Facts - Kind: HTTP API · vendor: Amazon Web Services · category: Code execution sandboxes · legal entity: Amazon Web Services, Inc. · provenance 88/100 - Endpoint: `https://bedrock-agentcore.{region}.amazonaws.com/code-interpreters/{id}/tools/invoke` (HTTP) - Auth: API key · pricing: Pay per use · x402: no · licence: Proprietary service under the AWS Service Terms. The AgentCore SDKs for Python and TypeScript and the AgentCore MCP server are Apache-2.0 - Probe metrics: not measured yet (probes haven't run) - Free tier: No Code Interpreter allowance. New AWS accounts get up to $200 in Free Tier credits, and AWS says most new customers sign up without a payment method - Isolation: A dedicated microVM per session with its own CPU, memory and filesystem, terminated at session end - Languages: Python, JavaScript and TypeScript, on `python`, `nodejs` or `deno` runtimes, with pre-installed libraries - Session length: Default 15 minutes, up to 8 hours - Resources: 2 vCPU, 8 GB of memory and 10 GB of disk per session, not adjustable - Persistence: None managed. No pause, resume or snapshot. Bring-your-own Amazon S3 Files or EFS mounts, VPC required - Network modes: Sandbox (Amazon S3 only), Public (internet) or VPC - Rate limits: 30 requests a second per account for starting sessions and invoking, 5 a second for creating or deleting interpreters, 1,000 concurrent sessions, adjustable - File transfer: 100 MB inline per request, up to 5 GB through Amazon S3 with an execution role - Regions: 22, including AWS GovCloud (US-West) - MCP: `awslabs.amazon-bedrock-agentcore-mcp-server` 0.2.1, a local stdio server with 10 Code Interpreter tools - Prices: CPU $0.0895 per vCPU-hour; Session at the 2 vCPU, 8 GB cap, fully busy $0.2546 per session-hour - Scores: Reliability 85, Performance pending, Schema & documentation 81, Agent ergonomics 75, Security & auth 87, Payments & pricing 30, Task success pending, Maintenance & community 65, Transparency & trust 70 · total over the 7 assessed categories - Why: Reliability, Graded on the hosted lines, for the AWS API. · Schema & documentation, The API model is public as Smithy JSON in aws/api-models-aws, version 2024-02-28, and the SDKs are generated from it (25). · Agent ergonomics, Results stream back as content blocks with stdout and stderr, and we found no control for truncating or sizing output. · Security & auth, IAM with SigV4, roles and short-lived credentials, and policies can name one interpreter ARN (30). · Payments & pricing, No x402, MPP or L402 on the Code Interpreter endpoints. · Maintenance & community, The Python SDK that carries `code_session` shipped 1.24.1 on 7 October 2026, but the newest changes to Code Interpreter itself are from July… · Transparency & trust, Closed service under the AWS Service Terms, with Apache-2.0 SDKs and MCP server (15). - Sources: 38, open questions: 9, both in the full twin - Capabilities: sandbox.code, sandbox.fs - JSON: https://www.anchorterminal.com/api/v1/tools/agentcore-code-interpreter.json - Verify (for the vendor): the badge `https://www.anchorterminal.com/badges/agentcore-code-interpreter.svg` or a link to https://www.anchorterminal.com/tools/agentcore-code-interpreter from a page on aws.amazon.com or one of its subdomains, or the README of github.com/aws/bedrock-agentcore-sdk-python, then `POST https://www.anchorterminal.com/api/v1/verify` `{"slug", "url"}` or `verify_listing` at /mcp; re-checked weekly, no effect on the grade. Snippets in the full twin. ## Before you call it 1. Start a session with `StartCodeInterpreterSession`, then pass its id in the `x-amzn-code-interpreter-session-id` header on every `InvokeCodeInterpreter` call 2. Set `sessionTimeoutSeconds` when starting. The default is 900 seconds and the maximum is eight hours, and the session ends itself at the timeout 3. Stop sessions when done. Billing runs per second while code is busy, and a session left open counts against the 1,000 concurrent-session quota 4. Use `startCommandExecution`, `getTask` and `stopTask` for work longer than the 15-minute synchronous request limit 5. Retry `ThrottlingException` (429) and `InternalServerException` (500) with exponential backoff, and treat `ServiceQuotaExceededException`, returned as HTTP 402, as a quota to raise ## Connect ```bash pip install bedrock-agentcore # or: npm i bedrock-agentcore ``` ```bash awscurl -X POST \ "https://bedrock-agentcore.us-west-2.amazonaws.com/code-interpreters/aws.codeinterpreter.v1/tools/invoke" \ -H "Content-Type: application/json" \ -H "x-amzn-code-interpreter-session-id: $SESSION_ID" \ --service bedrock-agentcore --region us-west-2 \ -d '{"name":"executeCode","arguments":{"language":"python","code":"print(\"Hello, world!\")"}}' ``` Full config and headless snippets are in the full page. Through letme (picks today, calling later): https://letme.dev/agentcore-code-interpreter ## Similar tools | Tool | Grade | Score | Shared capabilities | Slim | | --- | --- | --- | --- | --- | | Microsoft Execution Containers | BB | 76.3 | sandbox.code, sandbox.fs | https://www.anchorterminal.com/tools/microsoft-execution-containers.min.md | | Modal Sandboxes | BB | 75.5 | sandbox.code, sandbox.fs | https://www.anchorterminal.com/tools/modal-sandboxes.min.md | | Vercel Sandbox | B | 69.6 | sandbox.code, sandbox.fs | https://www.anchorterminal.com/tools/vercel-sandbox.min.md | | E2B | B | 68.3 | sandbox.code, sandbox.fs | https://www.anchorterminal.com/tools/e2b.min.md | | Cloudflare Sandbox SDK | B | 67.5 | sandbox.code, sandbox.fs | https://www.anchorterminal.com/tools/cloudflare-sandbox-sdk.min.md | ## Panel reviews (0, desk reviews from public material, no calls made)