comfyui-model-manager

comfyui-model-manager is a skill for Claude Code, Codex from IvanYangYangXi/artclaw_bridge. It costs 82 tokens per session (1,090 once invoked), scanned A, original, MIT.

A model-file manager for ComfyUI, the visual tool used to run AI image-generation workflows. It handles model types such as checkpoints, LoRAs, VAEs, and ControlNet models.

In plain words
What is it for?
Use it to list, search, download, and delete ComfyUI model files.
Why use it?
It removes the need to manually search through model folders or download files one by one. It can find local models and download models from CivitAI or Hugging Face.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list, search, download, and delete ComfyUI model files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivanyangyangxi/artclaw_bridge/comfyui-model-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add IvanYangYangXi/artclaw_bridge --skill comfyui-model-manager
Clone the repo
git clone --depth 1 https://github.com/IvanYangYangXi/artclaw_bridge

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for comfyui-model-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-model-manager/github.svg)](https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-model-manager)
Your own site
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-model-manager"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-model-manager/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.

agentmods 80×15 button for comfyui-model-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-model-manager"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-model-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.01090
Opus 5.5 $0.00033 $0.00436
Sonnet 5.5 $0.00016 $0.00218
Haiku 4.5 $0.00008 $0.00109

Measured 3mo ago against content hash 8c6f83af686e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comfyui-model-manager 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.

skills/official/comfyui/comfyui-model-manager/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ComfyUI 模型管理器

管理 ComfyUI 的模型文件:查询、下载、删除。


预注入变量

run_python 已注入:folder_paths, client


核心功能

1. 列出模型

from comfyui_model_manager import list_models

# 列出所有 checkpoints
checkpoints = list_models("checkpoints")
print(f"找到 {len(checkpoints)} 个 checkpoints")
for ckpt in checkpoints[:10]:
    print(f"  - {ckpt}")

# 列出 LoRA
loras = list_models("loras")
print(f"\n找到 {len(loras)} 个 LoRA")

2. 搜索模型

from comfyui_model_manager import search_models

# 本地搜索
results = search_models("sdxl", model_type="checkpoints")
print(f"本地找到 {len(results)} 个匹配")

3. 下载模型

from comfyui_model_manager import download_model

# 从 URL 下载
result = download_model(
    url="https://civitai.com/api/download/models/12345",
    model_type="loras",
    filename="my_lora.safetensors"
)

print(result)
# {
#   "success": True,
#   "path": ".../models/loras/my_lora.safetensors",
#   "size": "145.2 MB"
# }

4. CivitAI 搜索下载

from comfyui_model_manager import search_civitai, download_from_civitai

# 搜索
results = search_civitai(
    query="anime style",
    model_type="LORA",
    sort="Most Downloaded"
)

# 下载第一个
if results:
    model = results[0]
    download_from_civitai(
        model_id=model["id"],
        save_path=f"models/loras/{model['name']}.safetensors"
    )

5. 删除模型

from comfyui_model_manager import delete_model

delete_model("old_model.safetensors", model_type="checkpoints")

支持的模型类型

类型 folder_paths 参数 说明
Checkpoints checkpoints 主模型
LoRA loras LoRA 模型
VAE vae VAE 模型
ControlNet controlnet ControlNet 模型
CLIP clip CLIP 模型
CLIP Vision clip_vision CLIP Vision
Upscale upscale_models 超分模型
Embeddings embeddings Textual Inversion

完整示例

下载并使用新模型

# 1. 检查模型是否存在
from comfyui_model_manager import model_exists

if not model_exists("sdxl_anime.safetensors", "checkpoints"):
    print("模型不存在,开始下载...")
    
    # 2. 从 CivitAI 搜索
    from comfyui_model_manager import search_civitai
    results = search_civitai("sdxl anime", model_type="Checkpoint")
    
    if results:
        # 3. 下载
        from comfyui_model_manager import download_from_civitai
        download_from_civitai(
            model_id=results[0]["id"],
            model_type="checkpoints"
        )
else:
    print("模型已存在")

# 4. 在 workflow 中使用
ckpts = folder_paths.get_filename_list("checkpoints")
print(f"可用 checkpoints: {ckpts}")

Read the full file on GitHub · 185 lines

Changes

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.

  1. 3mo ago First seen · 185 lines · 82 tokens per session scan A 8c6f83af686e

Subscribe to this mod's changes

comfyui-model-manager is a skill published in the GitHub repository IvanYangYangXi/artclaw_bridge (39 stars, last pushed 7mo ago), licensed MIT. It adds 82 tokens to every session and 1,090 once invoked, about $0.0003 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.

Related

comfyui-model-manager compared with skills from other repositories

comfyui-model-manager next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comfyui-model-managerIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA82Claude Code, Codex
dcc-mcpdcc-mcp/dcc-mcp-coreSkill78todayMITA167Claude Code
dcc-mcp-skills-creatordcc-mcp/dcc-mcp-coreSkill78todayMITA74Claude Code
dcc-cuadcc-mcp/dcc-mcp-coreSkill78todayMITA131Claude Code, Codex
marketplace-publish-extensiondcc-mcp/dcc-mcp-coreSkill78todayMITA88Claude Code
mesh-opsdcc-mcp/dcc-mcp-coreSkill78todayMITA85Claude Code
clawhub-compatdcc-mcp/dcc-mcp-coreSkill78todayMITA59Claude Code