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
- Open
webui-user.batwith a text editor (for thesd.webui.zippackage, it is located atsd.webui\webui\webui-user.bat). - Add this line above
call webui.bat:set STABLE_DIFFUSION_REPO=https://github.com/w-e-w/stablediffusion.gitand save the file. On Linux/macOS, add this line towebui-user.sh:export STABLE_DIFFUSION_REPO="https://github.com/w-e-w/stablediffusion.git". - Alternative: Switch to the maintained
devbranch. To do that, open a command prompt in thestable-diffusion-webuifolder and rungit switch devand thengit pull. - Stability Matrix: Update to version 2.15.6 or newer; the error is fixed there. Or under Settings > Environment Variable, add the
STABLE_DIFFUSION_REPOvariable with the address from step 2 using+. - If the error still occurs after that, delete the
repositories\stable-diffusion-stability-aifolder 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
- Path too long: Filename too long / Windows Long Path support
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- 'git' is not recognized
- 'python' is not recognized or opens the Microsoft Store
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x – a package does not match the installed NumPy version
Sources
- https://raw.githubusercontent.com/wiki/AUTOMATIC1111/stable-diffusion-webui/Troubleshooting.md
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/17212
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/17227
- https://github.com/LykosAI/StabilityMatrix/blob/main/CHANGELOG.md
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.