How to set a custom models folder location in three simple steps.

1. Rename the extra_model_paths.yaml.example file
Inside of your ComfyUI_windows_portable/ComfyUI folder is a file called extra_model_paths.yaml.example.
Rename the file from extra_model_paths.yaml.example to extra_model_paths.yaml, that means removing the ".example" at the end.
This enables the file.

2. Edit the text inside of the file and remove the first Hashtag in each line
Edit the file itself by opening it with any text editor.
Now you have to remove all the first hashtags (#) that are in front of "comfyui:" and the path directories below to enable them.
Keep the file open for the third and last step.
Only delete the very first hashtag and do not delete any of the spacing and empty space or the file will break.

3. Setting your basepath folder
Edit the basepath to whatever place you want, here is a correct pathing example so you don't get confused:

base_path: C:\ARandomFolder\ComfyUI_windows_portable\ComfyUI\

This is what it should look like if your "models" folder is in "ComfyUI"

this can be anywhere you like, but to make the least amount of changes it is important that whatever folder you use, that inside of it is a folder called "models" with the correct subdirectories.
The easiest way to do this is simply copy the base "models" folder from a fresh install into your desired folder.
For example:

base_path: C:\FunnyRandomFolder\Another folder\YourDesiredFolder\

and then the "models" folder from a fresh comfyui install would be in "YourDesiredFolder"
Don't forget to change the drive letter should you use a different drive like D:\ or E:\ and the correct "\" not "/"

Congratulations! You've successfully set an extra models folder location elsewhere
Now simply save the extra_model_paths.yaml file somewhere else for safekeeping and whenever you use a new portable install just drop the file into the comfyui folder and it will immediately know where all your model files are on the next restart.
You can add new subdirectories by adding them in the exact same style to the file, the easiest way is to literally copy for example:
vae: models/vae/ (with the correct spacing of course)
then rename it to:
bae: models/bae/
and paste it below the last line Now your models\bae folder would be recognized and activated.

Common errors:
It will only throw errors and not work when it tries to load a folder that doesn't exist or if your spacing is broken.
So if for example you have "vae: models/vae/" enabled but you have neither a "models" folder inside of "YourDesiredFolder" or a "Vae" folder inside of the "models" folder, it will throw an error message.
If unsure just drop the error message that comfyui will give you into any LLM and it will tell you what the issue is.

Edit

Pub: 28 Oct 2026 06:47 UTC

Edit: 28 Oct 2026 07:42 UTC

Views: 68