Install and first run
Install PotionUI on a Linux or Windows computer with an NVIDIA graphics card, start it with one command, and let the setup guide create your owner account and install a first model.
On this page
PotionUI 0.3.0 is a beta. Expect rough edges and breaking changes between releases. Back up anything you care about before you upgrade, and report what breaks on Discord or in a GitHub issue.
What you need#
PotionUI runs on Linux and Windows (x86_64) with an NVIDIA graphics card. WSL2 and Docker work too.
- An NVIDIA graphics card, Turing or newer (GTX 16-series, RTX 20-series and later). GTX 10-series and older cards cannot run PotionUI.
- NVIDIA driver 580 or newer. Older drivers stop at once with “CUDA driver version is insufficient for CUDA runtime version”.
- At least 8 GB of graphics memory and 16 GB of system memory. That floor runs the SDXL family. Larger model families need more, some considerably more. Hardware requirements has the table per family. Tested hardware shows how every built-in preset ran on a 12 GB card.
- Python 3.12 (3.13 is not usable yet, because the pinned numpy has no wheels for it) and Node.js 22 or newer (24 LTS recommended), plus Git.
- Disk space for models. The setup guide puts it this way: a few GB for the smallest image starter, tens of GB for the largest. You see the exact size before anything downloads.
| Platform | Status |
|---|---|
| Linux x86_64 + NVIDIA CUDA | Supported. |
| Windows via WSL2 | Works, with the same Linux CUDA stack. |
| Windows native | Supported. The installer, the launcher and the test suites run on Windows in CI. Triton and torch.compile have no Windows wheels, so attention runs on plain SDPA and the compile speed-ups stay off. |
| Docker | Supported. On Windows, Docker Desktop runs it through WSL2; confirmed on Windows 11 with a 12 GB card (see Tested hardware). |
| macOS | No. Local generation needs CUDA, and the engine has no MPS support. |
| AMD GPU (ROCm) | No. The pinned dependency stack is CUDA-only. |
Install and start#
The potionui launcher checks your computer, installs what is missing and starts the app. On Linux you run ./potionui; on native Windows every command reads .\potionui.cmd instead, from PowerShell or cmd.
-
Get the code
Linuxclonegit clone https://github.com/PotionUI/PotionUI.git potionui && cd potionui
Windowsclonegit clone https://github.com/PotionUI/PotionUI.git potionui cd potionui
-
Check your computer
doctorruns every check (Python, Node.js, npm, ffmpeg, the GPU, free disk space, the two ports, thestoragefolder) and prints a repair command for anything missing. Some findings stopstartand the rest only warn.- Stop
start: no Python 3.12 or newer found; Node.js or npm missing, or Node.js older than 22; less than 5 GB of free disk space; a port already in use (the backend port is the exception:startmoves to the next free one); astoragefolder that cannot be written; and, on Windows, a missing Visual C++ runtime. - Only warn: a Python newer than 3.12 (the launcher prefers a 3.12 if one is installed alongside); the virtual environment, backend packages or frontend packages missing, because
startinstalls those itself; ffmpeg missing (needed to encode video, make thumbnails and use the video editor); no NVIDIA GPU or driver found; less than 25 GB of free disk space; a Node.js release that is behind on security fixes or no longer supported. A missing optional.envfile is only noted.
Linuxdoctor./potionui doctor
Windowsdoctor.\potionui.cmd doctor
- Stop
-
Start PotionUI
startcreates the Python environment, installs the dependencies, launches the app and waits until it answers. The first start downloads the dependencies, so it takes a while. Later starts reuse them.Linuxstart./potionui start
Windowsstart.\potionui.cmd start
What you will seeThe launcher ends with
PotionUI is up.and the address to open, for exampleOpen: http://localhost:26731. On a fresh install it adds a line with a one-time claim code:First-time setup: open http://localhost:26731 and use this claim code if asked: … -
Open the address
Open the printed address in your browser on the same computer. A fresh install opens the setup guide, described below.
The plain start installs the full CUDA stack for a computer with its own GPU. The launcher has other install profiles for a computer that only sends work to a remote GPU, or a GPU computer that only serves another PotionUI. A Docker image exists as well:
docker run --gpus all -p 26730:26730 ghcr.io/potionui/potionui:latest
Docker needs an NVIDIA GPU and the NVIDIA Container Toolkit. Install profiles and Docker covers every option.
The setup guide#
A new PotionUI has no accounts. The first account you create becomes the owner, an administrator, and the guide walks you from there to a first image. A row of steps across the top reads Welcome, Account, Computer, Starter, Install and Ready.
-
Welcome
The first screen explains what PotionUI is: your account, settings and images stay on this computer, the internet is used only to download models you approve, and ComfyUI is optional. Press Get started.
-
Create your owner account
Enter a username, an email and a password of at least 8 characters, then press Create owner account. The account is one row in the app’s own database,
storage/db.sqlitein your PotionUI folder. There is no PotionUI cloud account, and these details are not sent anywhere.If you open the page from another machine, the form also asks for the Claim code, the one-time code the launcher printed. It is also saved on the server in
storage/setup_claim_token, and it is deleted once the owner exists.TipForgot the owner password later? Run
python scripts/reset_password.py usernameon the computer that runs PotionUI. -
Your computer
The guide shows the graphics card and its memory, the system memory and the free disk space it found, with a verdict such as “Good fit.” or “Good for SDXL.”. It uses this to suggest a starter model. Nothing is changed and nothing is sent anywhere. If the detection is wrong, press Continue anyway.
-
Pick a starter model and where models are kept
The guide offers the SDXL, Z-Image and Qwen-Image starters, with the one that fits your card marked Recommended for your card. Each card shows its download size, where the files come from, the graphics memory it needs and how your card compares. Video, music, 3D and editing starters are larger and wait in Admin → Recipes after setup.
The step also shows where models are saved (Saved to): PotionUI’s own
models/folder, unless you press Change or Use a folder you already have to reuse models from ComfyUI, Forge, A1111 or any folder of model files. PotionUI reads such a folder in place and does not copy or move your files. You can add, rename, relink or remove folders later in Administration → Models → Folders. If a starter needs a bigger graphics card than yours, PotionUI asks before it goes ahead: Pick another or Install anyway.Press Review … download (the button carries the size), or Skip for now.
NoteIf no supported NVIDIA card was found, the guide says so and keeps the install button off, because the starters run on your own GPU. You can still finish setup and connect a cloud provider or a ComfyUI server on another machine later.
-
Review the download and install
The Install step lists every file, its size and the total, and says the files come from Hugging Face. Nothing downloads until you approve. Add a token (optional) takes a Hugging Face token: it is needed for gated models and can help when downloads fail with rate-limit errors.
Review the download
The Z-Image Starter lists its files and the total before anything downloads. What you will seeOnce you approve, the step reads “Installing …” with progress. You can close the tab: setup keeps running and picks up where it was when you come back to Setup, and it carries on by itself if PotionUI restarts meanwhile. The starter ends by making a test image.
-
You’re all set
The last step shows the test image and a Create your first image button, which opens Generate with the starter’s preset and mode already chosen. If the test picture could not be made, the page says Test failed in plain words and keeps Try it in Generate and Run the check again within reach; the starter is still installed. Below it are optional next steps: connect ComfyUI, add another models folder, invite people and install more starters.
On the Computer, Starter and Install steps, Skip the guide, go to the app at the top takes you straight to Generate. Pick the guide up again from Resume setup in the sidebar, or on a phone from Settings, under Resume setup. Resume setup stays in the sidebar until the instance is ready to generate.
Joining someone else’s studio#
Once an owner exists, nobody else can repeat the guide. Sign-up is closed by default: the owner or another administrator creates your account in Admin → Users and gives you the username and password. If the owner has turned on open registration, the login page shows Register here so you can create your own account.
Opening the setup address on a claimed instance shows “This instance already has an owner” with a Go to login button.
Stop, restart and check#
| Command | What it does |
|---|---|
./potionui stop | Stops the running app. It is safe to run when nothing is running. |
./potionui status | Says whether an instance is running, with its process, port and log file. |
./potionui start | Safe to run again: if the app is already up it prints “PotionUI is already running.” and the address. |
./potionui doctor | Names any problem and its fix. Add --json for machine-readable output. |
./potionui build | Builds the web interface once. Later starts then serve it from the backend as one process, on the backend port. |
While start is still waiting for the app to answer, Ctrl-C stops both processes. On Windows, use the same commands with .\potionui.cmd.
When the page does not open#
- “Cannot start — blocking issue(s) found”
- The launcher prints the doctor report. Fix each line marked as an error with the repair command next to it, then run
startagain. - “did not become ready within the timeout”
- The launcher prints the last 30 lines of the log and a doctor code, then stops what it started. The full logs are in
.runtime/logs/backend.logand.runtime/logs/frontend.log; the app also writesstorage/logs/potionui.log. - The page says “Starting up — this can take a minute on the first run.”
- The backend is still warming up after a start. Wait; the page moves on by itself.
- The address does not open from another computer
- The launcher listens only on the computer it runs on. On Linux,
./run.sh 26730 26731 --lanalso accepts connections from the local network once everything is installed. Docker and the other install profiles are covered in Install profiles and Docker. - A port is already taken
- When the default backend port is busy,
startcan fall back to a free one. Open the address the launcher prints rather than the default. - “A stale or partially-running PotionUI instance was found”
- Run
./potionui stop, then./potionui startagain.
Reporting a Windows problem? Include the output of potionui.cmd doctor --json, the files under logs/, the output of nvidia-smi, and what happened when you generated with the smallest available preset. Questions are welcome on Discord and r/PotionUI.