Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

comfyui-launch-flags

Skill by artokun

Helps choose ComfyUI startup flags for VRAM, attention backend, cache mode and speed. It is a decision matrix for graphs that run out of memory, slow down in shared VRAM, or produce black output under Sage.

  • Score 74
  • 980 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install comfyui-launch-flags

Built from the published package, never by AI.

git clone --depth 1 https://github.com/artokun/comfyui-mcp /tmp/comfyui-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/comfyui-mcp/plugin/skills/comfyui-launch-flags ~/.claude/skills/comfyui-launch-flags

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install comfyui-launch-flags in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a decision guide for the command-line flags passed to ComfyUI's main.py. It maps common symptoms, such as CUDA out-of-memory errors on long video, slowdowns from spilling into shared GPU memory on Windows, RAM filling up when switching models, and black output from Z-Image under SageAttention, to the flags that address them. It covers VRAM strategy, attention backend, cache mode, speed and precision options, and a few recipe combinations.

The source says the flag names were checked against upstream comfy/cli_args.py and that ComfyUI changes flags often, so users should run python main.py --help on their install. It is aimed at people running ComfyUI on NVIDIA GPUs, including Blackwell RTX 5000 cards, who need to pick launch settings for video or large models.

Written from the project's SKILL.md and checked against it.

What it can do

  • VRAM strategy guidanceExplains when to use --novram, --lowvram, --highvram, --gpu-only or --cpu, and the default smart offload.
  • Memory modifiersCovers --reserve-vram N, --disable-smart-memory and async offload flags for stalls and Windows shared-VRAM slowdowns.
  • Attention backend selectionCompares --use-ck-attention, --use-sage-attention, --use-flash-attention and --use-pytorch-cross-attention.
  • Cache mode choicesDescribes --cache-ram, --cache-classic, --cache-lru N and --cache-none and when each fits.
  • Z-Image attention warningAdvises launching Z-Image with PyTorch cross-attention because Sage gives black or garbled output.
  • Launch recipesLists combined flag sets for long video OOM, Windows VRAM creep, FLUX 2 and high-VRAM setups.
  • Acceleration stack notesLists version-locked torch, Triton, SageAttention and FlashAttention components and Blackwell sm_120 context.

What you need

  • ComfyUI installed and launched with python main.py
  • NVIDIA GPU with an up-to-date driver
  • Python 3.10 to 3.12 for the full acceleration stack
  • Sageattention wheel matched to torch, CUDA and Python if using --use-sage-attention

Try asking

  • Which ComfyUI flags should I use for an LTX 2 video that runs out of memory?
  • My GPU slows down on Windows mid-run. Which --reserve-vram value should I try?
  • Z-Image outputs black images. What attention flag should I launch with?

Good to know

  • Flag names can change in ComfyUI, so run python main.py --help to confirm them.
  • VRAM and attention flags are mutually exclusive within their groups.
  • The restart tool replays the previous launch arguments and does not add new flags.
  • Sage and Sage-on vs Sage-off outputs can differ slightly, so seeds may not match.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugin/skills/comfyui-launch-flags/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to comfyui-launch-flags

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

comfyui-launch-flags: common questions

Which attention flag is safest for ComfyUI?

The source describes --use-pytorch-cross-attention as the highest quality option that is always available with no extra dependencies. It is also the recommended fallback for Z-Image.

What do I do if ComfyUI runs out of memory on long video?

The source recommends --novram together with --cache-none, and adding --disable-smart-memory if the run stalls.

Does ComfyUI need a full CUDA toolkit installed to run?

No. The source says an up-to-date NVIDIA driver plus prebuilt wheels is enough to run ComfyUI, and a full CUDA, MSVC and cuDNN toolchain is only needed to compile kernels.

How do I install comfyui-launch-flags?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is comfyui-launch-flags free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is comfyui-launch-flags safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to comfyui-launch-flags?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

comfyui-launch-flags Install

Add to stack

Loading.