# Installation ComfyUI runs locally on Windows, Linux, and Apple Silicon macOS. Choose the path that fits your hardware and comfort level. > [!TIP] > Want a beginner-friendly interface without managing Python environments or node graphs by hand? [MooshieUI](https://mooshieui.com) wraps ComfyUI in a desktop or browser app with a one-click setup wizard for Windows, Linux, and Apple Silicon macOS. ## System Requirements | Component | Minimum | Recommended | | --- | --- | --- | | GPU (Windows / Linux) | NVIDIA RTX 20-series+ with 4-6 GB VRAM (Dynamic VRAM and async weight streaming run large models on 4 GB VRAM + 8 GB RAM), AMD ROCm (Linux / Windows 11), or Intel Arc XPU | NVIDIA RTX with 12 GB+ VRAM for fast iteration | | Apple Silicon | M1 / M2 / M3 / M4 with 16 GB unified memory | M2/M3/M4 Pro or Max with 32 GB+ unified memory | | System RAM | 8-16 GB (pair with Dynamic VRAM for weight streaming) | 32 GB+ (essential for multi-billion-parameter DiT and video models) | | Storage | 20 GB free SSD | 100 GB+ NVMe SSD for checkpoints and video weights | | Software | Python 3.12-3.14 (3.13 recommended), PyTorch 2.7+, CUDA `cu130`+ (NVIDIA RTX 20+), Git | Python 3.13 venv + current PyTorch (`cu130`+) + built-in ComfyUI-Manager | ## Desktop App The official [ComfyUI Desktop App](https://www.comfy.org/download) (Windows and macOS) is the recommended setup for most users. It bundles Python, Git, unified model/input/output folders, automatic update snapshots, built-in Apps, and **ComfyUI-Manager already set up**. 1. Download the Windows or macOS Apple Silicon installer from `comfy.org/download`. 2. Pick an install folder with plenty of free SSD space (avoid OneDrive-synced folders). 3. Launch ComfyUI Desktop, let it install PyTorch for your GPU, and open the workflow templates browser. If you prefer a command-line installer for local environments, install **`comfy-cli`** (`pip install comfy-cli && comfy install`). Want to run without local hardware setup? Comfy-Org also offers hosted [Comfy Cloud](https://www.comfy.org) workflows in your browser. ## Windows ### Windows Portable (standalone 7-Zip bundle) Official docs recommend the Desktop App for regular users, while Windows Portable gives you a self-contained folder you can move or back up easily without touching system Python. 1. Install [7-Zip](https://www.7-zip.org/) and [Git for Windows](https://git-scm.com/downloads/win). 2. Download the matching archive from the [ComfyUI Releases page](https://github.com/Comfy-Org/ComfyUI/releases): * **NVIDIA (RTX 20-series and newer, Python 3.13 + CUDA 13.0):** `ComfyUI_windows_portable_nvidia.7z` * **AMD Radeon (ROCm):** `ComfyUI_windows_portable_amd.7z` * **Intel Arc (XPU):** `ComfyUI_windows_portable_intel.7z` * **NVIDIA legacy (GTX 10-series and older, Python 3.12 + CUDA 12.6):** `ComfyUI_windows_portable_nvidia_cu126.7z` 3. Extract with 7-Zip directly to a short path such as `D:\ComfyUI` (avoid `Program Files` or paths with spaces). If Windows blocks extraction, right-click the archive -> **Properties** -> **Unblock**. 4. Run `run_nvidia_gpu.bat` (or `advanced\run_cpu.bat` on NVIDIA builds to run CPU-only; AMD/Intel portable users can launch CPU mode with `.\python_embeded\python.exe -s ComfyUI\main.py --cpu --windows-standalone-build`). 5. Open `http://127.0.0.1:8188` in your browser. Update your NVIDIA driver first if CUDA fails to initialize. > [!NOTE] > Use `update\update_comfyui.bat` to update ComfyUI inside the portable build without breaking its bundled Python environment. ### Manual Windows venv (for developers) ```powershell # Python 3.13 is recommended (3.12 works if an older custom node needs it; 3.14 is supported with occasional node incompatibilities) git clone https://github.com/Comfy-Org/ComfyUI.git cd ComfyUI # Create and activate a Python virtual environment py -3.13 -m venv .venv .\.venv\Scripts\Activate.ps1 # 1) NVIDIA RTX 20-series+ (PyTorch CUDA 13.0 stable; cu132 nightly also available) pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130 # 2) OR AMD Windows 11 (ROCm 10.0 multi-architecture PyTorch; no separate HIP SDK needed) # Use a specific target like device-gfx1201 (RX 9070) or device-gfx1100 (RX 7900) instead of device-all to save disk space # pip install --index-url https://stable.repo.amd.com/rocm/whl-next/ "torch[device-all]==2.13.0+rocm10.0.0" "torchvision[device-all]==0.28.0+rocm10.0.0" "torchaudio==2.11.0.2+rocm10.0.0" # 3) OR Intel Arc GPUs (PyTorch XPU) # pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu # Install ComfyUI dependencies and start pip install -r requirements.txt python main.py ``` ## Linux ### 1. Install system packages and GPU drivers #### Debian / Ubuntu / Linux Mint / Pop!_OS ```bash sudo apt update && sudo apt upgrade -y sudo apt install python3 python3-pip python3-venv git build-essential -y # NVIDIA driver (install the latest open/recommended driver package for your distro) sudo apt install nvidia-driver-570-open -y ``` #### Fedora / RHEL / Rocky Linux / AlmaLinux ```bash sudo dnf update -y sudo dnf install python3.13 python3-pip python3-devel git gcc gcc-c++ -y # Fedora NVIDIA drivers (with RPM Fusion enabled) sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda -y ``` #### Arch Linux / Manjaro / EndeavourOS ```bash sudo pacman -Syu sudo pacman -S python python-pip git base-devel # NVIDIA drivers sudo pacman -S nvidia nvidia-utils ``` #### openSUSE Leap / Tumbleweed ```bash sudo zypper refresh && sudo zypper update sudo zypper install python313 python313-pip git gcc gcc-c++ # NVIDIA drivers sudo zypper install nvidia-video-G06 nvidia-compute-G06 ``` Reboot after installing or updating GPU kernel drivers so `nvidia-smi` (or `rocm-smi`) reports your device cleanly. ### 2. Create a venv and launch ComfyUI ```bash python3 -m venv ~/comfyui-env source ~/comfyui-env/bin/activate git clone https://github.com/Comfy-Org/ComfyUI.git cd ComfyUI # NVIDIA GPUs (CUDA 13.0 stable; update PyTorch if older than 6 months) pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130 # AMD GPUs on Linux (ROCm 7.2) # pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.2 # Intel Arc GPUs (XPU) # pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu pip install -r requirements.txt python main.py ``` For older AMD cards not officially listed in ROCm, launch with `HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py` (RDNA2 like RX 6600/6700) or `HSA_OVERRIDE_GFX_VERSION=11.0.0 python main.py` (RX 7600 / RDNA3). Setting `PYTORCH_TUNABLEOP_ENABLED=1` can also improve AMD throughput after a slower first warmup run. Open `http://127.0.0.1:8188` in your browser once the terminal prints `To see the GUI go to: http://127.0.0.1:8188`. ## macOS Apple Silicon Macs (M1 through M4) run ComfyUI via PyTorch Metal (`mps`). Intel Macs do not have Metal acceleration for modern diffusion models and are too slow for regular use. ```bash # Install Homebrew if missing, then Python 3.13 and Git brew install python@3.13 git git clone https://github.com/Comfy-Org/ComfyUI.git cd ComfyUI python3.13 -m venv .venv source .venv/bin/activate # Install the latest PyTorch nightly for Apple Silicon MPS (see https://developer.apple.com/metal/pytorch/) pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu pip install -r requirements.txt python main.py ``` > [!NOTE] > On Apple Silicon, unified memory is shared between macOS and the GPU. Stick to native quantized formats such as `FP8` or `convrot int8` on 16 GB Macs instead of unquantized BF16 checkpoints. ## Docker Docker keeps Python, CUDA, and custom nodes isolated from your host OS. 1. Install Docker Engine (or Docker Desktop on Windows with WSL 2) and the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html) so containers can see your GPU. 2. Create persistent folders on your host so models and outputs survive container updates: ```bash mkdir -p ~/comfyui-data/models ~/comfyui-data/output ~/comfyui-data/custom_nodes ``` 3. Pull and run a ComfyUI container image with GPU passthrough: ```bash docker pull yanwk/comfyui-boot:latest docker run -d \ --name comfyui \ --gpus all \ -p 127.0.0.1:8188:8188 \ -v ~/comfyui-data:/root/ComfyUI \ yanwk/comfyui-boot:latest ``` > [!WARNING] > Binding `-p 127.0.0.1:8188:8188` keeps ComfyUI reachable only from your own machine. For LAN or remote access, enable HTTPS with `--tls-keyfile` and `--tls-certfile` or place ComfyUI behind an authenticated reverse proxy. ## ComfyUI-Manager [ComfyUI-Manager v4](https://github.com/Comfy-Org/ComfyUI-Manager/tree/manager-v4) is now integrated into ComfyUI for installing custom nodes, running security checks, updating packages, and managing extensions. * **Desktop App:** ComfyUI-Manager is already enabled out of the box. * **Manual venv and Windows Portable:** install the manager requirements once and start ComfyUI with `--enable-manager`: ```bash pip install -r manager_requirements.txt python main.py --enable-manager ``` Useful manager launch flags (see [docs.comfy.org/manager/overview](https://docs.comfy.org/manager/overview)): * `--enable-manager`: enables built-in ComfyUI-Manager. * `--enable-manager-legacy-ui`: uses the classic manager dialog instead of the newer UI (implies `--enable-manager`). * `--disable-manager-ui`: disables manager web UI endpoints while keeping background security checks and scheduled installs active (requires `--enable-manager`). ## First models to download Before queuing your first prompt, place at least one model in `ComfyUI/models/`: * **All-in-one SDXL / Illustrious / Pony checkpoint:** put `.safetensors` files in `ComfyUI/models/checkpoints/`. * **Split-weight models (Flux.2, Qwen-Image 2.1, Z-Image, Krea 2, Anima, SD 3.5, Wan 2.2, LTX-Video 2):** put the diffusion model in `ComfyUI/models/diffusion_models/`, text encoders in `ComfyUI/models/text_encoders/`, and the matching VAE in `ComfyUI/models/vae/`. Continue to [Interface & Core Concepts](./core-concepts.md) or build a graph in [Your First Workflow](./first-workflow.md).