Cua Docs

Cloud Fleets

Find tutorials, guides, explanations, and reference for managed cloud sandboxes.

Cloud Fleets provisions and manages sandbox capacity for your workloads. The Sandbox SDK represents a Fleet as a Pool; your code claims a sandbox from the pool and uses that guest computer.

Start with Your first Cloud Fleet to provision a pool, run a command, save a screenshot, and clean up the cloud resources.

Find the right page#

Choose a page based on what you want to do:

Your goalStart here
Learn through a first working exampleYour first Cloud Fleet
Create reusable capacityCreate a sandbox pool with Python or Configure a sandbox pool with Terraform
Control resource lifetimeExpire pools and claims automatically
Prepare a guest environmentPrepare and reference a Fleet image
Understand the modelHow sandboxes work and How Fleet images work
Look up APIs and limitsSandbox SDK reference, Pool reference, and Sandbox runtime support

Which computer runs the work?#

With Fleet, the SDK connects to a claimed cloud guest. Shell commands and GUI actions through that sandbox act inside the guest. With local=True, the SDK uses a sandbox runtime on your own hardware. See How sandboxes work for the distinction between the host, guest, and control connection.

Fleet manages capacity; the Sandbox SDK acquires and uses a guest. The SDK's default guest endpoint is computer-server. Cua Driver can control the desktop where it is installed and targeted, but using it inside a Fleet guest requires a compatible image and a validated connection path. Choosing a Fleet image does not by itself establish Driver integration. Check the image and runtime limits before selecting your environment.

Claims and capacity have separate lifetimes#

Exiting a pool.claim() context releases the claim. The pool can still retain warm sandboxes, and cloud resources can incur usage charges after your workload finishes. The hosted tutorial includes pool deletion; reusable pools need an explicit cleanup or expiry policy. See Pool lifecycle for connection and release semantics, and Expire pools and claims automatically for deadlines and their effect on active work.