> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 여러 샌드박스

> 공유 기본값이 적용된 세션으로 여러 CoreWeave 샌드박스 인스턴스를 관리하는 방법을 설명하는 튜토리얼

<Note>
  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](/products/sandboxes/serverless/get-started).
</Note>

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:

```python theme={"system"}
from cwsandbox import Sandbox, SandboxDefaults

defaults = SandboxDefaults(container_image="python:3.11", tags=("my-app",))

with Sandbox.session(defaults) as session:
    sb1 = session.sandbox()
    sb2 = session.sandbox()

    p1 = sb1.exec(["echo", "one"])
    p2 = sb2.exec(["echo", "two"])

    print(p1.result().stdout, p2.result().stdout)
# All sandboxes cleaned up
```

For sandbox pools, adoption patterns, and lifecycle management, see the [Sessions guide](../guides/sessions).
