- The
WANDB_API_KEYenvironment variable - The
api_keysetting in a system or workspace settings file - The
.netrcfile (~/.netrc,~/_netrc, or theNETRCenv var path) - An interactive prompt (if a TTY is available)
--host, or set the WANDB_BASE_URL environment variable.
Examples:
Log in interactively (prompts for API key)
Usage
Arguments
key
| Name | Default | Type |
|---|---|---|
key | None | STRING |
Options
cloud
Log in to the W&B public cloud (https://api.wandb.ai). Mutually exclusive with —host.
| Flag | Default | Type |
|---|---|---|
--cloud | False | BOOL |
host
Log in to a specific W&B server instance by URL (e.g. https://my-wandb.example.com). Mutually exclusive with —cloud.
| Flag | Default | Type |
|---|---|---|
--host, --base-url | None | STRING |
relogin
Force a new login prompt, ignoring any existing credentials.
| Flag | Default | Type |
|---|---|---|
--relogin | None | BOOL |
anonymously
Deprecated. Has no effect and will be removed in a future version.
| Flag | Default | Type |
|---|---|---|
--anonymously | False | BOOL |
verify
Verify the API key with W&B after storing it. If verification is successful, display the source of the credentials and the default team.
| Flag | Default | Type |
|---|---|---|
--verify | False | BOOL |
help
Show this message and exit.
| Flag | Default | Type |
|---|---|---|
--help | False | BOOL |