LittleBeaverStudio/agnes-media

Plugin插件 Native原生 ⭐ 3 MIT Vision & 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命令即可完成。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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.

License: MIT DeepSeek Harness Agnes AI Node.js npm


🌟 功能特性

  • 文生图:使用 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 与端点选择」的实测表格)。

获取步骤

  1. 登录与你所在地区匹配的平台
  2. 进入 设置 → API 密钥(Settings → API Keys)
  3. 点击 "创建新密钥"(Create New Key)
  4. 重要:密钥只显示一次!立即复制保存!
  5. 密钥格式为 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

  1. 在 Agnes AI 平台(国内节点)或 国际节点 注册
    • 中国大陆用户:使用 .cn 平台 — 速度更快,无需代理
    • 海外用户:使用 .com 平台
  2. 在控制台设置 → API 密钥中创建 API Key
  3. 创建 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 →

← 上一个 Prev dsh-plugins-market 下一个 Next dsh-docker →