Nodes/ComfyUI-GlifNodes/Load Lora from URL
ComfyUI Node

Load Lora from URL

Paste a LoRA URL — Civitai, HuggingFace, or anywhere — and it just loads

By glifxyz·Created 3 years ago·Updated about a year ago· 65
Load Lora from URL
  • model
  • clip
  • MODEL
  • CLIP
url
strength_model1.00
strength_clip1.00

Load Lora from URL is the most useful node in this pack and the one nobody seems to know about. Instead of hunting for files in folders, you paste the direct URL of a LoRA - from HuggingFace, Civitai, or anywhere that serves a .safetensors file - and the node downloads it, caches it, and applies it to your model and CLIP on the spot. No browser, no unzip, no "where did that file go." It turns "here's a link to a LoRA" into a one-paste operation.

How it works

The node takes model and clip like any LoRA loader, a url string, and the usual strength_model / strength_clip floats. Behind the scenes it's smarter than a naive download, and it's worth knowing which URL forms it understands:

  • HuggingFace URLs - it cleans up common copy-paste accidents: strips the ?download=true query, rewrites /blob/ to /resolve/, then routes through HF's fast resumable downloader. Must end in .safetensors.
  • Civitai URLs - you can paste the model page URL with modelVersionId=... and it rewrites it to the proper API download endpoint, enforcing SafeTensor format. Most Civitai models need an API key: grab one from your Civitai account page and set it as the CIVITAI_API_KEY environment variable. Without it, the download fails for most gated content - that's Civitai's policy, not a bug.
  • Any other host - generic download, cached by an md5 of the URL, again safetensors-only.

Files land in ComfyUI/models/huggingface_cache/ (with a civitai/ subfolder), and the node caches the loaded weights on its own instance so repeated runs don't re-read from disk. Outputs: patched MODEL and CLIP.

The two things to know

Security first. Custom nodes execute arbitrary Python, and downloading weights from arbitrary URLs is a trust decision. The node's safetensors-only enforcement does remove the classic pickle-execution attack class, and this pack is from the glif team, but the URL is still on you - only load LoRAs from sources you trust. That's true of every LoRA you've ever downloaded; it's just more visible here.

It's grow-only in your graph, not your folder. The file gets cached but never appears in the stock LoraLoader dropdown. If you want the LoRA permanently, grab it from the cache and drop it into models/loras.

Install

Part of ComfyUI-GlifNodes. ComfyUI Manager → "ComfyUI-GlifNodes", or:

cd ComfyUI/custom_nodes
git clone https://github.com/glifxyz/ComfyUI-GlifNodes

Restart ComfyUI. No model downloads at install, and on Linux/macOS set the Civitai key with export CIVITAI_API_KEY=your_key before launching ComfyUI.

This is the node you reach for when a workflow's LoRA is a link, and it quietly becomes a habit.

Categoryloaders

Inputs (5)

NameTypeDefaultDescription
modelMODEL
clipCLIP
urlSTRING
strength_modelFLOAT1.00-20–20
strength_clipFLOAT1.00-20–20

Outputs (2)

NameTypeDescription
MODELMODEL
CLIPCLIP