What ComfyUI is and what you need before you start

ComfyUI is a node-based interface for running AI image generation models on your own computer. Instead of uploading images to a web service, you download the software and run it locally. This guide walks you through the installation process on Windows, Mac, or Linux.

Before you begin, check that your computer meets the basic requirements. You need at least 8 GB of RAM, though 16 GB or more is better if you plan to generate larger images. If you have an NVIDIA graphics card, ComfyUI will run much faster — AMD and Intel GPUs work too, but the setup differs slightly. You also need about 20 to 50 GB of free disk space, depending on which AI models you download.

ComfyUI requires Python (a programming language) and Git (a tool for downloading code from the internet). If you don't have these installed, the steps below will guide you through that first.

Key Takeaways

  • ComfyUI runs on Windows, Mac, and Linux, but the installation steps differ slightly for each operating system.
  • You must install Python and Git before you can install ComfyUI, and both are free downloads.
  • After installation, you download AI models separately — ComfyUI itself is just the interface that runs them.
  • The first time you launch ComfyUI, it downloads additional files automatically, which can take several minutes depending on your internet speed.
  • If installation fails, the most common causes are missing Python, an outdated version of Git, or insufficient disk space.

Installing Python and Git on Windows

Open your web browser and go to python.org. Click the yellow "Download Python" button — it will offer the latest version. Download the installer for Windows. Once the file finishes downloading, open it and run through the setup. On the first screen, check the box that says "Add Python to PATH" before clicking "Install Now." This step is critical — it lets ComfyUI find Python on your computer.

Next, go to git-scm.com and download the Windows installer. Run the installer and accept the default settings throughout the setup. You do not need to change anything — the defaults work fine for ComfyUI.

After both installations finish, restart your computer. This ensures Windows recognizes the new programs.

Installing Python and Git on Mac

Mac comes with Python pre-installed, but it is often an older version. The easiest way to get a current version is to install Homebrew, a package manager for Mac. Open the Terminal app (search for "Terminal" in Spotlight), then paste this line and press Enter:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Follow the on-screen prompts. Once Homebrew finishes, type this command and press Enter:

brew install python git

Homebrew will download and install both Python and Git automatically. This takes a few minutes. When it finishes, close Terminal and move to the next section.

Installing Python and Git on Linux

Open a terminal window. If you use Ubuntu or Debian, type this command and press Enter:

sudo apt update && sudo apt install python3 python3-pip git

If you use Fedora, type this instead:

sudo dnf install python3 python3-pip git

Type your password when prompted. The system will download and install both programs. Once the command finishes, you are ready to move to the next step.

Downloading and running ComfyUI

Open a terminal or command prompt on your computer. On Windows, search for "Command Prompt" in the Start menu. On Mac or Linux, open Terminal. Navigate to the folder where you want to install ComfyUI — for example, your Documents folder or Desktop. Type this command and press Enter:

git clone https://github.com/comfyanonymous/ComfyUI.git

Git will download ComfyUI into a new folder called "ComfyUI." This takes a minute or two depending on your internet speed. Once it finishes, type this command:

cd ComfyUI

This moves you into the ComfyUI folder. Now type this command to install the Python packages ComfyUI needs:

pip install -r requirements.txt

This step downloads several files and can take 5 to 10 minutes. Let it run without interrupting. When it finishes, you are ready to launch ComfyUI.

Launching ComfyUI for the first time

In the same terminal or command prompt window, type this command and press Enter:

python main.py

ComfyUI will start up. The first time you run it, it downloads additional files — this can take several minutes. You will see text scrolling in the terminal. When the scrolling stops and you see a message that includes a web address (usually something like "http://127.0.0.1:8188"), ComfyUI is ready.

Open your web browser and go to that address. You should see the ComfyUI interface — a dark screen with nodes and connections on the left side. If you see this, installation was successful. The terminal window must stay open while you use ComfyUI. If you close it, ComfyUI stops running.

Downloading AI models to use with ComfyUI

ComfyUI itself is just the interface. To generate images, you need to download AI models — these are large files that contain the actual image generation code. The most common model is Stable Diffusion, which you can download from huggingface.co.

Once you download a model file, move it into the "models" folder inside your ComfyUI folder. The exact subfolder depends on the model type — checkpoint models go in "models/checkpoints," and other types have their own folders. ComfyUI will recognize the model the next time you restart it.

Downloading models takes time because they are large files — often 4 to 7 GB each. Plan for this when you first set up ComfyUI.

Troubleshooting common installation problems

If you see an error message that says "python is not recognized" or "git is not recognized," Python or Git did not install correctly. Go back to the installation steps for your operating system and make sure you restarted your computer after installing them. On Windows, double-check that you clicked "Add Python to PATH" during the Python installation.

If the "pip install -r requirements.txt" command fails, you may not have enough disk space or your internet connection dropped. Check that you have at least 20 GB free, then try the command again. If it fails a second time, delete the ComfyUI folder and start the download over from the "git clone" step.

If ComfyUI launches but the web interface does not load in your browser, try typing the address into a different browser. If that does not work, close ComfyUI in the terminal (press Ctrl+C), wait 10 seconds, and run "python main.py" again.

Frequently Asked Questions

Do I need a graphics card to run ComfyUI?

No, but it makes a huge difference in speed. ComfyUI runs on CPU alone, but generating a single image can take 10 to 30 minutes. With a graphics card, the same image takes 30 seconds to 2 minutes. NVIDIA cards are fastest, but AMD and Intel GPUs work too.

Can I use ComfyUI on a Mac with an M1 or M2 chip?

Yes. Follow the Mac installation steps above. ComfyUI detects your chip automatically and runs on it. Performance is good, though not as fast as a high-end NVIDIA card on Windows.

What do I do if I want to update ComfyUI to a newer version?

Open a terminal in your ComfyUI folder and type "git pull". This downloads the latest version without erasing your models or settings. If you get an error, you may have made changes to ComfyUI files — type "git checkout ." first to undo them, then try "git pull" again.

How much disk space do I actually need?

ComfyUI itself takes about 2 GB. Each AI model takes 4 to 7 GB depending on the type. If you plan to keep three or four models, budget 30 to 40 GB total. You can delete models later to free up space if you need to.

Can I run ComfyUI and close the terminal window?

No. ComfyUI runs inside the terminal window, so closing it stops the program. You can minimize the terminal, but it must stay open while you use ComfyUI.