Skip to content
,

ComfyUI extra_model_paths.yaml Guide: Share Models With A1111, Forge or Another Drive

8–12 minutes
Woman in a sunny cafe holding a tablet with a MODEL PATHS card, hook share models one folder all UIs

Got 200 GB of checkpoints and LoRAs sitting in an Automatic1111 or Forge folder, and don’t want to copy them all again for ComfyUI? Or want your models on a big second drive while ComfyUI stays on C:? ComfyUI handles both with one small text file: extra_model_paths.yaml.

This guide shows exactly where that file goes for the portable, manual and Desktop versions of ComfyUI, gives copy-and-paste configs for sharing models with A1111/Forge or a central models folder, lists every valid folder key, and fixes the common “my models still don’t show up” problems.

TL;DR

  • Portable / manual: rename ComfyUI/extra_model_paths.yaml.example to extra_model_paths.yaml in the same folder.
  • Desktop (Windows): edit %APPDATA%\ComfyUI\extra_models_config.yaml. Add to it, don’t replace it.
  • Share with A1111/Forge: uncomment the a1111: block and set base_path to your webui folder.
  • Keys must match ComfyUI’s folder names: checkpoints, loras, vae, text_encoders, diffusion_models, upscale_models and so on.
  • Restart ComfyUI after saving. The console prints “Adding extra search path” for every folder it picked up.

New to ComfyUI? Start with my ComfyUI guide, which covers install, nodes and workflows in one place.

What extra_model_paths.yaml Does

By default, ComfyUI looks for models inside its own models folder: models/checkpoints, models/loras, models/vae and so on. My ComfyUI model folders cheat sheet lists which file goes where.

extra_model_paths.yaml adds more places to search. It doesn’t move or copy anything. ComfyUI simply lists models from those folders in the same dropdowns, next to the ones in its own folders. That lets you:

  • Reuse an existing Automatic1111, Forge or other UI’s models with zero duplication.
  • Keep huge model files on a separate SSD or HDD.
  • Share one models library between several ComfyUI installs (portable, Desktop, a test copy).
  • Load custom nodes from an extra folder.

Where the File Goes

The location depends on how you installed ComfyUI.

Install type File name Location
Windows portable extra_model_paths.yaml ComfyUI_windows_portable\ComfyUI\
Manual install (git clone) extra_model_paths.yaml The ComfyUI root, next to main.py
Desktop, Windows extra_models_config.yaml %APPDATA%\ComfyUI\ (that is C:\Users\<you>\AppData\Roaming\ComfyUI\)
Desktop, macOS extra_models_config.yaml ~/Library/Application Support/ComfyUI/
Desktop, Linux extra_models_config.yaml ~/.config/ComfyUI/

Portable and manual installs

ComfyUI ships an example file called extra_model_paths.yaml.example in its root folder. Its first line says it all: “Rename this to extra_model_paths.yaml and ComfyUI will load it.”

  1. Copy extra_model_paths.yaml.example.
  2. Rename the copy to extra_model_paths.yaml. On Windows, turn on View → File name extensions first, so you don’t end up with extra_model_paths.yaml.txt.
  3. Edit it with a plain text editor such as Notepad++ or VS Code.

ComfyUI Desktop

The Desktop app writes its own config, extra_models_config.yaml, when you install it. It already holds the base path you chose during setup. Comfy’s docs warn you to add your entries to this existing file “without overwriting the path configuration generated during installation”, and to keep the file where it is.

Back the file up before editing. You can also open the menu at the top of the Desktop app and use its Storage tab to add model folders without touching YAML.

How the File Is Structured

The file is YAML: a list of named blocks, each with a base_path and folder entries. Here’s the shape:

my_models:                    # any name you like
    base_path: D:/AI/models/  # root folder for this block
    checkpoints: checkpoints/ # relative to base_path
    loras: loras/
    vae: vae/

How ComfyUI reads it (from its loader code):

  • Each top-level name (my_models, a1111, comfyui) is just a label. Use as many blocks as you want.
  • Each folder path is joined to base_path. If there’s no base_path, relative paths are resolved from the YAML file’s own folder.
  • A relative base_path is also resolved from the YAML file’s folder.
  • ~ and environment variables like %USERPROFILE% or $HOME are expanded in base_path.
  • Several folders for one key go on separate lines using YAML’s | block.

