Design & media

Openclaw Comfyui Api Runner

Try it

Safe ComfyUI image generation. Use saved or ad-hoc server profiles, paste/upload raw workflow JSON, submit, poll, and serve downloaded outputs locally.

What it does

What it does Connects to a remembered server profile or ad-hoc connection settings Accepts a workflow as a pasted JSON string, uploaded file, stdin, or built-in template Submits the workflow to ComfyUI Polls until done and downloads **all** output images Saves images under Returns downloaded file…

The skill document

ComfyUI Safe Connector

Small safe runner for ComfyUI.

What it does

  • Connects to a remembered server profile or ad-hoc connection settings
  • Accepts a workflow as a pasted JSON string, uploaded file, stdin, or built-in template
  • Submits the workflow to ComfyUI
  • Polls until done and downloads all output images
  • Saves images under generated/
  • Returns downloaded file paths and browser view URLs for each output

Workflow keywords

Saved workflows can include keywords in their .meta.json. Use the keyword, not the prompt, to pick the right template.

Examples:

  • IL-Ikastriousanime, cartoon, illustration, ikastrious
  • use for anime/cartoon image requests

Main command

Run from the skill root:

./comfy.sh --health
./comfy.sh --list-profiles
./comfy.sh --save-profile home --base-url http://127.0.0.1 --port 8188
./comfy.sh --gen --workflow-file /path/to/workflow.json
./comfy.sh --gen --workflow-stdin < workflow.json
./comfy.sh --gen --workflow-json '{...json...}'
./comfy.sh --poll 
./comfy.sh --watch 

comfy.sh is the supported entrypoint (instead of calling the Python runner directly).

Server profiles

Profiles live in:

~/.config/openclaw/comfyui-runner.json

Supported fields:

  • servers (list of server entries)
  • base_url
  • port
  • api_key
  • username
  • password
  • default_server
  • default_workflow

Use:

  • --profile NAME to use one for this run
  • --save-profile NAME to remember the current connection
  • --set-profile NAME to make a saved profile active
  • --set-default-server NAME to set the default server
  • --set-default-workflow NAME to set the default workflow
  • --delete-profile NAME to remove one

Env vars override saved profiles:

  • COMFYUI_PROFILE
  • COMFYUI_BASE_URL
  • COMFYUI_PORT
  • COMFYUI_API_KEY
  • COMFYUI_USERNAME
  • COMFYUI_PASSWORD

Workflow input

Preferred for this skill:

  • --workflow-file for uploaded JSON files
  • --workflow-stdin for pasted JSON
  • --workflow-json for direct JSON strings

Built-in templates still work via the positional template id, but raw JSON is the default safe path. If a keyword matches exactly one saved workflow, you can pass the keyword instead of the template id.

Output

  • poll / watch write downloaded files to generated/
  • return JSON includes view_url, local_path, and outputs[]
  • image files can be sent directly into Discord or another channel if you want delivery there
  • server profiles are remembered in ~/.config/openclaw/comfyui-runner.json

Safety

  • No shell interpolation of workflow contents
  • JSON is parsed, not executed
  • API key support is optional
  • Use only trusted ComfyUI servers

Related skills

Query Twitter/X profiles, tweets, follower events, and KOL data through the 6551 REST API.

by infra403840 installs27 stars

Post videos, photos, text, and documents to 10 social platforms through a single REST API call.

by victorcavero14375 installs50 stars

Read and write Excel workbooks, worksheets, ranges, tables, and charts in OneDrive through Microsoft Graph with managed OAuth.

by byungkyu800 installs42 stars

Trade crypto, manage a multi-chain wallet, and query an AI analyst from one CLI.

by lowesyang162 installs109 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants

More from genortg

Browse all skills

Unified orchestration: plugin-driven model routing, session hooks, project context automation, sidecar dashboard

by genortg7 installs

Comprehensive multi-modal gateway for ComfyUI enabling audio generation with ACE-Step 1.5 and photorealistic image creation via SDXL workflows.

by genortg14 installs

Complete project orchestration: model routing, coding workflow, scripts, session logging, decision tracking, price checks

by genortg6 installs

Full design grilling session. I interview you relentlessly about every aspect of your plan until we reach shared understanding. At the end, I generate CONTEX...

by genortg11 installs

Send push notifications via ntfy.sh or self-hosted ntfy server. Supports priorities, titles, tags, icons, and attachments.

by genortg16 installs

Tell the agent to zoom out and give broader context or a higher-level perspective on a section of code. Use when you're unfamiliar with a code area or need t...

by genortg12 installs