How to Install ComfyUI: Get Started in Minutes
ComfyUI is a free and powerful tool for creating AI images using Stable Diffusion. This step-by-step guide shows how to install ComfyUI on Windows or Mac — no prior experience required.
What Is ComfyUI?
ComfyUI is a free, open-source program for generating AI images using a visual node-based interface. It is one of the most popular tools for Stable Diffusion because it gives you precise control over every part of the image generation process — from model selection to sampling, upscaling, and more.
Unlike simple text-to-image tools, ComfyUI lets you build custom workflows, chain multiple models, and automate complex image generation pipelines. It works with Stable Diffusion, FLUX, SDXL, and many other model families.
Why Install ComfyUI Locally?
Running ComfyUI on your own computer gives you full control and unlimited access — no cloud credits, no usage limits, no subscription fees. Here is why local installation is worth it:
Full Control
Runs entirely on your own machine. No data leaves your computer.
Faster Results
GPU-accelerated generation is significantly faster than most cloud tools.
Fully Customizable
Install custom nodes, load any workflow, build your own pipelines.
Any Model
Use any checkpoint model you download — FLUX, SDXL, SD 1.5, and more.
Fast Updates
Access new open-source models as soon as they are released.
Free Forever
No monthly fees. ComfyUI is fully open-source with an active community.
How to Install ComfyUI on Windows
The easiest way to install ComfyUI on Windows is the portable version — no Python setup required. Follow these five steps:
How to Install ComfyUI on Mac
Mac installation uses the Terminal and requires a few one-time setup steps. This works on both Apple Silicon (M1/M2/M3) and Intel Macs. Apple Silicon users get Metal GPU acceleration for faster generation.
Step 1 — Prepare a Folder
Open Finder, go to your Home directory, and create a new folder named AI. This is where ComfyUI will be installed.
Step 2 — Open Terminal and Navigate to the Folder
Open Terminal (Applications → Utilities → Terminal) and navigate to your new folder:
cd ~/AIStep 3 — Install Homebrew
Homebrew is the package manager that makes installing Python and Git straightforward on Mac. Visit brew.sh and follow the installation instructions. Then verify it worked:
brew doctorStep 4 — Install Python 3.11
Check if Python is already installed:
python3 --versionIf it is not installed or the version is wrong, install it with Homebrew:
brew install python@3.11Step 5 — Upgrade pip and Setuptools
python3 -m pip install --upgrade setuptoolsStep 6 — Install Git
If you don't have Git, download it from git-scm.com/downloads/mac and follow the installer instructions.
Step 7 — Clone ComfyUI
Download the ComfyUI source code from GitHub:
git clone https://github.com/comfyanonymous/ComfyUI.gitStep 8 — Install ComfyUI Dependencies
Navigate into the ComfyUI folder and install the required Python packages:
cd ComfyUIpip3 install -r requirements.txtStep 9 — Launch ComfyUI
Start ComfyUI with:
python3 main.pyIf you installed Python 3.11 specifically:
python3.11 main.pyCopy the URL shown in Terminal (usually http://127.0.0.1:8188) into your browser.
Starting ComfyUI Again Later
Each time you want to use ComfyUI after the initial setup, open Terminal, navigate to your ComfyUI folder, and run:
python3.11 main.pyAccessing and Using the ComfyUI Web Interface
After launching ComfyUI, open your browser and go to the URL shown in your terminal — usually:
http://127.0.0.1:8188You will see the node-based ComfyUI interface. From here you can load templates, build custom workflows, select models, write prompts, and generate images. If this is your first time using ComfyUI, read the ComfyUI Interface Overview to learn what each panel does.
Conclusion
ComfyUI is a flexible, free tool for creating AI images on your own computer. Now that your installation is complete, the next steps are to explore different checkpoint models, try custom workflows, and install add-ons via ComfyUI Manager to expand what you can create.
For next steps, explore the ComfyUI Manager installation guide to start adding custom nodes and expanding your workflow options.
Frequently Asked Questions
Join the discussion
Sign in to leave a comment or reply
No comments yet
Be the first to share your thoughts!












