ComfyUI logoComfyUI
Home / Guide / ComfyUI github

ComfyUI GitHub: Repository Tour, Updates, Issues and Contributing

Navigate the official ComfyUI GitHub repository, update from Git safely, write useful bug reports and start contributing.

Keyword · ComfyUI githubUpdated October 25, 20266 min read
Reading the ComfyUI GitHub Like a Pro — feature image

Every version of ComfyUI, whether you install the Desktop app, a portable package or run it in the cloud, starts life in one place: the ComfyUI GitHub repository. That repository is far more than a download link. It is where releases are tagged, bugs are reported, new model support appears first, and thousands of developers coordinate their work. Learning to read it gives you earlier access to fixes, better bug reports, and a clear view of where the project is heading. This guide walks through the repository structure, the ways to install from it, how to update safely, and how to take part in the community around it.

Where the code lives

ComfyUI was created by the developer known as comfyanonymous and first published in January 2023. As the project grew, a company called Comfy Org formed around it, and the main repository now sits under the Comfy-Org organisation on GitHub. Older links that point to the original personal account generally redirect there. Related official repositories in the same organisation include the frontend code, the Desktop application, ComfyUI Manager and documentation.

The code is licensed under GPL-3.0, which allows anyone to read, modify and redistribute it, provided modified versions that are distributed remain under the same license.

A tour of the repository

PathWhat it contains
main.pyEntry point that parses launch options and starts the server
server.pyThe web server, API routes and WebSocket handling
execution.pyGraph validation, ordering and caching logic
nodes.pyMany of the core built-in node definitions
comfy/Model loading, sampling, memory management and model architecture code
comfy_extras/Additional built-in nodes grouped by feature
custom_nodes/Where you place extensions; ships nearly empty
models/Folder skeleton for checkpoints, LoRAs, VAEs and more
requirements.txtPython dependencies, excluding PyTorch

Even if you never write Python, glancing at comfy_extras is a good way to discover built-in nodes you might not know exist.

Three ways to get ComfyUI from GitHub

Download the ZIP

On the repository page, the Code button offers “Download ZIP”, which gives you the latest state of the main branch as ComfyUI-master.zip. It is the quickest option, but it contains no Git history, so updating later means downloading again.

Clone with Git

Cloning is better for anyone who plans to update regularly:

git clone https://github.com/Comfy-Org/ComfyUI.git
cd ComfyUI
python -m venv venv
venv\Scripts\activate
pip install torch torchvision torchaudio --index-url <URL from pytorch.org>
pip install -r requirements.txt
python main.py

Updating is then a single git pull followed by reinstalling requirements if they changed.

Releases

The Releases section lists tagged versions with notes and, for Windows, the portable package as a downloadable asset. Releases are a sensible target if you prefer stability over the very newest commits.

Updating safely

ComfyUI changes quickly, sometimes several times a day. Most updates are harmless, but occasionally a core change requires custom nodes to adapt. A safe routine:

  1. Note your current commit with git log -1 so you can return to it.
  2. Run git pull.
  3. Run pip install -r requirements.txt in case dependencies changed.
  4. Update your custom nodes as well.
  5. Test a known workflow with a fixed seed.

If something breaks, git checkout <previous commit> takes you back while you wait for a fix. Avoid editing core files directly; local changes make pulls fail and are lost when you update.

Reading releases and commits

The commit history is the most up-to-date changelog available. New model architectures, sampler options and memory improvements usually appear there first, often with a short description. Release notes summarise groups of changes for people who do not follow every commit. If a new model was announced today, checking the latest commits tells you whether ComfyUI already supports it natively.

Using issues effectively

The Issues tab is where bugs are reported and tracked. Before opening a new issue, search existing ones: common problems are often already reported with a fix or workaround. When you do report something, a useful issue includes:

Disabling custom nodes before reporting is the single most helpful step. Many issues filed against the core are actually caused by an extension.

Discussions and community spaces

Questions that are not bugs, such as “how do I do X?”, fit better in the repository’s discussions area or the official community channels linked from the README and the Comfy Org website. The official documentation site also contains tutorials and node references that answer many common questions.

Contributing to ComfyUI

Contributions take many forms beyond code:

For code contributions, keep pull requests small and focused, follow the existing style, explain the motivation clearly, and be prepared for review feedback. Large architectural changes are best discussed first, before you invest days of work.

Writing your own custom node

One of the best ways to understand the codebase is to write a simple custom node. A node is a Python class with a method that declares its inputs, a tuple of return types, a function name to call and a category for the menu. Place it in a folder inside custom_nodes with an __init__.py that exports a mapping of node names to classes, restart ComfyUI, and it appears in the node menu. The official documentation includes a walkthrough, and reading a small existing node pack on GitHub is equally instructive.

If you publish your node, add a clear README, list dependencies in a requirements.txt, pin versions only when necessary, and register it so ComfyUI Manager users can find it.

Watching these repositories, or just starring them, keeps you informed about changes that affect your workflows.

Staying safe with GitHub downloads

Forks and copies of ComfyUI exist on GitHub, some useful, some abandoned and a few malicious. Always check that you are on the official Comfy-Org repository before downloading. For custom nodes, review the author, star count, recent activity and code before installing, since every node pack runs Python code with your user’s permissions.

Branches, tags and pinning a version

The default branch receives changes continuously. If you need a stable reference for a project, check out a specific release tag instead with git checkout followed by the tag name. Your installation then stays on that exact version until you choose to move. Return to the latest code later with git checkout master and git pull.

Pinning is especially useful for long client projects or automated pipelines that call ComfyUI through its API. Record the commit or tag in your project notes, along with the commits of your custom nodes, and you can rebuild the identical environment months later.

Watching for changes that matter to you

GitHub lets you watch a repository for releases only, which keeps notifications manageable. Combined with an occasional look at the commit list, this is enough to know when new model support or important fixes arrive without being flooded by every discussion.

The API you will find in the code

Reading server.py reveals the HTTP routes the interface itself uses, such as submitting a prompt, checking the queue and retrieving history. Developers use the same endpoints to automate ComfyUI from scripts. Export a workflow in API format from the interface, send it as JSON to the local server, and listen on the WebSocket for progress. The repository includes small example scripts that demonstrate exactly this.

Summary

The ComfyUI GitHub repository is the source of truth for the whole project. Clone it if you want to update easily, read the commits to see what is new, search issues before reporting problems, and report bugs with clear, minimal examples. Whether you contribute code or simply follow along, a little familiarity with the repository makes you a far more confident ComfyUI user.