A workflow says it needs a custom node pack, but ComfyUI-Manager can’t find it, refuses to install from a Git URL, or installs it and then the nodes stay red. The fix is to install the custom node yourself.
Installing a custom node manually takes two steps: put the code in the custom_nodes folder, then install its Python packages into the same Python that runs ComfyUI. The second step is the one that trips people up, especially on the Windows portable build.
This guide shows how to install ComfyUI custom nodes manually on the portable build, manual (venv) installs and the desktop app. It also covers the Manager’s Install via Git URL (and the new allow_git_url_install setting that blocks it by default), comfy-cli, updating and removing nodes, and fixes for “import failed”.
- Step 1:
cd ComfyUI/custom_nodesthengit clone <repo-url>. - Step 2 (portable): from the portable folder, run
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\<pack>\requirements.txt. - Step 2 (manual install): activate your venv first, then
pip install -r requirements.txt. - Restart ComfyUI and check the console for “IMPORT FAILED”.
- Manager’s Install via Git URL is off by default in current versions. Enable it with
allow_git_url_install = truein the Manager’s config.ini (only works when ComfyUI listens on localhost). - Only install code you trust. A custom node runs with full access to your computer.
New to ComfyUI? Start with my ComfyUI guide, which covers install, nodes and workflows in one place.
Before You Start: Safety and Git
A custom node is Python code that ComfyUI runs when it starts. It can read your files, download things and run programs. Malicious node packs have been found in the past, so:
- Install from the original GitHub repository, not a re-upload.
- Prefer packs that are listed in the Comfy Registry or ComfyUI-Manager’s catalog, with recent commits and real users.
- Skim
requirements.txtand anyinstall.pybefore running them.
You also need Git. On Windows, install Git for Windows (or run winget install --id Git.Git -e) and reopen your terminal. On macOS, run xcode-select --install. On Linux, install the git package.
Every method below follows the same two steps: get the code into ComfyUI/custom_nodes/, then install its dependencies into ComfyUI’s Python.
Method 1: Windows Portable Build
The portable build ships its own Python in a folder called python_embeded (spelled that way). If you run plain pip install, the packages go into your system Python, and ComfyUI never sees them. That’s the number one cause of “import failed”.
Step 1: Clone the repository
Open a terminal in the portable folder (the one containing run_nvidia_gpu.bat). In File Explorer, type cmd in the address bar and press Enter.
cd ComfyUI\custom_nodes
git clone https://github.com/AUTHOR/REPO-NAME
cd ..\..
Step 2: Install the requirements with the embedded Python
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\REPO-NAME\requirements.txt
If the pack has an install.py instead of (or as well as) a requirements file, run it with the same Python:
python_embeded\python.exe ComfyUI\custom_nodes\REPO-NAME\install.py
Step 3: Restart and check
Close the ComfyUI console window and start run_nvidia_gpu.bat again. In the startup log, look for the “Import times for custom nodes” list. Your pack should appear without “(IMPORT FAILED)” next to it. Then refresh the browser and search for one of its nodes.
Method 2: Manual Install (venv or conda)
If you installed ComfyUI with git clone and a virtual environment, always activate that environment before installing anything.
# Windows (PowerShell)
cd C:\path\to\ComfyUI
.\venv\Scripts\Activate.ps1
# Linux / macOS
cd ~/ComfyUI
source venv/bin/activate
Then clone and install:
cd custom_nodes
git clone https://github.com/AUTHOR/REPO-NAME
pip install -r REPO-NAME/requirements.txt
With conda, run conda activate <env> instead. To double-check you’re in the right Python, run python -c "import sys; print(sys.executable)". It should point inside your ComfyUI environment.
ComfyUI’s install docs note that Python 3.13 is very well supported, and that some custom node dependencies may have trouble on 3.14. If a pack won’t install, its dependencies may simply not support your Python version yet.
Method 3: ComfyUI Desktop App
The desktop app comes with ComfyUI-Manager set up, so the easiest route is the Manager. For a manual install:
- Open the app’s base folder (the one you chose at install, which contains
custom_nodes,modelsand so on). - Clone the repo into
custom_nodesas above. - Install requirements using the app’s own Python environment. The desktop app keeps a Python virtual environment (a
.venvfolder) in its install location. Activate it, or use itspythonexecutable directly with-m pip install -r. - Restart the app.
The desktop app also has a built-in terminal panel that already uses its environment, which saves you hunting for the right Python.
No Git? Install From a ZIP
- On the repository’s GitHub page, click Code and then Download ZIP.
- Extract it into
ComfyUI/custom_nodes/. - Rename the folder to remove the
-mainor-mastersuffix GitHub adds. Some packs expect their exact folder name. - Install the requirements as in Method 1 or 2, then restart.
The downside: ZIP installs can’t be updated with git pull or the Manager’s update button. You’ll need to download them again.
Install via Git URL in ComfyUI-Manager
ComfyUI-Manager can install a pack straight from a GitHub link with Install via Git URL. If you’ve tried this recently and got a “not allowed” message, that’s by design.
Why it’s blocked by default
The Manager’s README now says Install via Git URL and its pip install feature are governed by two dedicated settings, allow_git_url_install and allow_pip_install. Both default to false, and they replace the old trick of setting security_level = weak. Lowering the security level no longer enables them.
How to enable it
- Find the Manager’s
config.ini. On ComfyUI v0.3.76 and newer it’s inComfyUI/user/__manager/config.ini. On older versions it’sComfyUI/user/default/ComfyUI-Manager/config.ini. - Under
[default], add:allow_git_url_install = true - Restart ComfyUI. There’s no hot reload.
Two limits from the README: the flags only work when ComfyUI listens on a loopback address like 127.0.0.1, so they never open up a server exposed to your network. And for the batch install queue, the normal security level must also allow it. My ComfyUI security level guide explains the levels themselves.
Built-in Manager on new installs
Recent ComfyUI versions can run the Manager as a built-in feature. For manual and portable installs, ComfyUI’s docs say to run pip install -r manager_requirements.txt and start ComfyUI with --enable-manager. The --enable-manager-legacy-ui flag brings back the old Manager interface.
If you still have the Manager as a folder in custom_nodes, see how to install ComfyUI Manager.
Install With comfy-cli
comfy-cli is Comfy’s official command-line tool. It’s handy for scripts, servers and reinstalling the same set of nodes on a new machine.
pip install comfy-cli
comfy --here node install comfyui-impact-pack
comfy node update all
comfy node simple-show installed
Use --here when you run it from inside your ComfyUI folder, or --workspace=<path> to point at a specific install. Node names are the Comfy Registry IDs, not GitHub URLs.
Update, Disable and Remove Custom Nodes
| Task | Manual way | Notes |
|---|---|---|
| Update | cd custom_nodes/REPO-NAME then git pull, then re-run the requirements install |
Requirements often change between versions |
| Disable | Rename the folder to end in .disabled, or move it out of custom_nodes |
ComfyUI skips folders ending in .disabled |
| Disable all | Start with --disable-all-custom-nodes |
Great for finding which pack breaks startup |
| Remove | Delete the pack’s folder and restart | Its Python packages stay installed; that’s usually harmless |
Before big updates, take a Manager snapshot or note your commits, so you can roll back. My update ComfyUI guide covers updating ComfyUI itself.
Troubleshooting
(IMPORT FAILED) in the console
Scroll up to the error above it. “ModuleNotFoundError: No module named X” means the requirements went into the wrong Python. Re-run the install with python_embeded\python.exe -m pip (portable) or with your venv active. My import failed fix covers the other errors.
“git is not recognized”
Git isn’t installed or isn’t on PATH. Install it, then open a new terminal.
Nodes still red after install
Restart ComfyUI fully (not just refresh the browser). Then check the folder name matches what the workflow expects, and that the pack didn’t fail to import.
Installing one pack broke another
Two packs want different versions of the same package. Check the console for version conflicts, and avoid downgrading torch, numpy or similar core packages. If a requirements file pins an old torch, remove that line before installing.
“This action is not allowed” in the Manager
Install via Git URL is turned off. Set allow_git_url_install = true as described above, or install manually.
Error building a wheel (insightface, dlib and similar)
The package needs a C++ compiler or a prebuilt wheel for your Python version. Look in the pack’s README for a prebuilt wheel link matching your Python version.
FAQ
Where is the custom_nodes folder?
Inside your ComfyUI folder: ComfyUI/custom_nodes/. On the portable build, that’s ComfyUI_windows_portable/ComfyUI/custom_nodes/.
Why do I have to use python_embeded on the portable build?
Because ComfyUI runs on that embedded Python. Packages installed with your system Python are invisible to it.
Do I need to restart ComfyUI after installing a node?
Yes. Custom nodes load only at startup. A browser refresh isn’t enough.
Is it safe to install custom nodes from GitHub?
Only from authors and repos you trust. A custom node can run any code on your machine.
Why is Install via Git URL disabled?
Current ComfyUI-Manager versions require allow_git_url_install = true in config.ini, and it only works when ComfyUI listens on localhost.
Can I install custom nodes without ComfyUI-Manager?
Yes. Clone the repo into custom_nodes, install its requirements with ComfyUI’s Python, and restart.
How do I find which custom node is breaking ComfyUI?
Start with --disable-all-custom-nodes. If it works, re-enable packs a few at a time until it breaks.
Sources
- ComfyUI docs: installation.md (portable build, python_embeded, Python versions, built-in Manager setup)
- ComfyUI-Manager README (config.ini paths, security levels, allow_git_url_install and allow_pip_install)
- comfy-cli README (comfy node install, update and show commands)
- ComfyUI source: cli_args.py (
--enable-managerand--disable-all-custom-nodes)




