Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/artokun/comfyui-mcpnpx agentmods add skills/artokun/comfyui-mcp/comfyui-launch-flagsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/artokun/comfyui-mcp/comfyui-launch-flags)<a href="https://agentmods.dev/skills/artokun/comfyui-mcp/comfyui-launch-flags"><img src="https://agentmods.dev/badge/skills/artokun/comfyui-mcp/comfyui-launch-flags/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/artokun/comfyui-mcp/comfyui-launch-flags"><img src="https://agentmods.dev/badge/skills/artokun/comfyui-mcp/comfyui-launch-flags.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00212 | $0.03332 |
| Opus 5.5 | $0.00085 | $0.01333 |
| Sonnet 5.5 | $0.00042 | $0.00666 |
| Haiku 4.5 | $0.00021 | $0.00333 |
Grade A, and why
comfyui-launch-flags scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ComfyUI launch/performance flags
Overview
CLI flags passed to main.py control ComfyUI's runtime behavior
(e.g. python main.py --reserve-vram 2 --use-sage-attention). The three that
matter most for making a graph run rather than OOM or crawl are the
VRAM strategy, the attention backend, and the cache mode. This skill
is the decision matrix for choosing them.
⚠️ Verification note (August 2026). Every flag below was checked against upstream
comfy/cli_args.pyon current master. ComfyUI adds/renames flags often — when in doubt runpython main.py --helpin the target install and prefer that over this list.--enable-triton-backend/--disable-triton-backendARE ComfyUImain.pyflags on master (they used to be documented as SwarmUI-only; that is stale).--use-ck-attentionis kitchen INT8 attention — nosageattentionwheel. A June ComfyUI checkout still pins comfy-kitchen 0.2.10 and lacks--use-ck-attention;kitchenaction:"status" reports ComfyUI-side flag support, not only the kitchen version. Usekitchen/panel_kitchento see what this GPU can actually run.
How to apply today. The MCP's
restart_comfyui(withaction: "start") currently replays the exact argv of the previous run. It does not compose fresh flags. So set these when you launch ComfyUI yourself (thepython main.py …line, arun.bat/shell alias, or the SwarmUI backend args box), and the tool will preserve them on restart. Injecting flags through the tool is a tracked follow-up.
Decide first: which flag do you need?
Symptom ▶ Flag(s) to try
─────────────────────────────────────────────────────────────────────────────
CUDA out of memory, long video (LTX 2 / WAN) ▶ --novram (+ --cache-none)
OOM, still want models resident when they fit ▶ --reserve-vram N then --disable-smart-memory
GPU slows to a crawl, spills into "shared GPU ▶ --reserve-vram 2..4
memory" (Windows WDDM) mid-run
RAM blows up switching between models, or a huge ▶ --cache-none
text encoder (FLUX 2 / Mistral) won't unload
Plenty of VRAM (48GB+), want max throughput ▶ --gpu-only or --highvram
Want faster sampling on NVIDIA ▶ --use-ck-attention if kitchen INT8 is available (skip the sage wheel); else --use-sage-attention
Z-Image produces BLACK / wrong output ▶ --use-pytorch-cross-attention (NOT sage)
Sage gives black output on some models ▶ --use-pytorch-cross-attention (or fix dtype)
ROCm, kitchen present, triton ≥ 3.7 ▶ --enable-triton-backend
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 211 lines · 212 tokens per session scan A 2e0e499eaa5c
comfyui-launch-flags is a skill published in the GitHub repository artokun/comfyui-mcp (967 stars, last pushed 7d ago), licensed MIT. It adds 212 tokens to every session and 3,332 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
comfyui-launch-flags compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| comfyui-launch-flagsartokun/comfyui-mcp | Skill | 967 | 7d ago | MIT | A | 212 | Claude Code |
| chief-strategy-officercbrock84/headcount | Skill | 2.6k | yesterday | MIT | A | 93 | Claude Code |
| chief-revenue-officercbrock84/headcount | Skill | 2.6k | yesterday | MIT | A | 0 | Claude Code |
| devyonatangross/orchestkit | Skill | 312 | yesterday | MIT | A | 45 | Claude Code |
| storybook-mcp-integrationyonatangross/orchestkit | Skill | 312 | yesterday | MIT | A | 91 | Claude Code |
| personal-guide-renderTserenTserenov/FMT-exocortex-template | Skill | 65 | today | MIT | A | 49 | Claude Code |
| voiceakseolabs-seo/AK-Threads-booster | Skill | 284 | 1mo ago | MIT | A | 57 | Claude Code |