wandb.ai. The Python client sends your key and instance hostname to the CoreWeave sandbox service, which validates the key against your instance. Point the client at your instance’s URL to select the correct instance for authentication.
CoreWeave Serverless sandboxes are in public preview.
Before you begin
You need the following:- Sandbox access enabled for your W&B Dedicated Cloud instance. Contact your W&B account team to confirm that your instance has the required server updates and to request access.
- The URL of your W&B Dedicated Cloud instance, for example
https://[INSTANCE].wandb.io. The hostname must end in.wandb.io. Instances on custom domains aren’t supported. - Python 3.11 or newer.
Get an API key from your instance
Create a personal API key on your dedicated instance, not on wandb.ai/authorize:- Sign in to your W&B Dedicated Cloud instance.
- Click your user profile icon, then click User Settings.
- Scroll to the API Keys section and create a key.
Point the client at your instance
Install the Python client with thewandb extra:
[INSTANCE] with your instance’s hostname prefix and [WANDB-API-KEY] with the key you created:
wandb library, which reads WANDB_BASE_URL to determine which W&B instance issued your key.
Run a sandbox
Passauth=AuthStrategy.WANDB to select W&B authentication. Without it, the client looks for a CoreWeave API access token in CWSANDBOX_API_KEY.
Hello! appears in the output.
If authentication fails, confirm that WANDB_BASE_URL matches the instance where you created the key. A key from a dedicated instance doesn’t authenticate against wandb.ai, and a wandb.ai key doesn’t authenticate against a dedicated instance.
Next steps
- Get started with CoreWeave sandboxes covers placement modes, credentials, and spillover.
- The Python client documentation covers lifecycle, execution, file operations, and other SDK patterns.