YAML is picky about indentation. Use spaces, never tabs, and keep every key in a block at the same indent.

Windows paths

Forward slashes work fine on Windows and avoid escaping problems: D:/AI/models/. Backslashes also work when the value isn’t in quotes, as in D:\stable-diffusion-webui\. If you put a backslash path in double quotes, you must double every backslash, so it’s simpler to skip the quotes.

Share Models With Automatic1111 or Forge

The example file already contains an a1111 block, because A1111 uses different folder names (Stable-diffusion instead of checkpoints, Lora instead of loras). Uncomment it and set your path:

a1111:
    base_path: D:/stable-diffusion-webui/
    checkpoints: models/Stable-diffusion
    configs: models/Stable-diffusion
    vae: models/VAE
    loras: |
         models/Lora
         models/LyCORIS
    upscale_models: |
                  models/ESRGAN
                  models/RealESRGAN
                  models/SwinIR
    embeddings: embeddings
    hypernetworks: models/hypernetworks
    controlnet: models/ControlNet

This is the block from ComfyUI’s own example file. Only the base_path line changes.

Forge, Forge Classic and Forge Neo

Forge keeps the A1111 layout for checkpoints, LoRAs, VAE, ESRGAN and embeddings, so the same block works. Just point base_path at your Forge folder (for example D:/stable-diffusion-webui-forge/).

Newer Forge builds also have extra folders for Flux-style models, such as separate text encoder and diffusion model folders. Folder names differ between forks, so open your Forge models folder, check the exact names, and add lines like these:

    text_encoders: models/text_encoder
    diffusion_models: models/Stable-diffusion

Adjust the right-hand side to match what you actually see on disk.

Can both apps use the same files at once?

Yes. ComfyUI only reads the files. Both UIs can be open at the same time, though loading the same big model in both doubles VRAM and RAM use.

Use a Central Models Folder on Another Drive

If you’re starting fresh, the cleanest setup is one models folder that uses ComfyUI’s own folder names, on your biggest drive:

D:/AI/models/
    checkpoints/
    diffusion_models/
    text_encoders/
    vae/
    loras/
    controlnet/
    upscale_models/
    clip_vision/
    embeddings/

Then add this block:

central:
    base_path: D:/AI/models/
    is_default: true
    checkpoints: checkpoints/
    diffusion_models: diffusion_models/
    text_encoders: text_encoders/
    vae: vae/
    loras: loras/
    controlnet: controlnet/
    upscale_models: upscale_models/
    clip_vision: clip_vision/
    embeddings: embeddings/

Every ComfyUI install on the PC (portable, Desktop, a test copy) can point at the same folder, so you only download each model once. This also makes reinstalls painless: wipe ComfyUI, reinstall, add the YAML, done.

To move existing models, cut and paste the subfolders from ComfyUI/models/ into the new location, keeping the names. Moving within the same drive is instant. Moving across drives copies the data, so make sure you have the space first.

Every Valid Folder Key

The key on the left must be a folder type ComfyUI knows. These come from ComfyUI’s folder_paths.py and the example file:

Key Default folder Used for
checkpoints models/checkpoints Full checkpoints (SD 1.5, SDXL, all-in-one files)
diffusion_models models/diffusion_models, models/unet UNet/DiT-only files (Flux-style, Wan, Qwen-Image, GGUF via loaders)
text_encoders models/text_encoders, models/clip T5, CLIP, Qwen and other text encoders
vae models/vae VAE files
loras models/loras LoRA and LyCORIS
controlnet models/controlnet, models/t2i_adapter ControlNet and T2I adapters
upscale_models models/upscale_models ESRGAN-type upscalers
latent_upscale_models models/latent_upscale_models Latent upscale models
clip_vision models/clip_vision Image encoders (IPAdapter, Redux)
style_models models/style_models Style models
embeddings models/embeddings Textual inversions
hypernetworks models/hypernetworks Hypernetworks
gligen models/gligen GLIGEN
photomaker models/photomaker PhotoMaker
model_patches models/model_patches Model patches
audio_encoders models/audio_encoders Audio encoders for audio/video models
diffusers models/diffusers Diffusers-format folders
vae_approx models/vae_approx TAESD preview decoders
configs models/configs Legacy .yaml configs
custom_nodes custom_nodes Extra custom node folders

