Skip to main content

Generate a W&B API key

A W&B API key authenticates requests against the W&B GraphQL Public API on behalf of your account.

1

Sign in to Weights & Biases

Sign in to your W&B account (or create a free account at wandb.ai/signup).

2

Open the API key page

Navigate to wandb.ai/authorize, or click your avatar in the top-right corner and go to User Settings > API keys.

3

Create and copy the key

Click Create new API key, provide a descriptive name, then click Create. Copy the displayed key value immediately.

  • The key is shown ONLY ONCE at creation — store it somewhere secure before closing the dialog.
  • W&B API keys have no scopes, permission picker, or expiration — a key inherits the full permissions of the user who minted it.
  • If you lose the key, you must revoke and re-mint it.

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • W&B API Key
3

Connect

  • Click Connect
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account in your Accounts page.