Share feedback
Answers are generated based on the documentation.

Docker Sandboxes API and SDK

Note

The Docker Sandboxes API and SDK are experimental. Features, interfaces, and behavior may change.

Use the Docker Sandboxes API to create cloud sandboxes, run commands, and transfer files from your applications and automated workflows. You can also manage related resources, including images, snapshots, volumes, and secrets.

To try it, run your first cloud sandbox with the TypeScript SDK. The tutorial uses a bundled kit that supplies a shell environment for running commands.

Activate cloud access

To use the API or SDK, activate a Docker Agentic Platform subscription. Use the same Docker account to authenticate your application.

Cloud compute is billed separately from your Docker subscription. See Billing for details.

Choose an interface

Use the TypeScript SDK in your JavaScript or TypeScript application. The SDK provides typed requests and responses, waits for sandboxes to start or stop, and handles file transfers and interactive processes. See Install the SDK for installation instructions.

You can also call the REST API directly from any language or HTTP tool. See the API reference for operations, request fields, responses, and the downloadable OpenAPI specification.

To run agents from your terminal, see Docker Sandboxes.

Develop your application