Skip to main content
The 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:
Alternatively, you can specify custom configuration files using the CLI:
You can load multiple configuration files by repeating the argument:

Basic Configuration Structure

Each configuration is defined as a named section with a base_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 the is_default flag to prioritize certain folders:
Folders marked as default will be:
  • 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:
ComfyUI will search all configured paths when looking for models.

Path Resolution

Paths can be specified as:
  • Absolute paths: /home/user/models/checkpoints/
  • Relative to base_path: models/checkpoints/ (relative to the base_path setting)
On Windows, use forward slashes (/) or escaped backslashes (\\) in paths:

Example: Complete Configuration

Troubleshooting

Models Not Appearing

  1. Check that the YAML syntax is correct (use spaces, not tabs)
  2. Verify that paths exist and are accessible
  3. Ensure the file is named extra_model_paths.yaml (not .yaml.example)
  4. 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

Permission Issues

Ensure ComfyUI has read access to all configured paths: