ComfyUI logoComfyUI
Home / Guide / ComfyUI download

ComfyUI Download Guide: Source ZIP, Portable and Desktop on Windows

Every official way to download ComfyUI for Windows, what each package contains, and a clean first setup that renders on the first try.

Keyword · ComfyUI downloadUpdated October 25, 20267 min read
How to Download ComfyUI the Right Way — feature image

Searching for a ComfyUI download brings up a confusing mix of archives, installers, mirrors and video tutorials, many of them out of date. The project moves quickly, and a guide written a year ago can point you at a folder layout or launcher that no longer exists. This article lays out the official ways to get ComfyUI onto a Windows PC, explains what each package actually contains, and walks through a clean first setup so the first image you render works without hunting through forum threads.

The three official ways to download ComfyUI

ComfyUI is distributed from its GitHub repository and from the Comfy Org website. Whatever page you land on, the files trace back to one of three packages, and the right one depends on how much you want to manage yourself.

1. The source archive (ZIP)

The simplest file is the source archive of the main branch, offered as ComfyUI-master.zip. It contains the Python code, the default folder structure and the requirements.txt file, but no Python interpreter and no PyTorch. You supply those yourself. This is the right choice if you already work with Python, want to run ComfyUI inside a virtual environment you control, or plan to follow development closely with Git later.

2. The Windows portable package

The portable build is a compressed folder that bundles an embedded Python runtime, a PyTorch build with CUDA support, and launcher batch files such as run_nvidia_gpu.bat and run_cpu.bat. Nothing is installed into Windows itself. You extract the folder anywhere, including an external SSD, and run the batch file. Many long-time users prefer this because the entire setup lives in one directory that can be copied, backed up or deleted cleanly.

3. ComfyUI Desktop

The Desktop application is a regular Windows installer. On first launch it asks which GPU you have, where to store models and outputs, and whether to import an existing ComfyUI folder. It then builds its own Python environment, installs the matching PyTorch packages and keeps itself up to date. If you have never touched a command line, start here.

PackageIncludes PythonAuto updatesBest for
Source ZIPNoNo (use Git)Developers and custom environments
PortableYes, embeddedVia update scriptSelf-contained, movable installs
DesktopYes, managedYesBeginners and daily creative work

Before you download: check four things

A few minutes of preparation prevents the majority of first-launch errors people report.

  1. Your GPU and driver. Open Task Manager, go to the Performance tab and look at the GPU entry. Note the model and the dedicated memory figure. Then install the latest driver from NVIDIA or AMD. An outdated driver is the most common reason ComfyUI silently falls back to the CPU.
  2. Free disk space. The program itself is small, but PyTorch and its CUDA libraries take several gigabytes, and every checkpoint adds two to twenty more. Choose a drive with at least 40 GB free; an SSD is strongly preferred.
  3. A short folder path. Avoid extracting into deeply nested folders or paths with unusual characters. Something like D:\AI\ComfyUI keeps Windows path limits and some Python packages happy.
  4. A current browser. The interface runs in the browser. Use an up-to-date Chromium-based browser such as Chrome or Edge for the smoothest canvas performance.

Installing from the source ZIP, step by step

If you chose the source archive, the setup takes a little longer, but you will understand every piece of your installation.

  1. Install a recent 64-bit Python release from python.org. The ComfyUI documentation currently recommends Python 3.13, with 3.12 as a fallback when a custom node has trouble with the newest version. Tick “Add python.exe to PATH” during installation.
  2. Extract ComfyUI-master.zip to your chosen folder and open a terminal in it.
  3. Create and activate a virtual environment: python -m venv venv, then venv\Scripts\activate.
  4. Install PyTorch for your hardware. For NVIDIA cards, use the command the PyTorch website generates for the CUDA version it recommends. Install PyTorch before the other requirements so pip does not pull a CPU-only build.
  5. Run pip install -r requirements.txt to add the remaining dependencies.
  6. Start the server with python main.py. When the console prints a local address, usually http://127.0.0.1:8188, open it in your browser.
cd D:\AI\ComfyUI
python -m venv venv
venv\Scripts\activate
pip install torch torchvision torchaudio --index-url <URL from pytorch.org>
pip install -r requirements.txt
python main.py

Tip: if the console line “Device:” mentions cpu instead of your graphics card, PyTorch was installed without GPU support. Uninstall torch and reinstall it with the correct index URL.

Setting up the portable package

The portable build skips nearly all of the steps above. Extract the archive with 7-Zip or a recent version of Windows Explorer, open the folder and double-click run_nvidia_gpu.bat if you have an NVIDIA card. A console window appears, loads the environment and opens the interface in your default browser. To update later, run the script in the update folder rather than replacing files by hand, since that keeps the embedded Python packages in sync with the code.

One habit worth adopting: keep your models outside the portable folder and point ComfyUI to them through the extra_model_paths.yaml file. That way you can replace or reinstall ComfyUI without moving tens of gigabytes of checkpoints around.

Setting up ComfyUI Desktop

Run the installer and follow the setup screens. The important choices are the GPU type, which decides the PyTorch build that gets downloaded, and the install location, which is where models, inputs, outputs and custom nodes will live. If you already have a ComfyUI folder, the migration step can link your existing models instead of copying them. When setup finishes, the canvas opens with the default text-to-image graph already loaded.

Adding your first model

A fresh ComfyUI install contains no image model. The application is the engine; the checkpoint is the fuel. Download a checkpoint in .safetensors format from a reputable source, ideally the model author’s official page, and place it in models/checkpoints. Good first choices are the official SDXL base model for general use or a well-maintained SD 1.5 model if your card has less than 8 GB of VRAM.

Back in the browser, press R or click refresh so the Load Checkpoint node sees the new file, select it from the dropdown, adjust the prompt and click Queue. The finished image appears in the Save Image node and is written to the output folder.

Verifying the download is genuine

Because ComfyUI is popular, unofficial “installers” circulate on video sites and file lockers. Some are harmless repacks; others bundle unwanted software. Stick to these rules:

Understanding the folder layout

Whichever package you pick, the working directory looks broadly the same, and knowing it saves time:

Back up user/ and any irreplaceable models regularly. Everything else can be recreated by reinstalling.

Common download and install problems

The batch file closes immediately

Run it from an open Command Prompt instead of double-clicking. The window will stay open and show the actual error, which is usually a missing Visual C++ runtime or a path containing unsupported characters.

“Torch not compiled with CUDA enabled”

A CPU-only PyTorch is active. In a manual install, reinstall PyTorch with the CUDA index URL. In the portable build, make sure you started run_nvidia_gpu.bat, not the CPU launcher.

Very slow first generation

The first run loads the checkpoint from disk and may compile some kernels. Later runs with the same model are much faster. If every run is slow, check that the console reports your GPU and that the model is not being loaded from a slow network drive.

Antivirus quarantines files

Some security tools flag freshly downloaded Python packages. If the files came from the official sources listed above, restore them and add an exclusion for the ComfyUI folder rather than disabling protection entirely.

What to do after the download

Once the default graph renders, resist the urge to install every custom node pack you see recommended. Spend a session changing one setting at a time, saving workflows that work, and learning how the wires flow. Then add ComfyUI Manager to handle extensions, and expand your model library as your projects need it. A lean, understood installation stays stable through updates far better than one assembled from a dozen tutorials at once.

You can get the source archive used throughout this guide from the download page, which links directly to the official GitHub copy.