/install openclaw-comfyui
ComfyUI-OpenClaw Skill 🎨✨
A professional, token-saving agent skill for connecting and controlling ComfyUI via API. Designed for high efficiency, automatic asset handling, and seamless integration with OpenClaw.
🏗️ Skill Structure
- Host Address:
192.168.1.38:8190(Configured inTOOLS.md) - Workflow Directory:
skills/comfyui/workflows/(Self-contained within the skill folder) - Output Directory:
outputs/comfy/(Relative to workspace root) - Core Script:
skills/comfyui/comfy_client.py(Handles prompt injection, image uploads, and result polling)
🛠️ Tools (CLI)
Invoke via the exec command:
python3 skills/comfyui/comfy_client.py \x3Ctemplate_id> "\x3Cprompt>" [input_image_path/orientation] [orientation]
Parameters:
- template_id:
gen_z: Text-to-Image (usesimage_z_image_turbo.json)qwen_edit: Image-to-Image / Editing (usesqwen_image_edit_2511.json) - Supports automatic image upload.
- prompt: The description of the image to generate or edits to perform.
- input_image_path: (Optional) Local path for image-to-image tasks.
- orientation: (Optional) Set to
portrait(720x1280) orlandscape(1280x720). Defaults toportrait.
💡 How to Add New Workflows
You can expand this skill easily:
- Place your new API-formatted JSON workflow in
skills/comfyui/workflows/. - Update the
WORKFLOW_MAPdictionary inskills/comfyui/comfy_client.pywith a new ID and the file path. - (Optional) If the workflow uses unique node types, adjust the injection logic in the script's
main()function.
🚀 Token-Saving Strategy
- Template Mapping: Never send full workflow JSONs in the chat. Refer to them by
template_id. - Vision-Saving Strategy: To minimize token usage, the agent should prioritize using the file path from metadata instead of analyzing image content via vision capabilities unless explicitly asked to describe or analyze the image.
- Direct Delivery: Deliver images directly to users via messaging plugins (e.g., Telegram) or local file openers (
open) to avoid bloating the LLM's context window with base64 data.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-comfyui - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-comfyui触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
OpenClaw ComfyUI 是什么?
Connect and control ComfyUI API efficiently using template mapping and auto-asset management for image generation and editing tasks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2452 次。
如何安装 OpenClaw ComfyUI?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-comfyui」即可一键安装,无需额外配置。
OpenClaw ComfyUI 是免费的吗?
是的,OpenClaw ComfyUI 完全免费(开源免费),可自由下载、安装和使用。
OpenClaw ComfyUI 支持哪些平台?
OpenClaw ComfyUI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw ComfyUI?
由 SalmonRK(@salmonrk)开发并维护,当前版本 v1.0.4。