Skip to main content
Verify and store your API key for authentication with W&B services. By default, only store credentials locally without verifying them with W&B. To verify credentials, set --verify=True. For server deployments (dedicated cloud or customer-managed instances), specify the host URL using the --host flag. You can also set environment variables WANDB_BASE_URL and WANDB_API_KEY instead of running the login command with host parameters.

Usage

wandb login [KEY] [OPTIONS]

Arguments

ArgumentDescriptionRequired
KEYNo description availableNo

Options

OptionDescription
--cloudLog in to the W&B public cloud (https://api.wandb.ai). Mutually exclusive with —host. (default: False)
--host, --base-urlLog in to a specific W&B server instance by URL (e.g. https://my-wandb.example.com). Mutually exclusive with —cloud.
--reloginForce a new login prompt, ignoring any existing credentials.
--verifyVerify the API key with W&B after storing it. If verification is successful, display the source of the credentials and the default team. (default: False)