ComfyUI-USCG-CivitAI
Optional companion to ComfyUI-Ultimate-Auto-Sampler-Config-Grid-Testing-Suite. Looks up model and LoRA metadata (including trigger words) from the CivitAI API.
ComfyUI-USCG-CivitAI
Optional companion plugin for ComfyUI-Ultimate-Auto-Sampler-Config-Grid-Testing-Suite (USCG).
Looks up model and LoRA metadata (trigger words, model IDs, version info) from the CivitAI API. Enables auto-trigger-word detection when you add a LoRA file to a grid, and the "Lookup Metadata from CivitAI" buttons in the Builder UI.
Install
Via Comfy Manager (recommended):
- Open Comfy Manager -> Custom Node Manager.
- Search for "USCG CivitAI".
- Click Install. Restart ComfyUI.
Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/JasonHoku/ComfyUI-USCG-CivitAI
Restart ComfyUI.
What this enables
After installing, several USCG Builder UI features become active:
- Auto-populate trigger words when you add a LoRA file (computes SHA256 hash, looks up CivitAI)
- "Lookup Model Metadata from CivitAI" button (in the Model "more options" section)
- "Lookup LoRA Metadata from CivitAI" button (in the LoRA "more options" section)
Without this companion, main USCG still works fine - you just type trigger words manually and don't see the metadata lookup buttons.
Why this is a separate plugin
The CivitAI lookup uses urllib.request.urlopen() with a URL containing a
file hash parameter. Comfy-Org's yara scanner flags this as
python_network_operations (info severity) and triggers manual review of
every USCG release. Isolating this lookup in its own plugin clears main USCG
to fully clean scanner status.
Network surface
This plugin makes a single outbound HTTPS GET request per lookup to:
https://civitai.com/api/v1/model-versions/by-hash/{file_hash}
That's it. No POST, no upload, no auth tokens. Just GET hash -> JSON metadata.
All network code lives in usrv_civitai_network.py.
License
MIT - see LICENSE.