Run Streamlit as a Windows Service with AlwaysUp

How to Run your Streamlit Application as a Windows Service with AlwaysUp

Automatically start Streamlit whenever your computer boots and keep it running 24/7 in the background — no need to log in first


Last Updated on July 6, 2026

Streamlit is an open-source, Python-based app framework focused on building interactive web applications for data science and machine learning.


To install and run your Streamlit app as a Windows Service with AlwaysUp:

  1. First, ensure that your Streamlit app starts from the command prompt and works as expected. That's required to install it as a Windows Service.

    For this tutorial, we deployed the 30 Days of AI sample application from the Streamlit app gallery in a virtual environment in "C:\Dev\streamlit-app". The main code is in a file named "30-days-ai.py":

    Streamlit application deployed

    Notice that Python created the ".venv\Scripts" sub-folder as part of the installation process. That folder contains streamlit.exe, which we'll use throughout this tutorial:

    Streamlit.exe installed

    With this configuration, this is the full command line to run our application from a command prompt:

    "C:\Dev\streamlit-app\.venv\Scripts\streamlit.exe" run "C:\Dev\streamlit-app\.venv\30-days-ai.py"

    We verified that our command line started Streamlit and the simple application worked as expected:

    Streamlit application running

    Please ensure that you can run your Streamlit application command line, as we did.

    This is important: If you can't get Streamlit working like this, it won't work with AlwaysUp either.

  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:

    1. In the Application field, enter the full path to the Streamlit executable, streamlit.exe. You found this when you built your command line in step 1.

    2. In the Arguments field, enter the parameters for your command line that starts your Streamlit application (from step 1).

    3. In the Start the application field, select Automatically, but shortly after the computer boots.

      This setting — which delays Streamlit by a couple of minutes after a reboot — will ensure that critical system services (like networking and security) are ready and waiting when AlwaysUp launches Streamlit.

    4. And in the Name field, enter the name that you will call the application in AlwaysUp. We have used Streamlit app but feel free to specify another name if you like.

    Streamlit Windows Service: General Settings

  6. Move to the Logon tab and enter the user name and password of the Windows account where you installed Python and Streamlit.

    Streamlit Windows Service: Logon Settings

  7. We're done configuring Streamlit so click the Save button to record your settings. In a couple of seconds, an entry named Streamlit app (or whatever you called it) will show up in the AlwaysUp window. It is not yet running though and its state will be "Stopped":

    Streamlit Windows Service: Installed

  8. To start Streamlit, choose Application > Start "Streamlit app". The state should soon transition to "Running" and Streamlit will be working in the background (in Session 0):

    Streamlit Windows Service: Running

    And with Streamlit running as a Windows Service, please confirm that your Streamlit app is available from your browser.

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

    And please feel free to edit Streamlit in AlwaysUp and explore the many other settings that may be appropriate for your environment.

    For example, you can:


Streamlit not working properly as a Windows Service?

  • 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 your Streamlit application. The AlwaysUp Event Log Messages page explains the more obscure messages.

  • 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!