Welcome to the All-In-One ComfyUI Manager, a comprehensive PowerShell script designed to automate the installation, management, and replication of a stable and feature-rich ComfyUI environment. This manager is built for artists, developers, and enthusiasts who want a powerful, reproducible, and hassle-free ComfyUI setup without the complexities of manual dependency management.
The core philosophy of this project is stability through precision. It builds a Python virtual environment from a specific, tested list of packages, ensuring that all custom nodes and core components work together seamlessly.
- One-Click Fresh Install: Automatically clones the ComfyUI repository, clones a curated list of over 70 popular custom nodes, and builds the complete Python environment in a single operation.
- Perfect Venv Replication: Rebuilds the ComfyUI virtual environment to an exact, predefined state, eliminating version conflicts and ensuring a stable workflow.
- Dependency Protection: Creates a
constraints.txtfile after the initial setup to "lock" core packages like PyTorch, xFormers, and CUDA-related libraries. This prevents custom nodes from accidentally breaking your installation. - Safe Custom Node Updates: Intelligently installs and updates requirements for custom nodes while respecting the protected core packages, giving you the best of both worlds: stability and extensibility.
- Automated Launcher Generation: Creates multiple convenient
.batlauncher scripts for different use cases (High VRAM with SageAttention or xFormers, Low VRAM, CPU-only) and a direct-access venv shell. - Pre-flight Checks: Verifies that all essential prerequisites like Git, Visual Studio Build Tools, and the correct CUDA version are available before starting any operations.
- Backup and Restore: Automatically backs up the existing virtual environment before a rebuild, allowing you to easily restore the previous state if needed.
- Recovery and Logging: Includes a "Continue Failed Installation" option to recover from network errors and logs every operation to a file for easy troubleshooting.
The ComfyUI ecosystem is incredibly dynamic, with new custom nodes and features appearing daily. This rapid development can lead to a fragile environment where installing one node breaks another, or a core dependency update causes widespread instability.
The All-In-One ComfyUI Manager solves this by treating the environment like a production system. It uses a master package list (venv_master_freeze.txt) that defines the exact version of every Python library required for a known-good state. Once this stable foundation is built, it's protected, allowing for the safe installation of custom node dependencies without risking the core setup.
This approach provides the reliability of a fixed environment with the flexibility to use the latest community creations.
Before running the script, you MUST have the following software installed and configured. The script is opinionated and requires these exact versions to ensure perfect replication.
Required for cloning ComfyUI and all custom nodes.
- Download: https://git-scm.com/download/win
The target environment is built on Python 3.12.
- Download (64-bit): https://www.python.org/ftp/python/3.12.10/python-3.12.10-amd64.exe
This EXACT version is required for the specific PyTorch build used in this configuration.
Required for compiling certain Python packages.
- Download: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022
- During installation: You MUST select the "Desktop development with C++" workload.
- IMPORTANT: The management script must be run from the "x64 Native Tools Command Prompt for VS 2022", which can be found in your Start Menu.
The script requires Administrator rights to create directories and manage the environment effectively.
Certain high-performance packages require specific pre-compiled versions. You must download these manually.
- After cloning this repository, create a folder named
ComfyUI(if you are not doing a fresh install). - Inside the
ComfyUIfolder, create another folder namedexternals. - Download the following three
.whlfiles and place them inside theComfyUI/externalsfolder:
RESTART YOUR COMPUTER after installing the prerequisites to ensure all environment variables are correctly loaded.
- Clone this Repository:
git clone https://github.com/Ali-Kabbadj/All_In_One_ComfyUI_Manager.git
- File Locatoin: Copy the
ComfyUIManager.ps1from cloned folder and put it next to your ComfyUI directory. - Ensure Prerequisites: Double-check that you have completed all steps in the "Critical Prerequisites" section.
- Launch the Correct Terminal: Open the "x64 Native Tools Command Prompt for VS 2022" from your Start Menu as an Administrator.
- Run the Script:
powershell.exe -ExecutionPolicy Bypass -File .\ComfyUIManager.ps1
- Choose an Option from the Menu.
[1] Fresh Install of ComfyUI & Venv: The best option for new users. It handles everything: cloning ComfyUI, cloning all custom nodes, and building the protected virtual environment from scratch.[2] Rebuild Venv for Existing ComfyUI: Use this if you already have a ComfyUI folder. It will back up your currentvenvand build a new, perfect one according to the master list.[3] Update Custom Node Requirements: Safely run this after adding a new custom node to install its dependencies without breaking your core setup.[4] Restore Previous Venv from Backup: Reverts to the last environment that was backed up by option.[5] Continue Failed Installation: If your installation was interrupted (e.g., by a network error), this option lets you resume from the 'externals' installation step without starting over.[0] Exit: Exits the script.
This manager automatically installs a powerful and curated list of custom nodes to provide a comprehensive, ready-to-use ComfyUI experience.
- ComfyUI_IPAdapter_plus
- comfyui_controlnet_aux
- ComfyUI-Custom-Scripts
- ComfyUI-Impact-Pack
- ComfyUI-GGUF
- ComfyUI_LayerStyle
- ComfyUI-AdvancedLivePortrait
- ComfyUI-LTXVideo
- ComfyUI-nunchaku
- rgthree-comfy
- ComfyUI-Easy-Use
- ComfyUI-KJNodes
- ComfyUI-Crystools
- ComfyUI-Florence2
- ComfyUI-Fluxtapoz
- efficiency-nodes-comfyui
- ComfyUI_UltimateSDUpscale
- ComfyUI-VideoHelperSuite
- OneButtonPrompt
- ComfyUI_Comfyroll_CustomNodes
- ComfyUI-TeaCache
- ComfyUI_essentials
- ComfyUI-Inpaint-CropAndStitch
- cg-use-everywhere
- ComfyUI-Detail-Daemon
- ComfyUI-Inspire-Pack
- ComfyUI_AdvancedRefluxControl
- comfy_mtb
- ComfyUI-MultiGPU
- ComfyUI-enricos-nodes
- ComfyUI-TiledDiffusion
- Bjornulf_custom_nodes
- ComfyUI-DepthAnythingV2
- comfyui-art-venture
- comfy-image-saver
- sd-perturbed-attention
- ComfyUI-mxToolkit
- ComfyUI-Impact-Subpack
- ComfyUI-Image-Filters
- ComfyUI-ToSVG
- ComfyUI-ConDelta
- Comfyui-LayerForge
- Plush-for-ComfyUI
- mikey_nodes
- ControlAltAI-Nodes
- ComfyMath
- gguf
- wlsh_nodes
- ComfyUI-Image-Saver
- Comfyui-Resolution-Master
- ComfyUI-Tara-LLM-Integration
- ComfyUI-EasyColorCorrector
- ComfyUI-SaveImageWithMetaData
- was-node-suite-comfyui (ltdrdata fork)
- sigmas_tools_and_the_golden_scheduler
- ComfyUI_JPS-Nodes
- comfyui-tensorops
- ComfyUI-ToSVG-Potracer
- ComfyUI-multi-area-condition-node
- ComfyUI_SD3_Flowedit
- APZmedia-comfyui-fast-image-save
- ComfyUI-IMGNR-Utils
- ComfyUI-Image-Toolkit
- was-node-suite-comfyui (original)
- ComfyUI_FMJ
- Comfy-WaveSpeed
- ComfyUI-Civitai-Toolkit
- ComfyUI-Olm-DragCrop
- ComfyUI-EsesImageAdjustments
- ComfyUI-EsesImageEffectCurves
- ComfyUI_colormaster
- ComfyUI-Manager
This project aims to become a true "zero-touch" installer. Future goals include:
- Automated Prerequisite Installation: Integrating checks and optional automated installers for prerequisites like Python, Git, and the Visual Studio Build Tools workload using PowerShell package managers (like Chocolatey or Winget).
- Automatic Downloader for Externals: A function to automatically fetch the required
.whlfiles from their GitHub release pages, removing the final manual download step. - CUDA Toolkit Automation: Providing guidance or potentially automating the installation of the NVIDIA CUDA Toolkit.
- Model Management: Adding features to download and organize popular base models, VAEs, and LoRAs into the correct ComfyUI directories.
Contributions and suggestions are always welcome. Please feel free to open an issue or submit a pull request.
