selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

sdnext logo

Self-host sdnext

2026-10-19

All-in-one Stable Diffusion WebUI for images and video

ReleaseOpen SourceApache-2.0
docker run --name sdnext-container --rm --gpus all --publish 7860:7860 --mount type=bind,source=/server/models,target=/mnt/models --mount type=bind,source=/server/data,target=/mnt/data --detach sdnext/sdnext-cuda
Updated3 weeks ago
LanguagePython
Setup difficultyModerate
MobileResponsive
ThemeDark mode
Stars
7 375
Port
7860 (SD.Next web UI and API server)
Requires
Git, Python
Docker
vladmandic/sdnext-cuda

What is sdnext?

Should you self-host sdnext?

sdnext scores 71/100 on selfhost.directory (how scoring works) and ranks #3 of 11 in Image Generation. It has 7 375 GitHub stars, +26 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is stable-diffusion-webui (89/100, 165 281 stars). It scores higher overall, so compare the two before you pick. See sdnext vs stable-diffusion-webui side by side.

Features

  • Automatic model download
  • ControlNet support
  • CPU/GPU memory offloading
  • Extension support
  • Image captioning
  • Image upscaling
  • Inpainting and outpainting
  • IP-Adapter support
  • LoRA support
  • Model quantization (SDNQ)
  • REST API
  • Task scheduler and queue management
  • Text-to-image generation
  • Video Generation

sdnext README

How to install sdnext

Install sdnext with Docker

Environment variables
SD_DATADIR, SD_MODELSDIR, SD_DOCKER

SD.Next includes base Dockerfiles for these platforms: nVidia CUDA, AMD ROCm, Intel IPEX and OpenVINO.

SD_FOLDER=/home/sdnext # path to sdnext home folder
docker build \
  --debug \
  --tag sdnext/sdnext-cuda \
  --progress=plain \
  --file $SD_FOLDER/configs/Dockerfile.cuda \
  $SD_FOLDER
docker run \
  --name sdnext-container \
  --rm \
  --gpus all \
  --publish 7860:7860 \
  --mount type=bind,source=/server/models,target=/mnt/models \
  --mount type=bind,source=/server/data,target=/mnt/data \
  --detach \
  sdnext/sdnext-cuda

Community prebuilt images exist for CUDA, ROCm, IPEX and OpenVINO; deployment is stateless by default with data read/written to /server/data.

How to configure sdnext

  • --listenLaunch web server accessible from the local network (env SD_LISTEN)

    values: true/false

  • --port7860Port the web server listens on
  • --authSet access authentication like "user:pwd,user:pwd" (env SD_AUTH)
  • --auth-fileNoneSet access authentication using a file
  • --api-onlyFalseRun in API-only mode without starting the UI (env SD_APIONLY)

    values: true/false

FAQ

How do I enable auto-updates on startup?

Add the --upgrade flag to your launch parameters so SD.Next updates automatically at every startup.

What is the best sampler to use?

No single sampler is definitively best, but "DPM++ 2M" with "Karras" is a commonly recommended general-purpose choice.

I keep getting out-of-memory errors. What can I do?

Render smaller images and upscale later, enable FP16 precision in Settings → Compute Settings, and use a memory-efficient attention method.

My image folder is too large. How do I manage storage?

In Settings → Image Options switch output from PNG to JPG and disable always saving all generated images, then save only what you need.

Something broke. How do I restore my SD.Next installation?

Use webui.bat --reinstall to reinstall required components, or webui.bat --reset to return to the latest version.

How do I update to the latest version?

Run webui.bat --upgrade, which pulls the latest updates and applies them to your installation.

Why are my images dull or have incorrect colors?

Try a different VAE file: place VAE files in the models\VAE folder and add ,sd_vae to the quicksettings list for quick selection.

How can I create large images (e.g., 2048x2048) with limited VRAM?

Render a smaller image and upscale it through the Process Image tab with a tiling upscaler such as SwinIR_4x to minimize VRAM usage.

How do I use an AMD GPU on Windows?

Add the --use-zluda command-line flag when starting the app; the ZLUDA guide has more details.

How can I get more information about what's happening with my app?

Launch the app with the --debug flag and review the setup.log file for detailed information.

Where are the command-line flags like --xformers?

Most of those flags now live in the UI settings; start the web UI with --help for the complete list.

Where is the "PNG Info" tab?

SD.Next folds that functionality into the "Process Image" tabs, so there is no separate PNG Info tab.

More in Image Generation

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…