Free | No tracking | Every fact with a source|German and English

Error / Installation

Couldn't clone Stable Diffusion (Stability AI repository no longer exists)

During the initial installation, AUTOMATIC1111 wants to download a GitHub repository from Stability AI that is no longer publicly accessible, so startup fails.

The message

fatal: repository 'https://github.com/Stability-AI/stablediffusion.git/' not found … RuntimeError: Couldn't clone Stable Diffusion. … Error code: 128  |  Username for 'https://github.com':

Affects: AUTOMATIC1111 Stable Diffusion WebUI, Stability Matrix

Why is this happening?

On first launch, the WebUI clones the Stability-AI/stablediffusion repository into the repositories folder. This repository was removed or made private at the end of 2025. Git then reports “repository not found” or asks for a GitHub username. The main branch (master) of AUTOMATIC1111 is no longer maintained and still contains the old address; the dev branch already uses a replacement. Existing installations that have already downloaded the repository are not affected.

How to fix it

  1. Open webui-user.bat with a text editor (for the sd.webui.zip package, it is located at sd.webui\webui\webui-user.bat).
  2. Add this line above call webui.bat: set STABLE_DIFFUSION_REPO=https://github.com/w-e-w/stablediffusion.git and save the file. On Linux/macOS, add this line to webui-user.sh: export STABLE_DIFFUSION_REPO="https://github.com/w-e-w/stablediffusion.git".
  3. Alternative: Switch to the maintained dev branch. To do that, open a command prompt in the stable-diffusion-webui folder and run git switch dev and then git pull.
  4. Stability Matrix: Update to version 2.15.6 or newer; the error is fixed there. Or under Settings > Environment Variable, add the STABLE_DIFFUSION_REPO variable with the address from step 2 using +.
  5. If the error still occurs after that, delete the repositories\stable-diffusion-stability-ai folder and restart the WebUI.

Better not: When you see “Username for 'https://github.com':”, do not enter any credentials: The repository is no longer public, and signing in will not solve the problem.

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.