Setup instructions for Linux
October 20, 2025 ยท View on GitHub
Dependencies:
- Python
- Git (Recommended)
Setup:
-
Clone the repository with Git:
git clone https://github.com/daniandtheweb/sd.cpp-webui.git -
Move inside of
sd.cpp-webui's directory:cd sd.cpp-webui -
Obtain the
stable-diffusion.cppbinary:-
Compile from source:
-
Obtain the source code:
git clone https://github.com/leejet/stable-diffusion.cpp.git -
Compile following the instructions from
stable-diffusion.cpp's repository. -
Copy the compiled
sdbinary to the mainsd.cpp_webuidirectory.
-
-
Download a precompiled binary:
-
Download a precompiled release from the Releases section of
stable-diffusion.cpp's repository. -
Copy the
sdbinary to the mainsd.cpp_webuidirectory.
-
-
-
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:
-
Inside of
sd.cpp-webui's directory run:git pull