The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing


External Resources

More Info

Page tree
Skip to end of metadata
Go to start of metadata

These environment variables can be used in addition to command-line flags to control the behavior of Sauce Connect. Please note that not all environment variables are supported on all platforms.

When an environment variable is used, it can still be overridden by the command-line. Command-line options – when available – always take precedence. Effective with Sauce Connect Proxy version 4.5.0, some command-line arguments can be passed through a config file or an environment variable. When the same argument is passed through multiple methods, the order of precedence is as follows: Command Line Argument > Config File > Environment Variable

Environment VariableDescriptionPlatformsCommand-Line Option
SAUCE_USERNAMESauce Labs username.

Windows, Linux, Mac OS X


SAUCE_ACCESS_KEYSauce Labs access key.

Windows, Linux, Mac OS X



An HTTP proxy that will be used by Sauce Connect Proxy.

It can be in the format of http://hostname:port or just hostname:port.

Sauce Connect Proxy Version 4.5.0 and above.

On Linux and Mac environments, http_proxy and https_proxy variables can contain proxy credentials in the following format scheme://user:password@host:port

Windows, Linux, Mac OS X



A comma-separated list of hostnames that will not be proxied, even when Sauce Connect is configured to use a proxy. Subdomain wildcarding is supported when the hostname starts with a ".".


    Only requests hitting and will not be proxied, all other requests will be.
    All requests going to any subdomain of will not be proxied, e.g.,

SAUCE_ARES_FLAGSAdvanced flags for the DNS library Sauce Connect use integer. For more information, see, Linux, Mac OS X