Install
openclaw skills install @hypnotronic3/comfyui-localGenerate images using a local ComfyUI instance with hardcoded server address and allowlisted workflows. Secure by design — no arbitrary file reads, no arbitrary server connections, no shell injection. Requires a running ComfyUI server on the local network.
openclaw skills install @hypnotronic3/comfyui-localGenerate images using your local ComfyUI instance. Designed with security as a priority:
workflows/ directory can be used../ and absolute paths are rejectedCOMFYUI_SERVER_ADDRESS environment variable (e.g., http://192.168.1.10:8188 or http://127.0.0.1:8188).python3 {skillDir}/scripts/comfy_gen.py --prompt "a serene mountain lake at sunset"
python3 {skillDir}/scripts/comfy_gen.py --prompt "a cyberpunk cityscape" --workflow z-image-turbo
python3 {skillDir}/scripts/comfy_gen.py --prompt "a cat in a spacesuit" --width 768 --height 512
python3 {skillDir}/scripts/comfy_gen.py --prompt "a portrait photo" --negative "blurry, distorted, low quality"
Place API-format workflow JSON files in the workflows/ directory. They are automatically available by filename (without .json extension).
The included workflows:
| Workflow | Description |
|---|---|
z-image-turbo | Fast generation, 10 steps, Euler sampler |
z-image-biglove | Higher quality, more steps |
This skill fixes the three vulnerabilities found in other ComfyUI skills:
The original skill accepted --workflow /any/path/on/disk.json, allowing an agent to read any JSON file on the system. This version only allows workflows from the workflows/ directory within the skill folder. Paths with .., /, or \ are rejected.
The original skill accepted the server address as a command-line argument, allowing connections to any server. This version reads COMFYUI_SERVER_ADDRESS from the environment only. No command-line override.
The original skill constructed shell commands with user-provided arguments. This version uses argparse and passes all data as structured JSON over HTTP — no shell interpolation.
COMFYUI_SERVER_ADDRESS from environment (required)workflows/{skillDir}/output/ and prints a MEDIA: path