Skip to main content
When you’re running a script in an automated environment, you can control W&B with environment variables set before the script runs or within the script.

Optional environment variables

Use these optional environment variables to do things like set up authentication on remote machines.

Singularity environments

If you’re running containers in Singularity you can pass environment variables by pre-pending the above variables with SINGULARITYENV_. More details about Singularity environment variables can be found here.

Running on AWS

If you’re running batch jobs in AWS, it’s easy to authenticate your machines with your W&B credentials. Create an API key at User Settings, and set the WANDB_API_KEY environment variable in the AWS batch job spec.