extra_model_paths.yaml configuration file allows you to specify custom search paths for models, enabling you to:
- Share models between ComfyUI and other UIs (Automatic1111, InvokeAI, etc.)
- Organize models in a central location
- Point to existing model installations without duplicating files
Configuration File Location
The configuration file should be placed in your ComfyUI root directory:Basic Configuration Structure
Each configuration is defined as a named section with abase_path and model type folders:
Rename
extra_model_paths.yaml.example to extra_model_paths.yaml to activate the configuration.ComfyUI Configuration
To point to an existing ComfyUI installation or a central model folder:Text Encoders with Multiple Paths
You can specify multiple search paths for a single model type using the pipe (|) character:
Diffusion Models with Multiple Paths
Similarly, diffusion models can have multiple search locations:Automatic1111 Configuration
To share models with Stable Diffusion WebUI (A1111):Supported Model Types
ComfyUI supports the following model folder types:Main model checkpoints (SD1.5, SDXL, Flux, etc.)
CLIP and text encoder models
CLIP vision models for image conditioning
Model configuration files
ControlNet models
Diffusion models and UNet models
Textual inversion embeddings
LoRA models (regular, LoCon, LoHA)
Upscaler models (ESRGAN, SwinIR, etc.)
VAE models
Audio encoder models
Model patch files
Hypernetwork models
Style transfer models
VAE approximation models (TAESD)
PhotoMaker models
Classifier models
GLIGEN models
Custom nodes directory
For a complete list of supported model types, see
folder_paths.py in the ComfyUI source code.Default Folders Flag
Use theis_default flag to prioritize certain folders:
- Listed first in model selection dropdowns
- Used as the default download location for new models
Multiple Configurations
You can define multiple configurations in the same file:Path Resolution
Paths can be specified as:- Absolute paths:
/home/user/models/checkpoints/ - Relative to base_path:
models/checkpoints/(relative to thebase_pathsetting)
Example: Complete Configuration
Troubleshooting
Models Not Appearing
- Check that the YAML syntax is correct (use spaces, not tabs)
- Verify that paths exist and are accessible
- Ensure the file is named
extra_model_paths.yaml(not.yaml.example) - Check ComfyUI startup logs for configuration errors
Invalid YAML Syntax
Common YAML errors:- Using tabs instead of spaces for indentation
- Missing colons after keys
- Incorrect indentation levels
- Not quoting paths with special characters