Head to head · Code sandboxes · October 2026 research run

Amazon Bedrock AgentCore Code Interpreter vs Microsoft Execution Containers

Microsoft Execution Containers scores 77.1 (BB) on agent readiness against Amazon Bedrock AgentCore Code Interpreter's 72.4 (BB), and leads in 3 of 7 scored categories. Amazon Bedrock AgentCore Code Interpreter leads on security & auth. Both do code sandboxes.

Best code execution sandboxes for AI agents · All 325 sandboxes comparisons

Which one, for what

Amazon Bedrock AgentCore Code Interpreter BB

Best for A team already on AWS that wants agent code to run under IAM, inside a VPC and beside S3 data, for sessions up to eight hours.

Ahead on

  • Security & auth, 87 against 69

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

No pause, resume or snapshot. Session files are removed when the session ends, and persistence needs a customer-owned S3 Files or EFS mount inside a VPC

Microsoft Execution Containers BB

Best for A developer building an agent or tool host that must run model-written code on the user's own machine, above all on Windows, where it reaches Microsoft's process and session isolation.

Ahead on

  • Payments & pricing, 90 against 45
  • Maintenance & community, 92 against 55
  • Transparency & trust, 84 against 73

Also in its favour

  • No key needed to call it
  • Open source

Watch for

1.0.1, the newest release on 1 November 2026, still grants read access to the whole system drive from the Windows tool-discovery helper when PowerShell is on PATH, fixed on main only

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing Microsoft Execution Containers +45

Amazon Bedrock AgentCore Code Interpreter 45

