Run Sauce Connect Proxy as a Windows Service

How to Install Sauce Connect Proxy as a Windows Service with AlwaysUp

Automatically launch Sauce Connect in the background whenever your computer reboots. Ensure that your tunnel is available 24/7 without anyone having to log on


Last Updated on September 28, 2026

Sauce Connect Proxy opens a secure tunnel connection for testing between a Sauce Labs virtual machine or real device and a website or mobile app hosted on your local computer or behind a corporate firewall. It provides a means for Sauce Labs services to access your application or website.


To install Sauce Connect Proxy as a Windows Service with AlwaysUp:

  1. If necessary, download, install and configure Sauce Connect. Ensure that it works as expected and note the command line you run to establish the tunnel.

    For this tutorial, we installed Sauce Connect in folder "C:\sauce-connect" and created configuration file "C:\sauce-connect\sauce-connect.yaml". This command launched the tunnel on our machine:

    C:\sauce-connect\sauce-connect.exe run --config-file C:\sauce-connect\sauce-connect.yaml
  2. Download and install AlwaysUp, if necessary.

  3. Start AlwaysUp.

  4. Select Application > Add to open the Add Application window:

    Add Application

  5. On the General tab:

    • In the Application field, enter the full path to the Sauce Connect Proxy executable, sauce-connect.exe. You'll find it in your Sauce Connect folder.

    • In the Arguments field, enter your parameters to sauce-connect.exe (from step 1).

    • In the Start the application field, select Automatically, but shortly after the computer boots. This setting — which delays service startup by about 2 minutes after boot — will ensure that critical system services (like networking and domain authentication) are ready and waiting when Sauce Connect is launched in the background.

    • And in the Name field, enter the name that you will call the application in AlwaysUp. We went with Sauce Connect Proxy but you can specify another name if you like.

    Sauce Connect Proxy Windows Service: General settings

  6. Move to the Monitor tab. Let's setup a nightly restart of Sauce Connect Proxy to keep the tunnel "fresh" and free of leaks.

    Check the Every box and enter a time when no one is likely to be using the tunnel. Note that restarting sc.exe will be very quick so downtime will be very minimal (only a few seconds).

    Sauce Connect Proxy Windows Service: Restart nightly

  7. Switch to the Startup tab and check the Ensure that the Windows networking components have started box. Sauce Connect Proxy communicates via TCP/IP, this option will keep the server from starting before the network is completely ready.

    Sauce Connect Proxy Windows Service: Ensure network is ready

  8. Since you won't see the console when the proxy is running in the background as a service, let's capture the output to a file.

    Go to the Extras tab, check the Capture output to this log file box and enter the full path to the log file:

    Sauce Connect Proxy Windows Service: Capture console output

  9. We're done configuring Sauce Connect Proxy as a service so click the Save button to record your settings. In a couple of seconds, an application called Sauce Connect Proxy will show up in the AlwaysUp window. It's not yet running though and the state will be "Stopped":

    Sauce Connect Proxy Windows Service: Installed

  10. To start Sauce Connect Proxy from AlwaysUp, choose Application > Start "Sauce Connect Proxy". In a few seconds, the status will change to "Running" and the tunnel will be operating in the background:

    Sauce Connect Proxy Windows Service: Running

    Finally, confirm that your tunnel has been established and is working as expected. For example, things look normal in our log file (set in step 8):

    Sauce Connect Proxy log file

  11. That's it! Next time your computer boots, Sauce Connect Proxy will start up immediately, in the background, without anyone needing to log on. Please restart your computer now and test that everything works as expected after Windows comes back to life.

    And please feel free to edit Sauce Connect Proxy in AlwaysUp to check out the many other settings that may be appropriate for your environment.

    For example, send email alerts if it stops, restart the tunnel if sauce-connect.exe uses too much RAM, and much more.


Sauce Connect Proxy not working properly as a Windows Service?

  • Review the Sauce Connect Proxy troubleshooting guide, which discusses configuration, errors and more.

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a Windows Service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and Sauce. The AlwaysUp Event Log Messages page explains what each message means.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Our 14,000+ customers include...
AlwaysUp is fully compatible with Windows 11 AlwaysUp is fully compatible with Windows Server 2025
Over 97,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 20+ years!