Cross-platform automated installer for ComfyUI
Project description
๐ UmeAiRT's ComfyUI Auto-Installer
Cross-platform Python CLI to fully automate the installation, update, and configuration of ComfyUI. One-click setup with GPU optimizations, curated custom nodes, and VRAM-aware model downloads.
โจ Features
- One-Click Install โ Double-click
Install.bat(Windows) or runInstall.sh(Linux/macOS) - Isolated Core โ The installer runs in its own dedicated, safe virtual environment (
.installer_venv). - Cross-Platform Compatibility:
- Windows: Full support for NVIDIA (CUDA), AMD (DirectML), and CPU-only fallbacks.
- Linux: Full support for NVIDIA (CUDA), AMD (ROCm), and CPU-only fallbacks.
- macOS: Full support leveraging Apple Silicon (MPS).
- Flexible Installations: Supports both
uvVirtual Environments (venv) and Git-trackedconda/venvintegration. - GPU Optimizations โ Installs Triton, SageAttention, and xformers with version compatibility
- 34 Curated Custom Nodes โ Additive manifest system โ never removes user-installed nodes
- Model Catalog v3 โ 7 model families (FLUX, Z-IMAGE, WAN 2.1, WAN 2.2, HiDream, QWEN, LTX-2) with VRAM-based recommendations and SHA-256 integrity
- Multi-Source Downloads โ aria2c accelerated, with HuggingFace + ModelScope fallback
- Junction Architecture โ User data (models, outputs) persists independently from ComfyUI updates
- Smart Update โ One command to update ComfyUI core, all bundled nodes, and Python dependencies
- Model Security Scanner โ Detects malicious pickle code in
.ckpt/.ptmodel files usingpicklescan - Cross-Platform Launchers โ Generated
.bat/.shscripts (Performance, LowVRAM, Manager TUI) - Verbose Mode โ Clean output by default, detailed logging with
-vflag
๐ Prerequisites
- Git
- GPU: NVIDIA (CUDA 12.x+), AMD (Radeon RX 6000+), or Apple Silicon (M1+)
- Internet connection
- [Optional] C++ Compiler: Windows users might need Visual Studio Build Tools (C++ workload) if installing custom nodes that require source compilation (e.g.,
insightface). Linux/macOS users usually havegcc/clanginstalled by default.
Note: Python 3.13 is auto-installed via
uvif not present. No manual Python setup required.
๐ Quick Start
Option A: One-Liner (Recommended)
Windows (PowerShell):
irm https://get.umeai.art/comfyui.ps1 | iex
Linux / macOS:
curl -fsSL https://get.umeai.art/comfyui.sh | sh
Only requires Git โ everything else (Python, uv, dependencies) is handled automatically.
Option B: Manual Download
- Download or clone this repository
- Double-click
Install.bat(Windows) or run./Install.sh(Linux/macOS) - Follow the on-screen prompts (install type, model packs)
- When done, double-click
UmeAiRT-Start-ComfyUI.batto launch!
Option C: CLI (Advanced)
# Install the CLI tool
pip install -e .
# Run the installer
umeairt-comfyui-installer install --path /path/to/install --type venv
# With verbose output
umeairt-comfyui-installer install --path /path/to/install -v
Option D: Docker Container
Requires Docker and an NVIDIA GPU.
docker run --gpus all -p 8188:8188 -v comfyui-data:/data -e NODE_TIER=full ghcr.io/umeairt/comfyui:latest
Open http://localhost:8188 โ done! โ
All your data (models, nodes, outputs) is stored in the comfyui-data volume and persists between restarts. To use a local folder instead: replace comfyui-data:/data with ./comfyui_data:/data.
Available image variants:
| Tag | Size | Description |
|---|---|---|
latest |
~4 GB | ComfyUI with pre-installed PyTorch (ready to go) |
latest-cloud |
~4.5 GB | + JupyterLab for RunPod / cloud |
latest-lite |
~2 GB | Minimal โ installs PyTorch on first run (~5 min) |
latest-lite-cloud |
~2 GB | Lite + JupyterLab |
Cloud variant (with JupyterLab for RunPod / remote):
docker run --gpus all --name comfyui -p 8188:8188 -p 8888:8888 -v comfyui-data:/data -e JUPYTER_ENABLE=true -e NODE_TIER=umeairt ghcr.io/umeairt/comfyui:latest-cloud
Tip: Use
-e NODE_TIER=minimal,umeairt, orfull(default) to control which custom nodes are installed on boot. The lite variants are ideal for RunPod where fast image pulls matter โ PyTorch installs once on first boot and is cached in the persistent volume.
๐ Migrating from the PowerShell Version
If you're currently using the PowerShell version (ComfyUI-Auto_installer-PS), you can migrate to this Python version with a single command. All your data (models, outputs, custom nodes) will be preserved.
irm https://get.umeai.art/migrate.ps1 | iex
The script will:
- Auto-detect your PowerShell installation
- Clean up PS-specific files (scripts, old venv, old launchers)
- Bootstrap the new Python environment (
uv+venv) - Reinstall all Python dependencies for every custom node (including user-installed)
- Generate new launcher scripts
โ ๏ธ This operation is irreversible. It is strongly recommended to back up your installation folder before proceeding. The script will suggest a backup command before asking for confirmation.
๐ Post-Installation
Four launcher scripts are generated in your install directory:
| Script | Description |
|---|---|
UmeAiRT-Start-ComfyUI.bat/.sh |
Launch ComfyUI (Performance mode with SageAttention) |
UmeAiRT-Start-ComfyUI_LowVRAM.bat/.sh |
Launch with --lowvram --fp8 for โค8 GB VRAM GPUs |
UmeAiRT-Manager.bat/.sh |
Open the TUI manager (update, download models, reinstall, settings) |
๐ ๏ธ CLI Commands
umeairt-comfyui-installer # TUI manager (launch, update, download, settings)
umeairt-comfyui-installer install # Full installation
umeairt-comfyui-installer install --reinstall # Clean reinstall (preserves models/output)
umeairt-comfyui-installer update # Update ComfyUI + nodes + deps
umeairt-comfyui-installer download-models # Interactive model downloads
umeairt-comfyui-installer scan-models # Scan models for malicious pickle code
umeairt-comfyui-installer info # Display system info (GPU, Python, tools)
umeairt-comfyui-installer version # Show version
All commands support --path (install directory) and --verbose flags.
๐ Architecture
Project Structure
ComfyUI-Auto_installer/
โโโ src/
โ โโโ cli.py # Typer CLI entry point
โ โโโ config.py # Pydantic config models
โ โโโ installer/ # Install, update, nodes, finalize
โ โ โโโ templates/ # .bat/.sh launcher templates
โ โ โโโ ...
โ โโโ downloader/ # Model download engine (manifest v3)
โ โโโ platform/ # OS abstraction (Windows/Linux/macOS)
โ โโโ utils/ # Logging, commands, packaging, GPU detection
โโโ scripts/ # Config files (dependencies.json, custom_nodes.json)
โโโ tests/ # 406 tests (unit + integration)
โโโ Install.bat / Install.sh # Bootstrap entry points
โโโ pyproject.toml # Project metadata (hatchling)
Install Directory Layout
The installer uses a junction-based architecture to separate user data from ComfyUI core:
install_path/
โโโ scripts/venv/ # Python virtual environment (venv or conda)
โโโ ComfyUI/ # Git repo (can be wiped for updates)
โ โโโ models/ โ ../models # โ junction (symlink)
โ โโโ output/ โ ../output # โ junction
โ โโโ main.py
โโโ models/ # โ User data (persists)
โโโ output/ # โ User data (persists)
โโโ logs/ # Install and update logs
โโโ scripts/ # Venv, config files, install metadata
โโโ UmeAiRT-Start-ComfyUI.bat
โโโ UmeAiRT-Start-ComfyUI_LowVRAM.bat
โโโ UmeAiRT-Manager.bat
Model Catalog (v3)
Models are defined in model_manifest.json, fetched from the Assets repository at install/update time:
| Family | Bundles | Type |
|---|---|---|
| FLUX | Dev, Fill | Image |
| Z-IMAGE | Turbo | Image |
| WAN 2.1 | T2V, I2V 480p | Video |
| WAN 2.2 | I2V, Fun Inpaint, Fun Camera | Video |
| HiDream | Dev | Image |
| QWEN | Image Edit | Image |
| LTX-2 | Dev | Video + Audio |
Each bundle offers multiple quantization variants (fp16, fp8, GGUF Q3โQ8) with VRAM recommendations (โ markers) and SHA-256 integrity checks. Downloads are accelerated via aria2c with HuggingFace + ModelScope fallback.
๐งโ๐ป Contributing
Contributions are welcome! See AGENTS.md for development guidelines and docs/codemaps/ for architecture diagrams.
# Setup development environment
uv sync --dev
# Run tests
uv run pytest tests/ -q
# Lint
uv run ruff check src/ tests/
๐ Third-Party Code & Attribution
| Component | Source | License |
|---|---|---|
| Triton/SageAttention install logic | DazzleML/comfyui-triton-and-sageattention-installer | MIT |
| ComfyUI | comfyanonymous/ComfyUI | GPL-3.0 |
๐ Security
- No external script execution โ all installation logic is internalized
- Secure subprocess calls โ no
shell=True, explicit argument lists - HTTPS only โ all download URLs validated
- Automated audits โ CI runs Bandit + pip-audit on every push
- Pickle model scanner โ Detects malicious code in
.ckpt/.ptfiles viapicklescan(auto-runs during updates) - Zip slip prevention โ Archive extraction validates all paths stay within the target directory
- SHA-256 integrity โ Post-download checksum verification for all model files
For details, see SECURITY.md.
๐ License
MIT License โ see LICENSE file.
โค๏ธ Credits
Developed by UmeAiRT. Thanks to Comfyanonymous for creating ComfyUI and to all custom node authors.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file umeairt_comfyui_installer-5.1.3.tar.gz.
File metadata
- Download URL: umeairt_comfyui_installer-5.1.3.tar.gz
- Upload date:
- Size: 215.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13639a9d6d528f06578c874b839b80a0f27a2be8bea81b7228c93b0eaefc1929
|
|
| MD5 |
478fc7fec76c3112fd3cb86a98c5df0f
|
|
| BLAKE2b-256 |
74449fc421bad033d4b93eb2b81319c4ad1b2b9d479bf255c554b6f6a4a56f74
|
Provenance
The following attestation bundles were made for umeairt_comfyui_installer-5.1.3.tar.gz:
Publisher:
release.yml on UmeAiRT/ComfyUI-Auto_installer-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
umeairt_comfyui_installer-5.1.3.tar.gz -
Subject digest:
13639a9d6d528f06578c874b839b80a0f27a2be8bea81b7228c93b0eaefc1929 - Sigstore transparency entry: 1186462819
- Sigstore integration time:
-
Permalink:
UmeAiRT/ComfyUI-Auto_installer-Python@4bd39433dfeeeba50f950026ec13dd97d6aacb5b -
Branch / Tag:
refs/tags/v5.1.3 - Owner: https://github.com/UmeAiRT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4bd39433dfeeeba50f950026ec13dd97d6aacb5b -
Trigger Event:
push
-
Statement type:
File details
Details for the file umeairt_comfyui_installer-5.1.3-py3-none-any.whl.
File metadata
- Download URL: umeairt_comfyui_installer-5.1.3-py3-none-any.whl
- Upload date:
- Size: 100.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b6b73a6f4322ffd38f79cfad0e8badb32f0192251591219f7c44a12d38ae11
|
|
| MD5 |
d4f9ef98cd1aec0c20b108fcd3a817c2
|
|
| BLAKE2b-256 |
24ee6c5c960d1f8211fa5e77426629cf2a380fc23c5cae6297bb65738ed21c87
|
Provenance
The following attestation bundles were made for umeairt_comfyui_installer-5.1.3-py3-none-any.whl:
Publisher:
release.yml on UmeAiRT/ComfyUI-Auto_installer-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
umeairt_comfyui_installer-5.1.3-py3-none-any.whl -
Subject digest:
f9b6b73a6f4322ffd38f79cfad0e8badb32f0192251591219f7c44a12d38ae11 - Sigstore transparency entry: 1186462825
- Sigstore integration time:
-
Permalink:
UmeAiRT/ComfyUI-Auto_installer-Python@4bd39433dfeeeba50f950026ec13dd97d6aacb5b -
Branch / Tag:
refs/tags/v5.1.3 - Owner: https://github.com/UmeAiRT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4bd39433dfeeeba50f950026ec13dd97d6aacb5b -
Trigger Event:
push
-
Statement type: