# Agentcore sandbox

> Agentcore sandbox is an open-source agent skill for cloud and infrastructure. Lets an agent run commands and manage files in AWS AgentCore sandboxes via ComputeSDK. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/computesdk/computesdk/tree/main/skills/agentcore-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** agentcore-sandbox
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/computesdk/computesdk/tree/HEAD/skills/agentcore-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/agentcore-sandbox)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [AWS ec2 sandbox](https://ai-powered.com/skills/aws-ec2-sandbox): AWS ec2 sandbox is an open-source agent skill for cloud and infrastructure.
- [Agentuity sandbox](https://ai-powered.com/skills/agentuity-sandbox): Agentuity sandbox is an open-source agent skill for developer tools.
- [K8s sandbox](https://ai-powered.com/skills/k8s-sandbox): K8s sandbox is an open-source agent skill for cloud and infrastructure.
- [Runtime sandbox](https://ai-powered.com/skills/runtime-sandbox): Runtime sandbox is an open-source agent skill for cloud and infrastructure.
- [Cocoonstack sandbox](https://ai-powered.com/skills/cocoonstack-sandbox): Cocoonstack sandbox is an open-source agent skill for cloud and infrastructure.
- [Neevcloud sandbox](https://ai-powered.com/skills/neevcloud-sandbox-computesdk): Neevcloud sandbox is an open-source agent skill for cloud and infrastructure.
- [Cloud run sandbox](https://ai-powered.com/skills/cloud-run-sandbox): Cloud run sandbox is an open-source agent skill for cloud and infrastructure.
- [Cloudflare sandbox](https://ai-powered.com/skills/cloudflare-sandbox): Cloudflare sandbox is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/agentcore-sandbox
