yuehancn/dsh-tool-comfyui ↗★ 0

dsh-tool-comfyui

在聊天中直接调用本地或局域网的绘图 适合需要在 DSH 中直接调用 ComfyUI 进行 AI 绘图任务的用户。

套件
dsh-tool-comfyui
相容性
待驗證
Harness 依賴範圍
>=0.2.0-rc.2
Cordis 依賴範圍
~4.0.4
版本
1.0.0
授權
MIT
最近更新
2026年10月2日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yuehancn/dsh-tool-comfyui

配置机队

在 profile 的 cordis.patch.yml 覆盖插件行:

- id: tool-comfyui
  config:
    workers:
      - id: local5090
        url: http://127.0.0.1:8188
        label: RTX 5090D 主力机
      - id: spark5060
        url: http://192.168.11.109:8188
        label: 5060 Ti 素材机 A
    workflowsDir: /workflows
    outputDir: C:/Users//Pictures/comfyui
    defaultWorkflow: txt2img
    maxBatchSize: 8
    timeoutMs: 900000

加机器 = 往 workers 追加一项。


配置项

键默认说明
workers[]必填机队。每项 {id, url, label?, timeoutMs?}
workflowsDirworkflows命名工作流模板目录(.json → 模板名)
defaultWorkflowtxt2img不传 workflow 时用哪个
timeoutMs600000单次调用的协作超时预算
pollIntervalMs2000轮询 /history 的间隔
outputDircomfyui-output成图落地目录
generate / status / queuetrue分别开关三个工具
maxBatchSize8单次最多出几张