Setup instructions for Linux

October 20, 2025 ยท View on GitHub

Dependencies:

  • Python
  • Git (Recommended)

Setup:

  1. Clone the repository with Git:

    git clone https://github.com/daniandtheweb/sd.cpp-webui.git
    
  2. Move inside of sd.cpp-webui's directory:

    cd sd.cpp-webui
    
  3. Obtain the stable-diffusion.cpp binary:

    • Compile from source:

      1. Obtain the source code:

        git clone https://github.com/leejet/stable-diffusion.cpp.git
        
      2. Compile following the instructions from stable-diffusion.cpp's repository.

      3. Copy the compiled sd binary to the main sd.cpp_webui directory.

    • Download a precompiled binary:

      1. Download a precompiled release from the Releases section of stable-diffusion.cpp's repository.

      2. Copy the sd binary to the main sd.cpp_webui directory.

  4. Execute the launch script, this will automatically create a virtual environment and install all the necessary Python packages:

    ./sdcpp_webui.sh --autostart
    
  • To see all available arguments and options, run:

    ./sdcpp_webui.sh --help
    

Updating the WebUI:

  1. Inside of sd.cpp-webui's directory run:

    git pull