Skip to main content
The examples on this page omit auth. To authenticate with your W&B API key, install cwsandbox[wandb] and pass auth=AuthStrategy.WANDB to Sandbox.run(), Sandbox(), or Sandbox.session(). See Get started.
This example shows how to run multiple CoreWeave sandboxes in parallel using a session. A session applies shared defaults across the sandboxes and cleans them up automatically when the block exits. Use this pattern to coordinate work across several sandboxes without managing each lifecycle individually. Sessions manage multiple sandboxes with shared defaults and automatic cleanup:
For sandbox pools, adoption patterns, and lifecycle management, see the Sessions guide.
Last modified on September 30, 2026