What it does
Zero-prerequisite setup
Installs Git and Visual C++ Runtime via winget if missing — no manual prep required.
Self-contained Python
Installs Python 3.11 in an isolated directory — your system Python is never touched.
Auto CUDA detection
Detects your NVIDIA GPU and installs PyTorch with CUDA 13.0 wheels; falls back to cu124 if 13.0 wheels are not yet published.
Runs as a Windows service
Registers ComfyUI as an auto-start service via NSSM on port 8188 with rotating log files.
Firewall & shortcut
Opens the inbound firewall rule for port 8188 and creates a desktop shortcut pointing to your LAN IP.
Server-ready hosting
Designed to run on a dedicated Windows server — auto-starts on boot, survives reboots, and exposes ComfyUI across your local network.
What gets installed
📁
ComfyUI
Cloned from GitHub into C:\Ollamafy\ComfyUI with all standard model subdirectories created
github.com/comfyanonymous
🐍
Python 3.11.9 (embeddable)
Installed inside C:\Ollamafy\ComfyUI\python — fully isolated from any system Python
self-contained
🔥
PyTorch + CUDA 13.0
Installed into a venv at C:\Ollamafy\ComfyUI\venv; falls back to cu124 if cu130 wheels aren't published yet
NVIDIA GPU auto-detected
🔧
NSSM — Windows service manager
Downloaded and used to register ComfyUI as an auto-start service; installed to C:\Ollamafy\nssm
nssm.cc
Quick start
# Run in an elevated PowerShell prompt (Run as Administrator)
PS> Set-ExecutionPolicy Bypass -Scope Process -Force
PS> .\Install-comfyUICuda13.ps1
# Optional: custom port or force CPU-only mode
PS> .\Install-comfyUICuda13.ps1 -Port 8189 -CPUOnly
# After install, manage the service with standard PowerShell cmdlets
PS> Start-Service "Ollamafy ComfyUI"
PS> Stop-Service "Ollamafy ComfyUI"
Related tool
About ComfyUI
🙏
ComfyUI was created by comfyanonymous — the powerful, node-based Stable Diffusion interface that makes everything here possible. If you want the official installer or prefer to set up ComfyUI directly from the source, visit the official site.
comfy.org — Official ComfyUI installer & downloadsDownload the Installer
A single PowerShell script — run it once in an elevated prompt and ComfyUI is up and running as a Windows service.
Download Installer