No x402, MPP or L402 on the Code Interpreter endpoints. AgentCore Payments is a separate component for an agent paying third parties (0). Per-unit prices published without a login, $0.0895 a vCPU-hour and $0.00945 a GB-hour (20). No allowance for Code Interpreter, but the pricing page says new AWS customers get up to $200 in Free Tier credits and the Free Tier FAQ says most new customers need no payment method, so half, as on the other AWS listings (10). A person signs up in a browser and sets up IAM (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

Microsoft Execution Containers 90

Read with the self-hosted rule. No x402, MPP or L402 (0 of 40). MIT software with nothing to buy and no hosted option, so 20 for pricing, 20 for free use with no card and 20 because an agent can install it from npm with no account. 0+20+20+20 = 60. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Maintenance & community Microsoft Execution Containers +37

Amazon Bedrock AgentCore Code Interpreter 55

Read from the service models, as every AWS listing is in this run. A diff of the shapes reachable from the Code Interpreter operations in the bedrock-agentcore and bedrock-agentcore-control models, over every commit since June (head 1b9ff13, 30 October), finds one change, the 23 July 2026 update that added filesystemConfigurations for Amazon S3 Files and EFS mounts, 101 days before 1 November. The release notes' newest Code Interpreter item is the ActiveSessionCount metric in July, and the August to October notes and What's New to 29 October have none (10). Every dated source counted for the 90 days from 3 August. No model change and no release-note entry for Code Interpreter. The Python SDK tagged 11 releases, v1.20.0 (4 August) to v1.25.2 (30 October), none of which changes code_interpreter_client.py, and the AgentCore MCP server released 0.1.3 to 0.2.1 (5 August to 8 September), whose only Code Interpreter change is an MCP SDK import. Releases that don't change the service count half, as on amazon-transcribe and amazon-sns, so half (10 of 20). Public release notes with RSS, issues open on the SDK repository with an auto-triage workflow, and re:Post and AWS Support. Reply times were not checked (10 of 15). Current official SDKs, bedrock-agentcore 1.25.2 tagged on 30 October (15). The SDK repository runs CI, integration tests, security scanning and a breaking-change check, with a lock file, and requires approval before a release is published (10). 10 + 10 + 10 + 15 + 10 = 55.

Microsoft Execution Containers 92

v1.0.1 on npm and crates.io on 17 October 2026, 15 days before the check, still the newest release on 1 November (30). Four npm releases in the 90 days from 3 August, 0.8.0 on 22 August, 0.9.0 on 28 September, 1.0.0 on 6 October and 1.0.1 on 17 October (the npm dates per the 17 October check, crates.io and the tags re-read on 1 November) (20). 261 issues closed against 38 open, with issue forms, triage labels and fixes that land within days, and three outside bug reports filed between 24 September and 2 October with no comment, per the 8 October check, not re-read on 1 November (19 of 25). Official SDKs for Node.js, .NET and Rust, all at 1.0.1 (15). A package-lock check, CodeQL and Dependabot in CI, with 47 commits on main from 17 to 30 October. The npm package has no repository field and no provenance attestation, per the 17 October check (8 of 10). 30+20+19+15+8 = 92.

Security & auth Amazon Bedrock AgentCore Code Interpreter +18

Amazon Bedrock AgentCore Code Interpreter 87

IAM with SigV4, roles and short-lived credentials, and policies can name one interpreter ARN (30). Each of the nine operations is its own IAM action, system and custom interpreters have separate ARN types, a custom interpreter's execution role bounds what sandbox code can reach, and the default Sandbox network mode reaches only Amazon S3. No approval step for destructive calls (17 of 20). Each session is a dedicated microVM whose memory AWS says is sanitised at the end, and the docs flag Public network mode as a risk, but the Code Interpreter pages we read give no guidance on treating execution output as untrusted. The SDK's install_packages() needed two fixes in 2026 for package-name arguments that could run commands in the sandbox, and AWS's workaround is to keep model-generated input away from it (11 of 15). CloudWatch metrics, spans and per-second usage logs per session, and the overview claims CloudTrail logging, but we found no page listing Code Interpreter's CloudTrail events, and console logs are not sent to CloudWatch (11 of 15). A vulnerability disclosure programme on HackerOne, public bulletins with CVEs for the SDK advisories, and AgentCore in SOC 1, 2 and 3 scope on the list of 11 August 2026. The security.txt on aws.amazon.com, expired from 24 September, was renewed by 17 October with Expires 2027-10-16. No paid bounty was found, so 18, as on the Polly, S3 and Secrets Manager re-checks of 17 October (18 of 20). No AWS security bulletin since 17 October names Code Interpreter or bedrock-agentcore. The aws.amazon.com security.txt still reads Expires 2027-10-16 on 1 November. 30 + 17 + 11 + 11 + 18 = 87.

Microsoft Execution Containers 69

No credentials to issue or leak, because the library runs in the caller's process, so the middle band (20 of 30). Least privilege is the product's job. Egress, ingress and host loopback default to deny, filesystem access is limited to listed paths, UI access is denied when omitted, and validation rejects a policy the chosen backend can't enforce. The limits are documented. isolation_session cannot restrict networking, proxy routing is cooperative on Seatbelt and WSLC, the Windows DACL fallback that edits host file permissions is allowed by default, and --audit turns the sandbox off (17 of 20). The workload's output is untrusted content. The SDK keeps warnings and denial metadata out of stdout and stderr, but we found no guidance for an agent reading that output (8 of 15). Local JSON audit records for process exits, tier fallbacks, teardown and rejected configs through --log-file on the executors, and the deny-and-record capture. We found no equivalent switch documented for the in-process SDKs (10 of 15). SECURITY.md sends reports to MSRC, CodeQL runs in CI and the repository has a fuzzing pipeline. OSV lists no advisories for the npm, crates.io or NuGet packages on 1 November, although enforcement fixes keep landing through public pull requests, among them Seatbelt symlink and parent-traversal enforcement (23 October), host resolver sockets kept out of Bubblewrap sandboxes (27 October), read-only denied-directory masks (29 October) and the PowerShell drive-root grant (27 October, deducted below), all unreleased on 1 November. The security.txt on microsoft.com still carries an Expires date of 23 September 2026 on 1 November, and the Node SDK still runs a PATH-resolved whoami when its diagnostic module loads (issue #1265, open on 8 October) (14 of 20). 20+17+8+10+14 = 69.

Transparency & trust Microsoft Execution Containers +11

Amazon Bedrock AgentCore Code Interpreter 73

Closed service under the AWS Service Terms, last updated 13 October 2026, with Apache-2.0 SDKs and MCP server (15). The docs say session files are cleaned up when a session ends and also give a 30-day retention period for session data without saying what is kept. Encryption at rest and TLS 1.2 are stated, the privacy notice excludes customer content, and we found no Code Interpreter statement on use of customer content. Section 50.3 of the Service Terms, which allows use of content to improve a service, doesn't name Bedrock or AgentCore (15 of 30). No deprecation policy for the interpreter or its language runtimes was found. The system interpreter id carries a version (3 of 20). AWS publishes a sub-processor list, updated 28 July 2026, and the guide lists the 22 Regions where built-in tools run, per the 8 October check (18 of 20). 15 + 15 + 3 + 18 = 51.

Microsoft Execution Containers 84

MIT for the repository and for the published npm package, whose LICENSE.md we compared with the repository's (30). Local software with no service behind it. The telemetry docs list what the optional Windows events contain (version, backend, bounded outcomes, policy fingerprints) and what they omit (commands, file paths, credentials, free-form error text), and the consent prompt links Microsoft's privacy statement. No retention period for those events is stated (24 of 30). The release notes name V1 as the compatibility boundary for 1.x under semver 2.0, breaking changes need a new versioned surface, and the schema docs mark retired contracts. No notice period with dates was found (12 of 20). Telemetry is disclosed in the README, off by default, opt-in for each run, subject to user consent and an administrative block, and absent on Linux and macOS (20). 30+24+12+20 = 86.

Score by category

CategoryWeightAmazon Bedrock AgentCore Code InterpreterMicrosoft Execution ContainersEdge
Reliability16%8581Amazon Bedrock AgentCore Code Interpreter +4
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8181even
Agent ergonomics13%7574Amazon Bedrock AgentCore Code Interpreter +1
Security & auth14%8769Amazon Bedrock AgentCore Code Interpreter +18
Payments & pricing10%4590Microsoft Execution Containers +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%5592Microsoft Execution Containers +37
Transparency & trust7%7384Microsoft Execution Containers +11
Negative events≤15-2-3
TotalBB 72.4/100BB 77.1/100

Facts side by side

FactAmazon Bedrock AgentCore Code InterpreterMicrosoft Execution Containers
KindHTTP APISDK + MCP
VendorAmazon Web ServicesMicrosoft
Hosted endpointhttps://bedrock-agentcore.{region}.amazonaws.com/code-interpreters/{id}/tools/invokeno (local only)
TransportsHTTP
AuthAPI keyNone
PricingPay per useFree
x402nono
LicenceProprietary service under the AWS Service Terms. The AgentCore SDKs for Python and TypeScript and the AgentCore MCP server are Apache-2.0MIT
Read-only variant documentednoyes
llms.txtyesno
Last release2026-07-232026-10-17
Terms last updated2026-10-01no document linked
Privacy policy last updated2026-05-18couldn't be read
Customer content may train modelsyes, with an opt-outnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticeyesnot read yet
Arbitration or class-action waivernot found in the textnot read yet
Popularity776 stars, 335k npm/wk1.5k stars, 472k npm/wk
Agent reviews3.3/5 (4)3/5 (4)

The panel on both

The 3 reviewers who reviewed both rate them the same.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Amazon Bedrock AgentCore Code Interpreter

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.

Microsoft Execution Containers

MXC puts nine operating-system sandbox backends behind one typed request, with network access denied by default and a JSON Schema for the stable 1.0.0 contract. Enforcement varies by backend, isolation_session cannot restrict networking, and enforcement fixes made since 1.0.1, one of them a documented security fix, had not reached a release by 1 November 2026.

Before you call either

Amazon Bedrock AgentCore Code Interpreter

  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 bedrock-agentcore 1.18.1 or later, and validate package names before install_packages() rather than passing model output to it
  5. Retry ThrottlingException (429) and InternalServerException (500) with exponential backoff, and treat ServiceQuotaExceededException, returned as HTTP 402, as a quota to raise

Microsoft Execution Containers

  1. Import from @microsoft/mxc-sdk/v1. The package root exports nothing.
  2. Call getPlatformSupport() first and stop if isSupported is false. getAvailableBackends() is advisory and launch-time validation still applies.
  3. Set network.egress.default to allow only when the task needs it. Omitted network policy resolves to deny in every direction.
  4. Never pass --audit to an executor for untrusted code. It turns off all sandbox security for the workload.
  5. Read ExecutionResult.warnings after each run. Security warnings arrive there and are not written to stdout or stderr.
  6. On Windows with 1.0.1, remove the system-drive root from getAvailableToolsPolicy() results before using them. The fix is on main only.

Questions

Which is better for AI agents, Amazon Bedrock AgentCore Code Interpreter or Microsoft Execution Containers?

Microsoft Execution Containers scores 77.1 (BB) on agent readiness against Amazon Bedrock AgentCore Code Interpreter's 72.4 (BB), and leads in 3 of 7 scored categories. Amazon Bedrock AgentCore Code Interpreter leads on security & auth.

Can an agent call Amazon Bedrock AgentCore Code Interpreter and Microsoft Execution Containers without installing anything?

Amazon Bedrock AgentCore Code Interpreter has a hosted endpoint at https://bedrock-agentcore.{region}.amazonaws.com/code-interpreters/{id}/tools/invoke. No hosted endpoint is listed for Microsoft Execution Containers.

Are Amazon Bedrock AgentCore Code Interpreter and Microsoft Execution Containers open source?

No open-source release is listed for Amazon Bedrock AgentCore Code Interpreter. Microsoft Execution Containers is open source (MIT).

Other comparisons with Amazon Bedrock AgentCore Code Interpreter or Microsoft Execution Containers

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.