# Docker Sandboxes


Docker Sandboxes run AI coding agents in isolated environments on your machine
or on Docker-managed cloud infrastructure. Use the `sbx` CLI to create and
manage either kind of sandbox.

The `sbx` CLI and local sandbox compute are free to use, including for commercial
work. Cloud compute uses a
[pay-as-you-go subscription](https://docs.docker.com/agentic-platform/signup/#billing).
Model-provider charges are separate.

Organization admins can
[centrally manage sandbox network, filesystem, and MCP policies](https://docs.docker.com/ai/governance/organization/),
for local sandboxes across developer machines.
Available on a separate paid subscription.

## Get started

[Install the `sbx` CLI](https://docs.docker.com/ai/sandboxes/install/) and sign in, then choose where to run your
agent:

| Environment | Use it for | Start here |
| --- | --- | --- |
| Local sandboxes | Work with files and supported hardware on your machine | [Get started locally](https://docs.docker.com/ai/sandboxes/get-started/) |
| Cloud sandboxes | Run on Docker-managed compute without local virtualization | [Get started in the cloud](https://docs.docker.com/ai/sandboxes/cloud/#get-started) |

The two environments have separate credentials, network policies, and lifecycle
controls. See [Compare local and cloud sandboxes](https://docs.docker.com/ai/sandboxes/cloud/local-vs-cloud/)
before adapting a workflow.

To create and manage cloud sandboxes from your application, see
[Sandboxes API and SDK](https://docs.docker.com/ai/sandboxes-api/).

## Explore the docs

The following guides describe local sandbox workflows. For cloud workflows,
see [Cloud sandboxes](https://docs.docker.com/ai/sandboxes/cloud/).


- [Agents](/ai/sandboxes/agents/): Choose an agent and configure it for local sandboxes.

- [Workflows](/ai/sandboxes/workflows/): Use Git, local development tools, authentication, and automation in sandboxes.

- [Configuration](/ai/sandboxes/configuration/): Manage credentials, project environments, GPU passthrough, and upstream proxies.

- [Integrations](/ai/sandboxes/integrations/): Connect editors and applications to a sandbox over SSH.

- [MCP gateway](/ai/sandboxes/mcp-gateway/): Register MCP servers and connect them to sandboxed agents.

- [Kits](/ai/sandboxes/customize/): Package tools and configuration into reusable sandbox environments.

- [Architecture](/ai/sandboxes/architecture/): Understand microVM isolation, workspace mounting, and networking.

- [Security](/ai/sandboxes/security/): Review isolation, credential handling, and network policies.

- [CLI reference](/reference/cli/sbx/): Find commands and options for the `sbx` CLI.

- [Troubleshooting](/ai/sandboxes/troubleshooting/): Diagnose common issues and find fixes.

- [FAQ](/ai/sandboxes/faq/): Find answers about login requirements, telemetry, and other sandbox behavior.



## Feedback

Your feedback shapes what gets built next. If you run into a bug, hit a
missing feature, or have a suggestion, open an issue at
[github.com/docker/sbx-releases/issues](https://github.com/docker/sbx-releases/issues).

