> ## Documentation Index
> Fetch the complete documentation index at: https://kiro.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox

> Isolated execution environment for the Kiro Web agent

The sandbox provides a secure, isolated environment where the Kiro Web agent executes tasks. Each task runs in its own sandbox with configurable access controls, ensuring your code and resources remain protected.

You can configure sandbox settings from [Settings > Sandbox](https://app.kiro.dev/settings/sandbox).

## How it works

When you assign a task, the agent:

1. Spins up an isolated sandbox environment
2. Clones authorized repositories into the sandbox
3. Configures the environment based on detected project settings
4. Executes the task with access only to explicitly permitted resources
5. Keeps the sandbox's file state with the session, so you can reattach from any surface and browse its workspace. Deleting the session removes its sandbox

## Browser automation

Every sandbox includes a headless Chrome browser, running inside the same isolated environment, with browser automation tooling preinstalled: the **Playwright MCP server**, the **agent-browser** CLI, and the **Chrome DevTools MCP server**. The agent can use them to open and interact with web applications running in the sandbox — validating UI changes it just made, reproducing browser-based bugs, and driving multi-step web workflows.

No setup is required; ask the agent to verify a page or interact with a running web app and it picks the right tool. For reaching pages outside the sandbox, see [internet access](https://kiro.dev/docs/web/sandbox/internet-access.md).

## Configuration

Configure sandbox access and behavior for your tasks.

  - [Internet Access](https://kiro.dev/docs/web/sandbox/internet-access.md) — Control which domains the agent can reach
  - [Powers and MCP](https://kiro.dev/docs/web/sandbox/mcp.md) — Install Powers or configure custom MCP servers
  - [Environment Variables](https://kiro.dev/docs/web/sandbox/environment-variables.md) — Configure environment variables and secrets for task execution
  - [Environment Configuration](https://kiro.dev/docs/web/sandbox/environment-configuration.md) — Configure the sandbox environment for your project
