Nodes/ComfyUI_agilly1989_motorway/CLIPSave_motorway_edition
ComfyUI Node

CLIPSave_motorway_edition

Making your merged text encoder a file

By agilly1989·Created 2 years ago·Updated about a year ago· 7
CLIPSave_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
INPUT_clip_keyclip
filename_prefixclip/ComfyUI

A merged CLIP exists in your graph and nowhere else - until you save it. CLIPSave is the core ComfyUI node that writes a text encoder to your models/clip folder as a .safetensors, and this is its Motorway-ed clone: you point it at the Motorway key holding the CLIP, give it a filename prefix, and the node does the rest. The only thing that comes back out is the Motorway, because the node's real output is a file on disk.

This is the natural end-of-line companion to the CLIP merge nodes. CLIPMergeSimple gives you a blend you like, and CLIPSave makes it persistent so tomorrow's workflow can load it straight from CLIPLoader instead of re-running the merge. If you never merge CLIPs, you'll never need this - but if you do, it's the difference between a reproducible artifact and a blend that evaporates when ComfyUI closes.

How it works

The wrapper pulls one thing out of the Motorway and writes it to disk:

  • INPUT_clip_key - key for the CLIP to save (default clip)
  • filename_prefix - save location, default clip/ComfyUI, which in ComfyUI convention means models/clip/ComfyUI.safetensors. Any folder you add becomes a subdirectory under models/clip.

The node instantiates the real core CLIPSave, runs it with the CLIP pulled from that key, and returns the Motorway. Note the default key is clip (lowercase) - if your merge node wrote its result under the pack's CLIP convention, change the field to match, because a key that was never written throws the signature 'MotorwayClass' object has no attribute 'hash_' error. This pack is case-sensitive; it will not save you from yourself.

One warning that has nothing to do with the Motorway: a CLIP you save is only useful if you can load it back into the same architecture, and it's only legal to share if the weights it was merged from permit it. CLIP merges inherit their parents' licenses just like checkpoint merges do. Check before you distribute.

Motorway specifics

MOTORWAY 🚌💨 is required (the original has connection inputs, so the generator made it so). Your chain starts at a MotorwayStart or primitive starter, and the save is a natural terminal step - nothing needs to come after it.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

Restart, or search "ComfyUI_agilly1989_motorway" in ComfyUI Manager. No pip dependencies, no model downloads.

Fine print

This is an explicitly-beta pack - the README opens with "BIG BROKEN WITH ASYNC WILL FIX WHEN I GET THE TIME/MOTIVATION" - and the current hotfix release has the _motorway_edition clone generation commented out of __init__.py, so on the newest main these nodes may not load at all. Save-style nodes are also exactly the "output node" category the README warns are the least reliable members of the generated family, so test on a throwaway CLIP before you trust it with a merge you care about. GitHub issues are the channel; the author has stated his Discord DMs get ignored.

Categoryagilly1989 Nodes/Motorway-ed/advanced/model_merging

Inputs (3)

NameTypeDefaultDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨
INPUT_clip_keySTRINGclip
filename_prefixSTRINGclip/ComfyUI

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