W&B Server is a self-hosted deployment of W&B that runs within your own infrastructure. Connecting the W&B SDK and CLI to a self-hosted instance requires pointing them at your server’s URL instead ofDocumentation Index
Fetch the complete documentation index at: https://wb-21fd5541-kb-refresh.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
api.wandb.ai.
Authenticating via the CLI
~/.netrc. You will be prompted to enter your API key, which you can retrieve from your user profile on the self-hosted instance.
Setting the host via environment variable
For containerized jobs or CI/CD pipelines where you cannot run interactive login:
WANDB_BASE_URL takes precedence over any value stored in ~/.netrc.
Setting the host in Python
requests library may reject the connection. Set the path to your CA bundle:
api.wandb.ai) from a self-hosted instance, either unset WANDB_BASE_URL or re-run wandb login without the --host flag:
- 401 on
wandb.init(): Your API key does not exist on the self-hosted instance. API keys are not shared between W&B cloud and self-hosted deployments — generate a new key from your profile on the self-hosted instance. - Connection refused / timeout: The server URL may be wrong, or your machine may need VPN access to reach the internal network.
- License not recognized: See Why is my enterprise license not recognized? for license validation steps.
Administrator User Management Environment Variables