wbb316/dsh-comfyui-image ↗★ 1

dsh-comfyui-image

DSH 图片生成插件:本地 ComfyUI 后端,对外只暴露一个统一的 generate_image 工具(文生图 / 图生图 / 局部重绘 / 背景移除)。A DSH image-generation plugin backed by a local ComfyUI server. 适合需要在对话中直接调用本地ComfyUI进行文生图、局部重绘等任务的用户。

Package
dsh-comfyui-image
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Oct 3, 2026

Other repositories with this package name

Install

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

配置

配置有四层来源,高的赢:

插件配置(profile 的 cordis.patch.yml 里那条 entry 的 config)
  > 配置文件 ~/.dsh-comfyui-image/config.json
    > 环境变量(COMFYUI_URL 等)
      > 内置默认值

插件配置放最高,是因为 DSH 的配置树是权威来源;而配置文件是给「只想改个地址、不想动 YAML」的人准备的便利层, 改完立即生效,不用重启 DSH。

最常用的一份 ~/.dsh-comfyui-image/config.json 就长这样:

{
  "baseUrl": "http://127.0.0.1:8188",
  "checkpoint": "sd_xl_base_1.0.safetensors",
  "outputDir": "D:/images",
  "steps": 25,
  "timeoutMs": 600000
}

完整键表、环境变量对照、以及「配置不生效怎么办」见 docs/CONFIG.md。