The older names unet and clip still work. ComfyUI maps them to diffusion_models and text_encoders.

Make a Folder the Default for Downloads

Add is_default: true to a block (as in the central example above). ComfyUI then puts those folders first in its search list. ComfyUI’s example file says these become the default folders, for example for downloads. Without it, your extra folders are added after ComfyUI’s own.

Custom Nodes and Custom Node Model Folders

Extra custom node folders

my_custom_nodes:
  custom_nodes: D:/AI/extra_custom_nodes

ComfyUI loads nodes from there as well as from its own custom_nodes folder. Python dependencies still need installing into ComfyUI’s environment. See how to install ComfyUI Manager for the easy way.

Folders that custom nodes add

Many custom node packs register their own model folder names through ComfyUI’s folder system (for example ipadapter or sams). ComfyUI accepts any key in the YAML. If a pack uses that key, your extra folder is searched too.

If a pack ignores ComfyUI’s folder system and uses a hard-coded path, the YAML won’t help, and you’ll need to check that pack’s README.

Load Extra Config Files With a Launch Flag

ComfyUI also has a launch argument for YAML files kept elsewhere:

python main.py --extra-model-paths-config D:/AI/shared_paths.yaml

It accepts one or more files and is loaded in addition to an extra_model_paths.yaml in the ComfyUI folder. On the portable build, add it to the end of the line in run_nvidia_gpu.bat. My ComfyUI command line arguments guide lists the other flags.

Check It Worked

  1. Restart ComfyUI completely. Saving the file isn’t enough.
  2. Watch the console at start-up. For every folder it adds, ComfyUI prints a line like:
    Adding extra search path checkpoints D:\stable-diffusion-webui\models\Stable-diffusion
  3. Open a Load Checkpoint or LoRA Loader node. Your shared models should appear in the dropdown.

No “Adding extra search path” lines at all means ComfyUI didn’t find or couldn’t read the file.

Troubleshooting

Nothing changed after editing

  • The file is still called .example or has a hidden .txt ending.
  • It’s in the wrong folder. On portable it goes in the inner ComfyUI folder, not ComfyUI_windows_portable.
  • You’re on Desktop and edited extra_model_paths.yaml instead of %APPDATA%\ComfyUI\extra_models_config.yaml.
  • ComfyUI wasn’t restarted.

ComfyUI crashes on start with a YAML error

Usually a tab character, inconsistent indentation, or a missing space after a colon (loras:models/Lora is wrong, and loras: models/Lora is right). Paste the file into an online YAML validator to find the line.

Some models show up, others don’t

Check that each file is under the right key. A Flux-style UNet in a checkpoints folder won’t appear in Load Diffusion Model, and a text encoder needs the text_encoders key.

Also check the file type: ComfyUI lists .safetensors, .ckpt, .pt, .pth, .bin and similar, while GGUF files need the GGUF loader nodes.

“Value not in list” when loading a workflow

The workflow references a model by a path or name that differs from yours, for example a subfolder. Re-select the model in each loader. See Prompt outputs failed validation fix.

Network drives and NAS folders

Mapped drive letters (like Z:/) work if they’re connected before ComfyUI starts. UNC paths (//nas/models/) usually work too, but loading large models over the network is much slower than from a local NVMe drive.

FAQ

Does extra_model_paths.yaml copy or move my models?

No. It only tells ComfyUI where else to look. Files stay where they are.

Can I use symlinks instead?

Yes. Directory junctions (mklink /J on Windows) or ln -s on Linux and macOS also work. The YAML is easier to manage and survives ComfyUI reinstalls more cleanly.

Do I need to restart ComfyUI after adding a new model file?

No. For a new file in a folder that’s already configured, press R or refresh the page. A restart is only needed after changing the YAML itself.

Can several ComfyUI installs share one YAML?

Each install reads its own file, but they can all point at the same models folder. Or keep one shared YAML and load it with --extra-model-paths-config.

Is the Desktop app’s Storage tab the same thing?

Both add model folders for the Desktop app. The Storage tab is the easier route. Editing extra_models_config.yaml by hand gives you full control, including extra keys and custom node folders.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a sunny cafe holding a tablet with a MODEL PATHS card, hook share models one folder all UIs