Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-update-training-api-26.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
新しい APIキー を作成する
To create an API key, select the Personal API key or Service Account API key tab for details.- Personal API key
- Service account API key
To create a personal API key owned by your user ID:
- Log in to W&B, click your user profile icon, then click User Settings.
- Click Create new API key.
- Provide a descriptive name for your API key.
- Click Create.
- Copy the displayed API key immediately and store it securely.
APIキー を確認する
In Dedicated Cloud and Self-Managed:
- Organization admins can find or list API keys for all organization users and service accounts.
- Team admins can find or list API keys for service accounts in teams they administer.
- Non-admin users can find or list their own API keys.
- Personal API key
- Service account API key
To find a personal API key owned by your user ID:
- Log in to W&B, click your user profile icon, then click User Settings.
- Scroll to the API Keys section.
APIキー を削除する
アクセス 権を無効にするには、APIキー を削除します。詳細については、Personal API key または Service Account API key タブを選択してください。- Personal API key
- Service account API key
- wandb.ai/settings に移動します。
- API Keys セクションで、削除したい キー の横にある削除ボタンをクリックします。
APIキー を置換(ローテーション)する
APIキー を置換(ローテーション)するには:- 新しい APIキー を作成します。
- すべての スクリプト、サービス、および 環境 を新しい APIキー を使用するように更新します。
- すべての場所で新しい APIキー が正常に動作することをテストします。
- 古い APIキー を削除します。
Store and handle API keys securely
API keys provide access to your W&B account and should be protected like passwords. Follow these best practices:Recommended storage methods
- Secrets manager: Use a dedicated secrets management system such as AWS Secrets Manager, HashiCorp Vault, Azure Key Vault, or Google Secret Manager.
- Password manager: Use a reputable password manager application.
- OS-level keychains: Store keys in macOS Keychain, Windows Credential Manager, or Linux secret service. Not suggested for production.
What to avoid
- Never commit API keys to version control systems such as Git.
- Do not store API keys in plain text configuration files.
- Do not pass API keys on the command line, because they will be visible in the output of OS commands like
ps. - Avoid sharing API keys through email, chat, or other unencrypted channels.
- Do not hard-code API keys in your source code.
Environment variables
When using API keys in your code, pass them through environment variables:SDK version compatibility
New API keys are longer than legacy keys. When authenticating with older versions of thewandb or weave SDKs, you may encounter an API key length error.
Solution: Update to a newer SDK version:
-
wandbSDK v0.22.3+ -
weaveSDK v0.52.17+
WANDB_API_KEY environment variable as a workaround.