LittleBeaverStudio/agnes-media
A DeepSeek Harness (dsh) plugin that registers two host tools for the Agnes AI media models, so the agent can generate images and videos during a conversation.
catalog descriptioncatalog 简介 / catalog description:Registers generate_image and generate_video tools for Agnes AI media models in DeepSeek Harness.
Project Overview项目介绍
This is a native DeepSeek Harness (DSH) plugin that adds two agent tools for Agnes AI's media generation APIs. It enables DSH agents to generate images and videos directly during user conversations, supporting three core capabilities: text-to-image, text-to-video, and image-to-video with up to 5 reference images. Agnes AI offers free unlimited API calls for all users, and the plugin automatically handles 429 rate limit errors with backoff and retries. Users can store their Agnes API key either as an environment variable or via DSH's built-in encrypted credentials system, which keeps keys stored securely locally.
In a typical DSH workflow, when you ask the agent to create an image or video during a conversation, the agent will automatically select the appropriate tool from this plugin. It will pass your text prompt and any required parameters, like desired image size, video duration, and output aspect ratio, to the Agnes AI API. Generated images are returned as public HTTPS URLs and rendered inline directly in the DSH conversation UI, so you can see them immediately without extra navigation steps. Generated videos are returned as direct playback URLs, which you can open and play inline directly in your browser.
This plugin requires DSH version 0.1.0-rc7 or newer and Node.js 22 or higher, and it only uses Node.js built-in modules so no extra dependencies need to be installed. API keys are generated for free by Agnes AI, and users should note that keys are bound to specific endpoint generations, so if you get a 401 unauthorized error you should test switching endpoints before generating a new key. This plugin is released under the open source MIT license, and it never stores or logs your API key, keeping your credentials secure whether you use environment variables or DSH's encrypted credential storage.
这是一个专为DeepSeek Harness(DSH)开发的原生插件,用于接入Agnes AI的文生图、文生视频和图生视频能力。安装后,DSH代理会获得两个可用工具generate_image和generate_video,能够在对话过程中根据用户需求直接生成图片或短视频内容。Agnes AI提供免费无限额度的API调用,国内用户可以直连访问无需代理,API密钥可通过环境变量或DSH自带的凭证系统配置。
当用户在和DSH代理对话的过程中提出生成图片或视频的需求,代理会自动调用本插件提供的对应工具,将用户的提示词和参数传递给Agnes AI接口,生成结果会直接展示在对话窗口中。图片会以内联方式渲染显示,视频会生成可直接播放的直链,在浏览器中点击即可播放。该插件适合需要在AI对话流程中快速生成多媒体内容,不需要切换到独立第三方平台的DSH用户使用。
本插件要求DSH版本不低于0.1.0-rc7,仅依赖Node.js 22+内置模块,无需额外安装第三方依赖。API密钥需要用户自行到Agnes AI平台注册获取,需要注意密钥和接入端点存在代际绑定,出现401错误时需要先更换端点再重新生成密钥。本插件采用MIT许可证开源,完全免费使用,安装只需要一条DSH命令即可完成。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:agnes-media(LittleBeaverStudio/agnes-media)
仓库:https://github.com/LittleBeaverStudio/agnes-media
本站详情页:https://www.yhbd.top/plugins/littlebeaverstudio-agnes-media/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-11 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:LittleBeaverStudio/agnes-media
把 LittleBeaverStudio/agnes-media 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
agnes-media
A DeepSeek Harness (dsh) plugin that registers two host tools for the Agnes AI media models, so the agent can generate images and videos during a conversation.
🌟 功能特性
- 文生图:使用
agnes-image-2.5-flash模型生成高质量图片 - 文生视频:使用
agnes-video-2.5-flash模型生成 4-12 秒短视频(默认 5 秒) - 图生视频:传入
reference_image_url(单图)或reference_image_urls(多图数组,最多 5 张)即可使用参考图,支持 429 限流退避重试 - 免费无限:Agnes AI 提供免费 API 调用
- 国内直连:实测
api.agnes-ai.com/.cn旧节点均 404/401,默认统一走apihub.agnes-ai.cn - 凭证集成:支持环境变量或 DSH credentials 系统
- 零依赖:仅使用 Node.js 内置模块,无需额外安装
⚠️ 获取 API Key(重要!)
平台地址
| 地区 | URL |
|---|---|
| 中国大陆 | platform.agnes-ai.cn |
| 国际 | platform.agnes-ai.com |
两个平台各自签发 Key — 注意 Key 与节点存在代际绑定,并非处处通用(见下文「API Key 与端点选择」的实测表格)。
获取步骤
- 登录与你所在地区匹配的平台
- 进入 设置 → API 密钥(Settings → API Keys)
- 点击 "创建新密钥"(Create New Key)
- 重要:密钥只显示一次!立即复制保存!
- 密钥格式为
sk-xxxxxxxx...(以sk-开头,约 50+ 字符)
常见问题:401 错误("无效的令牌")
如果你遇到 401 错误:
| 检查项 | 解决方案 |
|---|---|
| 复制完整? | 确保完整复制 sk-... 字符串,不要截断 |
| 多余空格/换行? | 去除首尾空格 — 确保没有多余空格 |
| Key 已删除? | 去设置 → API 密钥检查 Key 是否还存在 |
| 用错 Key? | 创建新 Key 并重新测试 |
| 区域不匹配? | .cn Key 用于 .cn 端点,.com Key 用于 .com 端点 |
手动测试你的 Key
# 使用 curl 直接测试,排除插件配置问题
curl -s https://apihub.agnes-ai.cn/v1/models \
-H "Authorization: Bearer YOUR_KEY_HERE" | head -c 500
如果返回模型数据,说明 Key 在该节点有效;如果返回 {"error":{"message":"无效的令牌"...}},
先换一个端点重试(见下文实测表格——Key 与节点有代际绑定),换节点仍 401 再重新生成 Key。
⚠️ API Key 与端点选择
获取你的 API Key
- 在 Agnes AI 平台(国内节点)或 国际节点 注册
- 中国大陆用户:使用
.cn平台 — 速度更快,无需代理 - 海外用户:使用
.com平台
- 中国大陆用户:使用
- 在控制台设置 → API 密钥中创建 API Key
- 创建 API Key(Key 与签发它的节点存在代际绑定,见下方实测表格)
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
nexu-io/open-design
Devin-AXIS/iPolloWork
liustack/modlens
Alisa0808/vox-director
EthanYoQ/AI-Novel-Writer
Anionex/agent-vision-toolkit
ysr666/dsh-vision-router
tong-io/tongflow