Nodes/Multiple LoRA Loader for ComfyUI/LoRA Loader (by Name Index)
ComfyUI Node

LoRA Loader (by Name Index)

Your Curated LoRA Shelf, Numbered

By hubentu·Created about a year ago·Updated 12 months ago· 2
LoRA Loader (by Name Index)
  • model
  • clip
  • MODEL
  • CLIP
index0
LoRAnamesLoRAname1.safetensors LoRAname2.safetensors LoRAname3.safetensors
strength_model1.00
strength_clip1.00

The pack's other loader, "LoRA Loader (by Index)", numbers your entire loras folder alphabetically. Fine when you want every file on a dial. But sometimes you don't want all forty - you want your five favorite character LoRAs, in the order you care about, on a single numbered control. That's what "LoRA Loader (by Name Index)" is for: you type the filenames you actually use, one per line, and the index picks among those.

It's the same mental model as the by-index loader - type a number, get a LoRA, bump the number, get the next one - except the list is yours, not your filesystem's idea of alphabetical order. That makes it the nicer tool for the "swap character per render" workflow, and it composes with the pack's trigger-word node: same index on both, both lists in the same order, one integer switches character plus trigger in lockstep.

How it works

At execution it splits your LoRAnames text into lines, strips whitespace, and drops empties. index selects the filename, which is then resolved against your loras folders and loaded through ComfyUI's own built-in LoraLoader - the same code the stock Load LoRA node uses. No custom loading math, no extra packages. One quirk in the source: the author left a few [DEBUG] print statements in, so the console gets chatty during a load. Harmless noise.

Two behaviors inherited from the trigger node's design: index of −1 passes your model through unchanged (a clean bypass), and an out-of-range index snaps back to 0 with a console message. A filename that doesn't match anything in your loras folders also passes the model through untouched - which brings us to the trap.

The inputs

  • LoRAnames - multiline text, exact filenames including the .safetensors (or .ckpt) extension, one per line. This is your whole curated list.
  • index - which line to load.
  • model - the base MODEL.
  • strength_model / strength_clip - default 1.0, range −10 to 10.
  • clip (optional) - leave unwired and the CLIP output passes through.

Outputs: MODEL to your sampler, CLIP to your text encoder.

The trap: exact filenames or silence

Everything here is string matching. A stray space, a lowercase extension, mysubdir/name.safetensors where your file actually lives flat in the loras folder - any mismatch and the node quietly hands back your unmodified model with a line in the console. Copy filenames from your loras folder rather than typing them from memory. Filename must also match what's physically in the folder; the node doesn't do fuzzy lookup.

Installing it

Via ComfyUI Manager (search "loras-loader" or "Multiple LoRA Loader"), or:

cd ComfyUI/custom_nodes
git clone https://github.com/hubentu/ComfyUI-loras-loader

Restart ComfyUI. No requirements.txt, no model downloads. One heads-up: this node isn't in the pack's README - the README only documents three of the pack's seven nodes - so don't be surprised when the repo doesn't mention it. It's in the code, it ships, and now you know what it does.

Categoryloaders

Inputs (6)

NameTypeDefaultDescription
indexINT00–99
LoRAnamesSTRINGLoRAname1.safetensors LoRAname2.safetensors LoRAname3.safetensors
modelMODEL
strength_modelFLOAT1.00-10–10
strength_clipFLOAT1.00-10–10
clipoptCLIP

Outputs (2)

NameTypeDescription
MODELMODEL
CLIPCLIP