comfy plugin for workflow-driven ComfyUI runs. The
plugin is entirely workflow-driven: OpenClaw does not map generic size,
aspectRatio, resolution, durationSeconds, or TTS-style controls onto
your graph.
What it supports
- Image generation and editing from a workflow JSON (edit takes 1 uploaded reference image)
- Video generation from a workflow JSON, text-to-video or image-to-video (1 reference image)
- Music/audio generation through the shared
music_generatetool, with an optional 1 reference image - Output download from a configured node, or from all matching output nodes when none is configured
Getting started
Choose between running ComfyUI on your own machine or using Comfy Cloud.- Local
- Comfy Cloud
Best for: running your own ComfyUI instance on your machine or LAN.
1
Start ComfyUI locally
Make sure your local ComfyUI instance is running (defaults to
http://127.0.0.1:8188).2
Prepare your workflow JSON
Export or create a ComfyUI workflow JSON file. Note the node IDs for the prompt input node and the output node you want OpenClaw to read from.
3
Configure the provider
Set
mode: "local" and point at your workflow file. Minimal image example:4
Set the default model
Point OpenClaw at the
comfy/workflow model for the capability you configured:5
Verify
Configuration
Comfy supports shared top-level connection settings plus per-capability workflow sections (image, video, music):
Shared keys
In
local mode, loopback/private IP literals and single-label service names such as http://comfyui:8188 work without allowPrivateNetwork. Public-looking private-DNS FQDNs such as https://comfy.local.example.com require allowPrivateNetwork: true. Private-origin trust stays scoped to the configured scheme, hostname, and port; local redirects cannot leave the configured hostname, while cloud redirects to public CDNs are checked with the default SSRF policy.Per-capability keys
These keys apply inside theimage, video, or music sections:
The
image and video sections also support a reference-image input node:
apiKey accepts either a literal string or a secret reference object.
Workflow details
Image workflows
Image workflows
Set the default image model to Reference-image editing example:To enable image editing with an uploaded reference image, add
comfy/workflow:inputImageNodeId to your image config:Video workflows
Video workflows
Set the default video model to Comfy video workflows support text-to-video and image-to-video through the configured graph.
comfy/workflow:OpenClaw does not pass input videos into Comfy workflows. Only text prompts and single reference images are supported as inputs.
Music workflows
Music workflows
The bundled plugin registers a music-generation provider for workflow-defined audio or music outputs, surfaced through the shared Use the
music_generate tool. It accepts an optional reference image (up to 1):music config section to point at your audio workflow JSON and output node.Backward compatibility
Backward compatibility
Existing top-level image config (without the nested OpenClaw treats that legacy shape as the image workflow config. You do not need to migrate immediately, but the nested
image section) still works:image / video / music sections are recommended for new setups. If you only use image generation, the legacy flat config and the new nested image section are functionally equivalent.Live tests
Live tests
Opt-in live coverage exists for the bundled plugin:The live test skips individual image, video, or music cases unless the matching Comfy workflow section is configured.
Related
Image Generation
Image generation tool configuration and usage.
Video Generation
Video generation tool configuration and usage.
Music Generation
Music and audio generation tool setup.
Provider Directory
Overview of all providers and model refs.
Configuration reference
Full config reference including agent defaults.