Install
openclaw skills install @nl108/comfyui-generatorGenerate AI images and perform style transfers via ComfyUI with batch processing and automated workflow management through OpenClaw integration.
openclaw skills install @nl108/comfyui-generatorIntegration between OpenClaw and ComfyUI for AI media generation.
C:\ComfyUIhttp://127.0.0.1:8188# Set environment variables
export COMFY_API_KEY="local_comfyui"
export COMFY_BASE_URL="http://127.0.0.1:8188"
# Copy workflow files
cp -r workflows/*.json "C:\ComfyUI\input\workflows\"
openclaw comfy generate --prompt "a beautiful landscape" --style cyberpunk
openclaw comfy style --image "path/to/image.jpg" --style "van gogh"
openclaw comfy batch --input prompts.txt --output output_dir --iterations 5
COMFY_API_KEY="local_comfyui"
COMFY_BASE_URL="http://127.0.0.1:8188"
COMFY_OUTPUT_DIR="C:\ComfyUI\output"
Place workflow JSON files in:
C:\ComfyUI\input\workflows\
from comfy_client import ComfyUIClient
client = ComfyUIClient()
result = client.generate_image(
prompt="a futuristic city at night",
workflow="image_generation.json"
)
result = client.style_transfer(
image_path="input.jpg",
style="cyberpunk",
workflow="style_transfer.json"
)
# Check if ComfyUI is running
curl http://127.0.0.1:8188
# Start ComfyUI
python "C:\ComfyUI\main.py" --listen 127.0.0.1 --port 8188
C:\ComfyUI\logs\scripts/comfy_client.py - API clientscripts/prompt_generator.py - Prompt optimizationscripts/file_monitor.py - Output monitoringworkflows/image_generation.json - Basic image generationworkflows/style_transfer.json - Style transferworkflows/upscale.json - Image upscalingconfig/settings.yaml - Skill configurationconfig/prompt_templates.json - Prompt templatesMIT License
For issues and questions, please check:
C:\Users\LEI\.openclaw\logs\