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.
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-flagsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/artokun/comfyui-mcp /tmp/comfyui-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/comfyui-mcp/plugin/skills/comfyui-launch-flags ~/.gemini/antigravity-cli/skills/comfyui-launch-flagsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install comfyui-launch-flags in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
