
PicGo/dsh-plugin
40最近提交 2026年8月14日
dsh-plugin DSH 插件
该插件填补了 agent 生成的本地文件与可分享链接之间的空白。它集成 PicGo,可上传到任意已配置的图床(GitHub、S3、腾讯 COS、七牛、PicGo Cloud 等)。提供模型可调用的工具 `picgo_upload` 和手动上传的命令 `/picgo`。
如何安装 dsh-plugin DSH 插件
dsh plugin --profile web add @picgo/dsh-plugin复制不会执行命令。安装 dsh-plugin DSH 插件前请核对仓库和版本。
dsh-plugin DSH 插件数据来源
dsh-plugin DSH 插件快照日期:2026年8月16日
discovered
dsh-plugin DSH 插件能做什么
- 上传本地文件到任意 PicGo 已配置的图床(GitHub、S3、腾讯 COS、七牛、PicGo Cloud、第三方上传插件)。
- 提供结构化工具 `picgo_upload`,模型可调用它把本地文件转为 URL。
- 提供 `/picgo` 命令用于手动上传、剪贴板上传、状态查看、PicGo Cloud 登录/登出。
- 包含内置 skill,教会模型何时自动上传(例如在文档中插入截图)。
- 若未配置 PicGo,默认使用 PicGo Cloud 免费版。
- 可通过 `cordis.patch.yml` 配置 `silent`、`timeoutMs`、`registerSkill`、`registerCommand`、`announceSignIn` 等字段。
dsh-plugin DSH 插件适合哪些场景
- Agent 编写 README 时需要嵌入其输出的截图。
- Agent 渲染图表后截图,上传以分享链接。
- 用户手动使用 `/picgo` 命令上传剪贴板中的图片。
- 用户一次性上传多个本地文件 `/picgo <path>...`。
- Agent 捕获截图但图片留在磁盘上,插件上传后使链接在推送后仍有效。
dsh-plugin DSH 插件适合谁
- 使用 DeepSeek Harness 构建 agent 工作流的开发者,需要将本地文件变为可访问的 URL。
- 已使用 PicGo 配置了图床的用户,希望在 Harness 中复用配置。
- 任何想在 agent 会话中将本地文件(截图、图表等)转为 Web 可访问链接的人。
dsh-plugin DSH 插件的限制
- 上传的链接是公开的,删除后可能仍被缓存;不适合敏感文件(如合同、内部档案)。
- 剪贴板上传需要桌面会话,且仅可通过 `/picgo` 命令使用,模型无法调用。
- 模型无法运行 `/picgo login`,因为会阻塞等待浏览器回调。
- 需要 Node ^22.19.0 || >=24.0.0 和 DeepSeek Harness(开发者预览版,API 频繁变更)。
- PicGo 配置除了由 PicGo Cloud 管理的令牌外,视为只读。
dsh-plugin DSH 插件的仓库 README 摘录
以下文字摘自 dsh-plugin DSH 插件的上游仓库 PicGo/dsh-plugin 的 README,版权归原作者,仅作引用。
Upload images and files to your image host from [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness), powered by [PicGo](https://picgo.app/). Harness can show your agent a screenshot, but it has no way to turn a local file into a link. So when the agent writes a README, renders a chart, or captures a screenshot, the image stays on disk and `` becomes a dead link the moment you push. This plugin closes that gap. It uploads through **whatever image host you already configured in PicGo** — PicGo Cloud, GitHub, S3, Tencent COS, Qiniu, or any third-party uploader plugin you installed. Nothing to re-configure. If you've never used PicGo, it walks you into PicGo Cloud's free tier. ## Install ```sh dsh plugin --profile web add @picgo/dsh-plugin ``` Then boot as usual: ```sh dsh --profile web ``` ## What you get **`picgo_upload`** — a tool the model calls on its own when a local file needs to become a link. Returns structured results, so in Code Mode you can use it directly: ```js const { uploaded } = await tools.picgo_upload({ paths: ['/tmp/chart.png'] }) console.log(uploaded[0].imgUrl) ``` **`/picgo`** — a command that uploads without spending a mode
阅读完整 README仓库未声明许可,使用前请先与作者确认。
dsh-plugin DSH 插件常见问题
如何安装 @picgo/dsh-plugin?
在终端中运行 `dsh plugin --profile web add @picgo/dsh-plugin`,然后像往常一样使用 `dsh --profile web` 启动 DeepSeek Harness。
我需要单独安装 PicGo 吗?
不需要,该插件内置了 PicGo Core。你只需配置图床即可。如果之前未使用 PicGo,默认使用 PicGo Cloud 免费版。
如何登录 PicGo Cloud?
在聊天中使用 `/picgo login` 命令,它会打开浏览器进行认证。如果你已有 PicGo Cloud 的令牌,可以直接运行 `/picgo login <token>` 快速登录。
上传的文件是私有的吗?
不是,上传的链接是公开的。任何拥有该 URL 的人都可以访问文件,并且即使删除后仍可能被缓存。请避免上传合同、内部档案等敏感文件。
我能从剪贴板上传吗?
可以,使用不带参数的 `/picgo` 命令即可上传当前剪贴板中的图片(需要桌面会话)。模型无法自动上传你的剪贴板。