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

Run your first sandbox

Choose W&B if you don’t have a CoreWeave console account or prefer W&B billing. Choose CoreWeave to use your CoreWeave account.
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.
CoreWeave Serverless sandboxes are in public preview.
For account requirements and token setup, see Choose and get credentials. 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 26, 2026