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

Run your first sandbox

W&B APIキーを取得します。アカウントをお持ちでない場合は、同じリンクからサインアップしてください。次に、ターミナルでキーを設定します。
uv をインストールしたうえで、次の内容を hello.py として保存します。
hello.py
Python 3.11 とサンドボックスクライアントを使用して実行します。これらがインストールされていない場合は、このコマンドによって自動的にインストールされます。
これらの例では、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.
組織で W&B 専用クラウドを使用している場合は、W&B 専用クラウドでサンドボックスを使用するの手順に従ってください。

Next steps

Continue with the guide for your workload:
最終更新日 2026年9月30日