sandboxrouter
← Providers

Amazon Bedrock AgentCore Code Interpreter

provider: "agentcore"

Per second; CPU billed on actual use (I/O wait free), memory on peak; fixed 2 vCPU / 8 GB session, this is the 100%-CPU price.

List price per hour

1 vCPU · 2 GB$0.108
2 vCPU · 4 GB$0.217
4 vCPU · 8 GBmax 2 vCPU
8 vCPU · 16 GBmax 2 vCPU
16 vCPU · 32 GBmax 2 vCPU
32 vCPU · 128 GBmax 2 vCPU
Source
aws.amazon.com, 2026-11-13 (an estimate, not a bill)
Billing
CPU only while busy; shown with every core busy
Plan
none needed

Adapter

Supports
Exec + streaming · Files
Max size
2 vCPU · 8 GB
Routing
Chosen when it's the cheapest fit, or as a fallback

Measured on real accounts

Real-account check
13 / 13 steps
2026-11-13
Cold start
930 ms
median, 1 location
Succeeded
100%
of benchmark sandboxes
Size you get
not measured
no cost run yet
Billed vs list price
not measured
no cost run yet

Help verify Amazon Bedrock AgentCore Code Interpreter

Have a Amazon Bedrock AgentCore Code Interpreter account? These run real sandboxes on it, for a few cents at most, and write result files that fill in the blanks above. Results never include your keys. Run them in a clone of the repo and open a pull request with the files: CI checks every file for keys and impossible numbers, and a maintainer reviews each one before it shows here.

terminal
npx @sandboxrouter/sdk cost run --provider agentcore --minutes 10 --by YOUR_GITHUB_USERNAME

Real-account check, step by step

13 of 13 steps passed on a real account, 2026-11-13 (v0.7.0).

  • createpassed
  • exec: stdout, stderr, exit codepassed
  • exec: env and cwdpassed
  • exec: UTF-8 outputpassed
  • exec: streamingoutput arrived only at the end (no live streaming)passed, with a note
  • files: binary round-trippassed
  • files: 1 MB round-trippassed
  • files: missing file is an errorpassed
  • files: visible to commandspassed
  • exec: command timeoutpassed
  • exec: timed-out command was stoppedpassed
  • pause and resumen/a
  • killpassed
  • killed sandbox is gonepassed
setup
npm i @sandboxrouter/sdk @smithy/signature-v4 @aws-crypto/sha256-js @aws-sdk/credential-provider-node
export AGENTCORE_CODE_INTERPRETER_ID=...
export AWS_REGION=...
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
# or
export AGENTCORE_CODE_INTERPRETER_ID=...
export AWS_REGION=...
export AWS_PROFILE=...
use Amazon Bedrock AgentCore Code Interpreter
import { Router } from "@sandboxrouter/sdk";

const router = new Router();
const sbx = await router.create({}, { provider: "agentcore" });
await sbx.exec("uname -a", { onStdout: (c) => process.stdout.write(c) });
await sbx.kill();