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:string
Main model checkpoints (SD1.5, SDXL, Flux, etc.)
string
CLIP and text encoder models
string
CLIP vision models for image conditioning
string
Model configuration files
string
ControlNet models
string
Diffusion models and UNet models
string
Textual inversion embeddings
string
LoRA models (regular, LoCon, LoHA)
string
Upscaler models (ESRGAN, SwinIR, etc.)
string
VAE models
string
Audio encoder models
string
Model patch files
string
Hypernetwork models
string
Style transfer models
string
VAE approximation models (TAESD)
string
PhotoMaker models
string
Classifier models
string
GLIGEN models
string
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