/comfyui:comfyui-localfrom ComfyUI
Generate images on a local or LAN ComfyUI with a bundled, dependency-free Python script and API-format workflow files. Use when the user wants private image generation on their own hardware from a shell or script, wants to run a saved API-format workflow file, or when the comfyui MCP server is unavailable. Requires a reachable ComfyUI server.
Ships in ComfyUI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate images by talking to ComfyUI's HTTP API directly from a small Python helper
(standard library only). If the plugin's comfyui MCP tools are available, prefer the
oc-comfy-ui skill; use this one for shell/script workflows or as a fallback.
Server address — the plugin's ComfyUI URL is ${user_config.comfyui_url}. The script also
reads COMFYUI_SERVER_ADDRESS and falls back to http://127.0.0.1:8188. For a LAN box use its
IP and port, e.g. http://192.168.1.50:8188.
Check it is up — curl -s -m 3 ${user_config.comfyui_url}/system_stats.
Check the models are installed — the bundled workflows need:
| Workflow | Models | Notes |
|---|---|---|
workflows/zimage_turbo_api.json (default) | diffusion_models/z_image_turbo_bf16.safetensors, text_encoders/qwen_3_4b.safetensors, vae/ae.safetensors | 8 steps, cfg 1 — fast; bf16 so it also runs on Apple Silicon (MPS) |
workflows/sdxl_basic_api.json | checkpoints/sd_xl_base_1.0.safetensors (or any SDXL checkpoint via --checkpoint) | 25 steps, cfg 7 |
Before queueing, the script checks every loader (checkpoint, UNet, text encoder, VAE, LoRA) against the server's installed files and prints the valid choices if one is missing.
Apple Silicon: fp8 weights (
*_fp8*.safetensors) fail on MPS withUndefined type Float8_e4m3fn. Use bf16/fp16 models there.
# default: Z-Image Turbo
python3 ${CLAUDE_PLUGIN_ROOT}/skills/comfyui-local/scripts/comfy_gen.py \
"your image prompt" ${user_config.comfyui_url}
# SDXL with a chosen checkpoint
python3 ${CLAUDE_PLUGIN_ROOT}/skills/comfyui-local/scripts/comfy_gen.py \
"your image prompt" ${user_config.comfyui_url} \
--workflow ${CLAUDE_PLUGIN_ROOT}/skills/comfyui-local/workflows/sdxl_basic_api.json \
--checkpoint <installed.safetensors>
--checkpoint only applies to workflows with a CheckpointLoaderSimple node; with the Z-Image
default it is rejected rather than silently ignored.
Options: --width/--height (default 1024), --seed, --out <dir> (default ./image-gens),
--timeout <s> (default 600). It prints one MEDIA:<path> line per saved image; show or report
those paths to the user. Errors from ComfyUI (node_errors, execution errors) are printed in full
— read them before retrying.
Export the workflow from ComfyUI in API format (Workflow → Export (API); older frontends: enable Dev mode, then Save (API Format)) and pass it:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/comfyui-local/scripts/comfy_gen.py \
"your prompt" ${user_config.comfyui_url} --workflow /path/to/my_workflow_api.json
The script:
positive input
(falls back to the first CLIPTextEncode),--seed) value on every literal seed / noise_seed input,--width/--height to EmptyLatentImage / EmptySD3LatentImage, and --checkpoint
to CheckpointLoaderSimple,nodes + links).Keep reusable workflows in a project folder of the user's choosing, or in
${CLAUDE_PLUGIN_ROOT}/skills/comfyui-local/workflows/ (note: that folder is replaced when the
plugin updates).
/view endpoint, so it works with remote servers too.SaveImage outputs (type: output) are downloaded; preview-only graphs produce nothing.--out.comfyui-troubleshoot skill.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/comfyui-expertComfyUI graph design, custom nodes, workflow JSON, queue, API integration. Use when working with multimodal AI (images, audio, video) using ComfyUI — designing or editing node graphs, converting UI vs API workflow JSON, writing custom nodes in Python/JS, or driving ComfyUI from code./comfyui-troubleshootDiagnose ComfyUI connection failures, invalid workflows, unknown node classes, missing required inputs, missing models, queue and history problems, generation errors, VRAM pressure, remote-target confusion, and dependency issues without random installs or broad destructive changes./oc-comfy-uiGenerate images (and short videos or audio) with the user's local ComfyUI through the plugin's `comfyui` MCP server. Use when the user asks to generate, render, draw or create an image with ComfyUI, Stable Diffusion, SDXL, Flux or a local model, or to re-run, vary or upscale a previous ComfyUI render.npx claudepluginhub ritvarsbiksis/comfyui-plugin --plugin comfyui