ComfyUI Setup
There are several ways to run ComfyUI in a local environment.
- Portable Version (Recommended)
- Desktop Version (Installer format)
- Manual Installation Version (venv + Git / For advanced users)
The portable version is flexible yet stable, and since anyone can create a similar environment, this site will explain assuming that you are basically using the portable version.
We will also install ComfyUI Manager here.
It is a tool that makes ComfyUI management easier, including installing custom nodes.
Setup with Portable Version
The portable version includes Python, PyTorch, and the CUDA environment, and works just by extracting it.
1. Download
Access the GitHub release page of ComfyUI and select the file that matches your GPU.
| GPU Type | File Name (Example) | Remarks |
|---|---|---|
| NVIDIA GPU | ComfyUI_windows_portable_nvidia.7z |
In an environment where the driver is new enough, please choose the standard one first. 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 do not want to update the driver, or if the standard version terminates immediately after startup. |
| 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, we recommend placing it on an SSD.
- Double-click
run_nvidia_gpu.batin the extracted folder to start it. - Initial startup takes time for environment configuration. If the browser opens automatically, it is successful.
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.
However, Manager will not appear in the screen yet. Next, 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 format for Windows. It provides stable operation with ComfyUI Manager already installed, but there are slightly more restrictions.
Download
- Download
ComfyUI Setup.exefrom the GitHub page of ComfyUI Desktop. - Run it and select the installation destination 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 -
Add
--enable-managerwhen starting 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 allow you to easily introduce complex functions.
However, the more elements involved in between, the more troubles increase... When a problem occurs, it becomes difficult to pinpoint the cause, and eventually, there are situations where beginners cannot handle it.
Since introducing ComfyUI, including the portable version, is not that difficult, we recommend doing it simply by the means provided by the official.