E · 06 · Hermes backend plugin
comfyui-local
Your own GPU as a first-class Hermes image and video backend. No account, no API key, no per-image cost, and prompts that never leave your network.
- Kind
- Hermes backend plugin
- Registers
- ImageGen · VideoGen · mesh + rig tools
- Families
- SDXL · Flux · Wan 2.2 · Trellis 2 · UniRig
- Outputs
- Image · video · 3D mesh · rigged mesh
- Tests
- 127, adversarial
- Licence
- MIT
- Status
- Submission · private until 11 Nov
01The gap
Hermes resolves media generation through two provider interfaces. Every implementation it ships — seven image backends, four video backends — is a cloud API. You hold an account, you hold an API key, you pay per image, and the prompt leaves the machine. The 861-entry plugin marketplace contains no local generation backend either.
Registering an implementation against those interfaces is the only way to make the built-in image_generate and video_generate tools point somewhere else. A skill can curl a ComfyUI endpoint, but it cannot move the tool itself. That is what a plugin does.
02What it does
Point it at a ComfyUI server and generation renders on hardware you own. Text to image across the SDXL and Flux families; text to video and image to video on Wan 2.2; and image to 3D — Trellis 2 reconstructs a textured .glb mesh from a single photograph; and UniRig adds a skeleton and skinning weights, so a scanned figure becomes something you can animate. Give it several servers and each job lands on the one with the most free VRAM and the shortest queue.
No model name is hardcoded. Every generation reads the server's own catalogue first, because a hardcoded list is wrong on every machine but the author's — and a name the server never published comes back as an opaque validation failure rather than an explanation.
03Why the security posture is the interesting part
This plugin sits between an agent and a network service, and it writes files. Both boundaries are treated as hostile.
Endpoints are validated before any request: scheme allowlist, no embedded credentials, and cloud metadata addresses refused outright — the specific addresses that serve credentials to whoever asks, which is exactly what a mistyped endpoint becomes. Path components returned by the server are validated against traversal with Unicode normalisation applied first, and containment is proven with realpath on both sides rather than a string prefix.
Rigging is the first path that accepts a file the plugin did not create, so the mesh is sniffed for a header before it is stored and the extension takes whatever the bytes earned — a GLB renamed to .obj reaches the GLB reader. Nothing here parses the format, so accepting a headerless .fbx grants no execution.
The 3D path adds a boundary the others do not have: the server also publishes cloud partner nodes — Tripo, Meshy, Rodin, Tencent — which would send a reference image to a third party. They are never selected. Model selection is pinned to the local Trellis family, because a catalogue that serves Wan, Flux, Trellis and Pixal3D side by side will otherwise hand a video model to a mesh graph.
Every artifact comes back as a file in the chat, not a path. Each result carries a MEDIA: tag that Hermes delivers to whichever channel the turn is on — Telegram, Discord, the CLI. That only works for paths the gateway trusts, so artifacts are written under the Hermes cache and never beside your source files.
Model downloads are the sharp edge. Loading a model can execute code: ComfyUI's .ckpt and .pkl formats are Python pickles, and unpickling runs arbitrary code as the user who owns the server. Detecting malice inside a pickle is not decidably possible, so the format class is refused instead — .safetensors only, no override flag, because an override flag would be used. Downloads also require a full SHA-256 and prove the file really is safetensors before it reaches a load path.
04Verification
127 tests, written as attacks rather than happy paths: SSRF payloads, traversal tokens, Unicode lookalikes, symlink escapes, prefix-sibling escapes, a pickle renamed to .safetensors. Every case is something a hostile or merely buggy server could return.
The end-to-end path was exercised against real hardware, not mocked. The first render through the provider interface returned a file the plugin then rejected, because the server reports an empty subfolder for files at the output root and the validator read it as a traversal token. The fix came with a regression test, and the test was confirmed to fail before the fix and pass after it.
Repository private until submission closes, 11 November