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

# Connect Weights & Biases with API Key – StackOne Hub

> Link a Weights & Biases account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Weights & Biases actions.

<section data-guide-section data-guide-scopes="">
  <h2>Generate a W\&B API key</h2>

  <p>A W\&B API key authenticates requests against the W\&B GraphQL Public API on behalf of your account.</p>

  <Steps>
    <Step title="Sign in to Weights & Biases">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://wandb.ai" target="_blank" rel="noopener noreferrer">W\&B account</a> (or create a free account at <a href="https://wandb.ai/signup" target="_blank" rel="noopener noreferrer">wandb.ai/signup</a>).</p>
      </div>
    </Step>

    <Step title="Open the API key page">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to <a href="https://wandb.ai/authorize" target="_blank" rel="noopener noreferrer">wandb.ai/authorize</a>, or click your avatar in the top-right corner and go to <strong>User Settings > API keys</strong>.</p>
      </div>
    </Step>

    <Step title="Create and copy the key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Create new API key</strong>, provide a descriptive name, then click <strong>Create</strong>. Copy the displayed key value immediately.</p>

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

## Linking the Account from the Hub

<Steps>
  <Step title="Navigate to the Hub">
    Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
  </Step>

  <Step title="Fill out the fields">
    Fill out the following fields using details from your provider:

    <ul>
      <li><strong>W\&B API Key</strong></li>
    </ul>
  </Step>

  <Step title="Connect">
    <ul>
      <li>Click <strong>Connect</strong></li>
      <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
      <li>Once authorization is successful, you will see a confirmation popup</li>
    </ul>
  </Step>
</Steps>

If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.
