ComfyUI is a node-based application for building and running generative workflows. Nodes load models, encode instructions, perform generation, and save results. Connecting them makes the sequence visible and reusable.

This guide takes you from installation to a first local image. Start with a built-in workflow before adding custom nodes or complex video pipelines. The workflow’s model requirements matter as much as the application installation.

Choose your installation route

Platform Starting route Important distinction
Windows Official Comfy Desktop installer Native installation; WSL is optional
macOS with Apple silicon Official Comfy Desktop application Uses supported Apple hardware; check current OS requirements
Linux Official Desktop package or manual Python installation Package and GPU support depend on architecture and distribution
Windows with WSL Manual Linux installation inside WSL Separate Python environment and GPU compatibility checks

Desktop manages local ComfyUI installations. A manual install gives you direct control over the Python environment and application code. The Windows portable distribution is another option with its own embedded Python. Keep their update procedures separate. The system-requirements page links the current supported routes and hardware guidance.

Prepare the machine

Reserve disk space for the application, model files, inputs, and generated outputs. Image and video models can require substantial GPU or unified memory. There is no single minimum that makes every workflow run.

Choose a model and workflow that fit your hardware, verify the model’s license, and keep the initial batch size at one. Model components must belong to compatible families; a text encoder or autoencoder from an unrelated workflow is not an interchangeable substitute.

Windows Desktop

Download the Windows installer from the official installation page. Run it, launch Comfy Desktop, and select a local installation during setup. Choose a location with enough space and follow the application’s hardware and dependency checks.

Start the created instance and open its interface. Keep track of the installation and shared-model locations shown by the application. The Desktop launcher and each ComfyUI instance are separate parts of the setup, so an application update and an instance update can be different operations.

Use a native Windows setup for this route. Do not run Linux package commands in PowerShell. If you prefer WSL, use the manual Linux route within WSL and verify GPU support there first.

macOS Desktop

Use the official macOS installation page to obtain the application for Apple silicon and check the current OS requirement. Move the app to Applications, open it, and choose local installation. Let setup finish preparing its environment before starting a workflow.

Apple silicon uses shared system memory, so leave capacity for the operating system and other applications. CPU execution or unsupported operations can make a workflow much slower than expected. If you have an Intel Mac, do not assume the Apple-silicon Desktop package or acceleration path will work; check the manual installation support for your machine.

Linux Desktop

The official Linux instructions provide .deb and AppImage packages, with x64 Linux and Ubuntu 22.04 or later as the documented starting point. Download the appropriate package into a dedicated directory.

For Debian or Ubuntu, install the exact downloaded filename through your package manager. For an AppImage, mark that exact file executable and run it. Replace the illustrative filename below with the file you downloaded:

chmod +x ./Comfy-Desktop.AppImage
./Comfy-Desktop.AppImage

Choose a local instance and complete the setup. If an Electron sandbox or dependency problem prevents launch, inspect the error and use the distribution-specific guidance. The manual Python route below is also available; do not make disabling the application sandbox your default setup step.

Manual Linux or WSL installation

Install Git and a supported Python with its virtual-environment module using your distribution’s instructions. The reviewed ComfyUI documentation recommends Python 3.13 and lists 3.12 as a fallback for some custom-node compatibility issues. Verify the interpreter before creating the environment:

python3.13 --version
git --version
git clone https://github.com/Comfy-Org/ComfyUI.git
cd ComfyUI
python3.13 -m venv .venv
.venv/bin/python -m pip install --upgrade pip

Install the PyTorch build appropriate to your GPU and driver inside this environment. Use the command in the current ComfyUI manual-install guide, replacing its pip with .venv/bin/python -m pip. NVIDIA CUDA, AMD ROCm, and Intel acceleration are different routes. Installing the wrong build can leave you with CPU execution or a startup failure.

For a CPU-only learning setup, you can use:

.venv/bin/python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python main.py --cpu

For a configured accelerator, install the requirements after PyTorch, then start without --cpu:

.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python main.py

Open the local address printed by the server, normally http://127.0.0.1:8188. Keep the terminal running. Ctrl+C stops the server; closing a browser tab alone does not. On a later visit, return to the same directory and run the same interpreter and launch command.

Generate your first image

Open the workflow/template browser and select a basic local text-to-image workflow compatible with your hardware. Read its model requirements and download the exact required files from the linked model publishers. Follow the template’s folder assignments; refresh or restart the instance after adding files if needed. First-generation walkthrough

A traditional checkpoint-based workflow commonly includes a checkpoint loader, positive and negative text conditioning, an empty latent, a sampler, a VAE decoder, and an image-saving node. Other model families split components differently or omit negative conditioning. Follow the template you selected rather than forcing every model into this pattern.

Use an original prompt such as:

A small ceramic cup beside an open notebook on a wooden desk, soft morning light, no lettering.

Keep the template’s initial settings, set batch size to one, and run the workflow. Inspect the queue and any error messages. After a successful result, save the workflow and locate the generated image in the configured output directory.

For a controlled experiment, keep the seed and all settings fixed, then change only the lighting description. Compare the outputs. A fixed seed supports comparisons within a consistent setup, but does not guarantee identical images across different hardware and software versions.

Configure models and extensions

Keep model files in the paths expected by the loader nodes. Manual installations can use extra_model_paths.yaml for shared locations; use the example file shipped with your checkout and preserve valid YAML indentation. Desktop may manage shared paths through its own settings. Models and loader nodes

Custom nodes are executable software with dependencies. Install one only when a chosen workflow needs it, check its source, and record its version. Use the supported installation method for your distribution. Do not clone a manager repository over the entire custom_nodes directory or install every missing extension from an unfamiliar workflow without inspection.

Troubleshooting

Symptom Likely next step
Model is absent from a dropdown Check its filename, expected directory, and loader compatibility
Missing node type Identify the specific extension or use a built-in workflow
Tensor shape or dimension error Check that checkpoint, encoder, VAE, and workflow belong together
Out of memory Reduce resolution or batch size, close other GPU workloads, or use a smaller supported workflow
Browser cannot connect Check the running instance’s address and startup log
Slow CPU generation Verify the installed PyTorch build and detected device

Missing models are a blocking dependency for a local workflow. Resolve them before expecting a successful generation. A workflow using a remote API has different requirements and may send inputs to another service.

Update without losing your work

Save workflows, custom-node versions, model filenames, and important outputs before updating. Use Desktop’s instance controls or the portable package’s update process when applicable. For a manual Git installation, check for local changes before pulling:

git status --short
git rev-parse HEAD

With a clean checkout and a backup, stop the server, run git pull --ff-only, and reinstall requirements using the same virtual-environment interpreter. Review any changed PyTorch requirements. Then rerun your saved basic workflow before opening a more complex one. See the official update guide.

Uninstalling a launcher may leave models and generated work behind. Review those data directories separately and retain anything you need.