Skip to content

Conversation

realno
Copy link

@realno realno commented Aug 31, 2025

This PR allows users to load custom nodes from multiple directories, similar to how extra model paths work in ComfyUI.

For example, the users can keep all the custom nodes on a shared/portable drive and mount it to different computers or systems (Win & Linux).

Added support for loading custom nodes from multiple directories through a YAML configuration file called extra_custom_node_paths.yaml. This is useful when you want to:

Benefit:

Organize custom nodes in different locations
Share custom nodes between multiple ComfyUI installations
Keep custom nodes separate from the main ComfyUI directory

How to use:

Create a file called extra_custom_node_paths.yaml in ComfyUI root directory:

comfyui:
base_path: /path/to/base1
ComfyUI will try to load custom nodes from "/path/to/base1/custom_nodes" in addition to the default path.

- Custom node paths are loaded during ComfyUI startup
- Paths are validated for existence before being added
- The system maintains the order of paths (default paths first)
- Duplicate paths are automatically handled
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation should probably have some info on how this is handled. That is, if you have a copy of a node pack in two directories - what happens, exactly?

@comfyanonymous
Copy link
Owner

You can already use the extra_model_paths.yaml for this

@realno
Copy link
Author

realno commented Sep 5, 2025

You can already use the extra_model_paths.yaml for this

Thanks for pointing this out, let me look more into existing functionality.

@realno
Copy link
Author

realno commented Sep 13, 2025

Confirmed using existing model path yaml works too, closing the PR.

@realno realno closed this Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants