Skip to content
Skill

Agentcore sandbox

Lets an agent run commands and manage files in AWS AgentCore sandboxes via ComputeSDK

Agentcore sandbox is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
305
Last commit
License
MIT
Listing updated

Similar skills

About Agentcore sandbox

This skill guides an agent through creating and using sandboxes on AWS Bedrock AgentCore Code Interpreter with the @computesdk/aws adapter. It walks through installing the computesdk and @computesdk/aws packages, importing the AgentCore provider factory, and creating a sandbox through the SDK client.

The workflow covers running shell commands inside a sandbox, reading and writing files on its filesystem, and destroying the sandbox once the work is done. The skill points to the adapter README for prerequisites, credential setup, provider configuration and known limitations rather than repeating them.

Users need an AWS account with access to AgentCore and a Node.js/TypeScript project. Credentials come from the default AWS credential chain, and the region is read from the environment or config. It also refers to a separate computesdk skill for the general direct SDK workflow.

When your agent uses it

Run commands in AWS Bedrock AgentCore Code Interpreter sessions. Use for @computesdk/aws/agentcore in a direct SDK integration.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/agentcore-sandbox to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agentcore-sandbox &&
cp -R "$tmp/skills/agentcore-sandbox" ~/.claude/skills/agentcore-sandbox &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/agentcore-sandbox inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/agentcore-sandbox to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agentcore-sandbox &&
cp -R "$tmp/skills/agentcore-sandbox" ~/.agents/skills/agentcore-sandbox &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/agentcore-sandbox inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/agentcore-sandbox to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agentcore-sandbox &&
cp -R "$tmp/skills/agentcore-sandbox" ~/.cursor/skills/agentcore-sandbox &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/agentcore-sandbox inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/computesdk/computesdk.git --path skills/agentcore-sandbox

Or copy the folder to ~/.gemini/skills/agentcore-sandbox yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/agentcore-sandbox:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agentcore-sandbox &&
cp -R "$tmp/skills/agentcore-sandbox" ~/.copilot/skills/agentcore-sandbox &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/agentcore-sandbox inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/computesdk/computesdk.git

Then copy computesdk/skills/agentcore-sandbox into your agent's skills folder as agentcore-sandbox. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Sandbox creation
Shows how to create a sandbox from the AgentCore provider factory through the ComputeSDK client.
Command execution
Covers running shell and Python commands inside an AgentCore sandbox and reading their output.
Filesystem access
Demonstrates writing and reading files in the sandbox so data persists across calls.
Cleanup workflow
Includes destroying the sandbox after the workload finishes.
Adapter setup pointers
Links to the adapter README for prerequisites, credentials, and limitations.

Good for

  • Run a Python script in an isolated AWS sandbox
  • Execute shell commands for an agent task on AgentCore
  • Write intermediate files during a sandboxed workflow
  • Set up a ComputeSDK client backed by AWS Bedrock AgentCore

Agentcore sandbox FAQ

What packages does Agentcore sandbox need installed?

It uses the computesdk and @computesdk/aws npm packages, and imports the agentcore factory from @computesdk/aws/agentcore.

How are AWS credentials handled?

The example uses the default AWS credential chain, with the region taken from environment or config. Setup details are in the adapter README.

Does the skill include scripts?

No. It is a single SKILL.md file with instructions and an example snippet.

How do I install Agentcore sandbox in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agentcore-sandbox to use it in all your projects, or to .claude/skills/agentcore-sandbox in one project.

Does Agentcore sandbox run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Agentcore sandbox?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Agentcore sandbox?

The closest alternatives to Agentcore sandbox are AWS ec2 sandbox, Agentuity sandbox, K8s sandbox, Runtime sandbox and Cocoonstack sandbox.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from computesdk/computesdk

  1. Reference for driving the compute CLI to run sandboxes, Actions and market tasks

    • Open source
    • 305 GitHub stars
    • Developer tools
  2. Guides contributors through adding a sandbox compute provider to ComputeSDK

    • Open source
    • 305 GitHub stars
    • Developer tools
  3. Lets your agent inspect, dispatch and manage ComputeSDK CI workflow runs for your org

    • Open source
    • 305 GitHub stars
    • Developer tools
  4. Lets an agent read ComputeSDK sandbox provider benchmark results, runs and logs

    • Open source
    • 305 GitHub stars
    • Developer tools
  5. Lets an agent check, verify, remove and re-rate a ComputeSDK org's provider keys

    • Open source
    • 305 GitHub stars
    • Cloud and infrastructure
  6. Lets an agent run code, files and servers in ComputeSDK cloud sandboxes

    • Open source
    • 305 GitHub stars
    • Developer tools