ComfyUI Folder Paths 🦬
The three paths you keep typing, as one output node
- output_folder
- input_folder
- models_folder
There's a category of ComfyUI node that exists to stop you hardcoding paths. ComfyUI Folder Paths is one of those: drop it in, and it outputs the absolute paths to ComfyUI's output, input, and models folders. That's the entire feature, and it's surprisingly useful once you've got a workflow that references folders a dozen times.
It's part of Sokes Nodes 🦬, and it plays nicely with the pack's other file-path nodes - Get Files in Folder with Extension, Load Random Image, Save File Path and Name. Think of it as the plumbing node the rest of them connect to.
How it works
Zero inputs. It reads the paths directly from ComfyUI's own folder_paths module, the same source the core loaders use, and returns three absolute strings:
- output_folder - where ComfyUI saves results (e.g.
.../ComfyUI/output) - input_folder - where it expects uploads (
.../ComfyUI/input) - models_folder - the models root (
.../ComfyUI/models)
It resolves them to absolute paths, so you don't get surprise relative-path bugs when you're wiring strings into save or file-listing nodes.
Install
Standard Sokes Nodes 🦬 install:
cd ComfyUI/custom_nodes
git clone https://github.com/m-sokes/ComfyUI-Sokes-Nodes.git
pip install -r requirements.txt
or via ComfyUI Manager → search "ComfyUI Sokes Nodes" → Install, then restart.
When it saves you
The realistic use case is folder-aware workflows you want to share or move between machines. Instead of a hardcoded C:/Users/you/ComfyUI/models/loras, your graph pulls the models path from this node and appends a subfolder. Copy the workflow to another machine and it just works, because the paths resolve themselves.
Where people get tripped up: it's an output node with no inputs, and it's static - the node reports a fixed change hash, so ComfyUI computes it once and caches. That's fine, because your ComfyUI folders don't move while the app is running. It updates the next time you restart. If you changed your ComfyUI directory mid-session and the value looks stale, that's why.
It's not a node you'll think about often - which is exactly the point. It quietly kills an entire class of "why is it looking in the wrong folder" bugs before they start.
Inputs (0)
No inputs
Outputs (3)
| Name | Type | Description |
|---|---|---|
| output_folder | STRING | — |
| input_folder | STRING | — |
| models_folder | STRING | — |