ComfyUI Setup
There are several ways to run ComfyUI in a local environment.
- Portable Version (Recommended)
- Desktop Version (Installer)
- Manual Installation (venv + Git / For advanced users)
The portable version is flexible yet stable, and anyone who sets it up ends up with much the same environment, so the guides on this site generally assume you're using the portable version.
We'll also install ComfyUI Manager here.
It's a tool that makes managing ComfyUI easier, for things like installing custom nodes.
Setup with Portable Version
The portable version bundles Python, PyTorch, and CUDA, so it works as soon as you extract it.
1. Download
Go to ComfyUI's GitHub release page and pick the file that matches your GPU.
| GPU Type | File Name (Example) | Remarks |
|---|---|---|
| NVIDIA GPU | ComfyUI_windows_portable_nvidia.7z |
If your driver is new enough, start with the plain version (no suffix). If startup fails, update the GPU driver or use the version for old drivers below. |
| NVIDIA GPU (Stable/Older environment) | cu126/cu128 |
Use this if you don't want to update your driver, or if the plain version closes right after it starts. |
| AMD GPU | ComfyUI_windows_portable_amd.7z |
For AMD users. |
2. Extract and Run
- Right-click the downloaded
7z fileand extract it withExtract All.- As explained in Recommended Specs - Storage, I recommend putting it on an SSD.
- Double-click
run_nvidia_gpu.batin the extracted folder to start it. - The first launch takes a while to set up the environment. If your browser opens automatically, it worked.
3. Installing ComfyUI Manager
-
Open the
ComfyUI_windows_portablefolder, right-click inside the folder, and chooseOpen in Terminal. -
Enter the following command in the window and press
Enter..\python_embeded\python.exe -m pip install -r ComfyUI\manager_requirements.txtThis installs the libraries required by Manager.
This alone won't make Manager show up in the UI, though, so add a command-line argument to the launch
.batfile. -
Right-click
run_nvidia_gpu.batand chooseEdit. -
Add
--enable-managerto the end of the line that runsmain.py..\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --enable-manager -
If you want to use the old ComfyUI Manager, also add
--enable-manager-legacy-ui..\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --enable-manager --enable-manager-legacy-ui
Desktop Version
This is an installer for Windows. It runs reliably, with ComfyUI Manager already included and so on, but it's a bit more restricted in return.
Download
- Download
ComfyUI Setup.exefrom the ComfyUI Desktop GitHub page. - Run it and choose the install location and GPU settings.
ComfyUI Manager is included by default.
Manual Installation (Windows, Linux)
This is a standard installation method using git clone and pip.
About Python Version
- Python 3.13 is recommended.
- If issues occur with custom node dependencies, try 3.12.
1. Installation
-
Clone the repository and move into the ComfyUI folder.
git clone https://github.com/comfyanonymous/ComfyUI.git cd ComfyUI -
Create and activate a virtual environment.
On Windows:
python -m venv venv venv\Scripts\activateOn Linux/macOS:
python -m venv venv . venv/bin/activate
2. Install PyTorch (NVIDIA)
-
Normally, install the Stable version.
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130 -
If you want to use the Nightly version, run the following.
It may improve performance, but normally the Stable version is fine.
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu130
3. Install Dependencies
-
Install the dependencies.
pip install -r requirements.txt
4. Installing ComfyUI Manager
-
Install the libraries required by ComfyUI Manager.
pip install -r manager_requirements.txt -
This alone won't make Manager show up in the UI, so add
--enable-managerwhen you start ComfyUI.python main.py --enable-manager -
If you want to use the old ComfyUI Manager, also add
--enable-manager-legacy-ui.python main.py --enable-manager --enable-manager-legacy-ui
About Easy Installers
Easy installers like Pinokio and Stability Matrix are certainly convenient, and they let you set up complex features easily.
But the more layers sit in between, the more trouble you get... When something goes wrong, it's harder to track down the cause, and you end up in situations a beginner can't handle.
Installing ComfyUI, starting with the portable version, isn't that hard, so I recommend keeping it simple and sticking to the official methods.