Skip to main content
Run a command in a serverless sandbox and print its output. No cluster setup is required.

Run your first sandbox

Get your W&B API key. If you don’t have an account, sign up through the same link. Then set the key in your terminal:
With uv installed, save this as hello.py:
hello.py
Run it with Python 3.11 and the sandbox client. The command installs them if needed:
These examples use a key from wandb.ai. The example prints the following output and stops the sandbox when it finishes:
Output
The sandbox has 1 CPU and 1 GiB of memory. Serverless sets resource limits equal to requests. Change resources to choose its CPU and memory. For concurrent quotas, rate limits on create requests, and quota errors, see Limits and quotas.
Serverless Sandboxes is generally available, and usage is billed. Access is enabled per organization. To request access for your organization, contact support.
If your organization uses W&B Dedicated Cloud, follow Use sandboxes with W&B Dedicated Cloud.

Next steps

Continue with the guide for your workload:
Last modified on September 30, 2026