Flow - Model Manager
Let CivitAI sort your model folders for you
FlowModelManager is the housekeeping node for ComfyUI-Flow-Control - the one that builds the preset database the checkpoint and LoRA loaders depend on. It's not a per-generation node at all. It has no outputs. What it does is one job, on demand: hash every checkpoint or LoRA you own, ask CivitAI what each one is, and then physically reorganize your model folder by base model (Pony, SDXL, SD15, Flux) while writing the preset entries that make the Flow loaders "remember" each model.
Reach for it once, when you first install the pack, to populate db/checkpoints.json and db/loras.json. Everything else in the pack gets smarter as a result.
How it works
The node has two dropdowns - type (Checkpoints or Loras) and fetch_model (All or New) - plus an Auto Arrange button that the frontend adds to the node body. Click it and the pack's server endpoint walks every file in the folder:
- It computes the file's SHA-256 hash.
- It calls CivitAI's by-hash API (
civitai.com/api/v1/model-versions/by-hash/<hash>) to identify the model and its base. - If it gets a base, it moves the file into a subfolder named for that base (
Pony/,SDXL/,SD15/,Flux/...). - For checkpoints it writes a preset with default steps/cfg/clip_skip/sampler/scheduler; for LoRAs it records base, triggers (trained words) and the model's CivitAI URL.
That's why the FlowCheckpointPresetLoader can auto-fill sampling settings per checkpoint and the LoRA loaders can auto-fill trigger words - this node wrote those entries. fetch_model = New skips files already in the db; All re-fetches everything. Files CivitAI can't identify are left alone and logged as "No information."
The inputs that matter
type- Checkpoints or Loras. Run it twice, once per type.fetch_model-Newfor routine maintenance,Allif your db is stale or corrupt.
That's the entire node. No outputs - it's a side-effect node. Press the button, watch the console, done.
Install
Part of ComfyUI-Flow-Control:
cd ComfyUI/custom_nodes
git clone https://github.com/krich-cto/ComfyUI-Flow-Control
pip install requests # required for the CivitAI lookups
Restart ComfyUI, or Manager → "ComfyUI-Flow-Control". Note the pack also imports gguf at startup.
Gotchas
The big one: it moves your files. The Auto Arrange button physically renames your checkpoints and LoRAs into base-model subfolders. That's usually the point, but if you have custom folder structure, or you're not ready to reorganize, skip this node - you don't need it to use the loaders, it just makes them smarter. Also: every lookup needs a matching CivitAI entry, so niche or private models won't get filed (and private models won't resolve by hash at all). The CivitAI API is rate-limited and can time out on big folders - the code prints "Timeout" and skips. And since it deletes and rewrites the db JSON, run it when ComfyUI isn't mid-workflow.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| type | COMBO | Checkpoints | 2 options: Checkpoints, Loras |
| fetch_model | COMBO | New | 2 options: All, New |
Outputs (0)
No outputs