ice-kele/dsh-llm-guardian
DeepSeek Harness 的提供商健康状态、配额、账户使用情况以及本地模型使用统计
Project Overview项目介绍
DSH LLM Guardian is a native community plugin built exclusively for DeepSeek Harness. It adds three core sets of functionality to DeepSeek Harness’s Models settings page: periodic or on-demand provider health checks, local token quota controls, and provider-scoped account or plan usage queries. Unlike many other plugins, it does not store any user API keys in its own configuration, and instead resolves credentials through DSH’s native credentials service. It adds health test actions, usage query actions, and a compact status summary to every configured provider card for quick access. Users can trigger these actions directly from the settings page without navigating to external sites.
It also includes an optional local usage dashboard that aggregates session logs stored locally by DSH. Users can view aggregated usage data across 7-day, 30-day, or 90-day time windows, with support for filtering by model, viewing an activity heatmap, checking daily token usage trends, and seeing the share of tokens consumed by each model. All statistics are computed locally on the user’s machine and are never uploaded to any external server by this plugin. This makes it a great tool for users who want to track their LLM usage and control costs without sacrificing privacy.
Installation is straightforward via the DSH CLI: just run dsh plugin add github:ice-kele/dsh-llm-guardian and restart your DSH or DSH Desktop application after the install completes. The plugin includes a compatibility adapter for current DSH releases that do not yet expose the required extension slots for provider actions. It uses no Electron-only APIs, so it works across both CLI and desktop versions of DSH. After installation, all controls will appear under the Settings → Models menu, where you can access them any time. It is released under the permissive MIT open source license, so it is free for both personal and commercial use.
这是专为 DeepSeek Harness 开发的原生社区插件,它在模型设置页面为每个配置好的大模型提供商新增了运行状况检查、本地令牌配额限制和提供商账户用量查询功能,且不会在插件配置中存储用户的 API 密钥。每个提供商配置卡片都会新增健康测试操作、用量查询操作和精简状态摘要,方便用户快速查看和操作。
它还提供了一个可选的本地用量统计面板,可将本地会话日志聚合按 7 天、30 天或 90 天维度展示,支持按模型筛选查看、活动热力图、响应式每日令牌用量图表、模型占比统计等功能。所有统计计算都在本地完成,不会上传用户数据,适合需要控制大模型调用成本、关注提供商服务稳定性的 DSH 用户使用。
用户可以通过指令 dsh plugin add github:ice-kele/dsh-llm-guardian 安装该插件,安装完成后重启 DeepSeek Harness 或 DSH Desktop 即可使用。该插件不依赖 Electron 专属 API,兼容当前未开放对应扩展槽的 DSH 版本,内置兼容适配器,采用 MIT 许可证开源,对个人和商业使用都完全免费。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-llm-guardian(ice-kele/dsh-llm-guardian)
仓库:https://github.com/ice-kele/dsh-llm-guardian
本站详情页:https://www.yhbd.top/plugins/ice-kele-dsh-llm-guardian/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-23 · 主语言 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 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 add github:ice-kele/dsh-llm-guardian
把 ice-kele/dsh-llm-guardian 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH LLM Guardian
简体中文 | English
dsh-llm-guardian is a community plugin for DeepSeek Harness. It adds provider health checks, local token quotas, and provider-scoped account or plan usage queries to the Models settings page without storing API keys in the plugin settings.
Provider cards
The plugin contributes a health-test action, a model-usage action, and a compact status summary to every configured provider card.

Local usage dashboard
The optional dashboard aggregates local session logs into 7, 30, or 90-day views. It includes model filtering, summary metrics, an activity heatmap, a responsive daily token chart, model share, and detailed hover values.

Features
- Periodic and on-demand provider health checks.
- Local token counters and optional request blocking after a configured quota is reached.
- Provider-scoped account or plan usage queries with explicit timeout and refresh controls.
- Built-in query adapters for DeepSeek balance and Z.AI Coding Plan quotas.
- Local session-log statistics with model filtering, activity heatmap, daily token trends, and model share.
- Secret redaction, response-size limits, and same-origin restrictions for custom usage queries.
Install from GitHub
dsh plugin add github:ice-kele/dsh-llm-guardian
Restart DeepSeek Harness or DSH Desktop after installation. The provider controls appear under Settings → Models.
Compatibility
The plugin prefers the typed settings.models.provider.action and settings.models.provider.summary slots. A compatibility adapter is included for current DSH releases that do not expose those slots yet. The proposed upstream slot patch is tracked separately so the DOM compatibility adapter can be removed after the extension points are available.
Privacy and network behavior
- API keys are resolved through the DSH credentials service and are not persisted by this plugin.
- Health checks call the configured provider model-discovery endpoint.
- Usage queries are limited to HTTPS endpoints on the provider origin; loopback HTTP is allowed for local providers.
- Local counters and query results are stored in the
llm-guardiansettings namespace. - Dashboard statistics are computed locally from DSH session logs and are not uploaded by this plugin.
Plugin marketplace
This project is designed as an ordinary composable DSH plugin and uses no Electron-only API. If DSH Desktop does not bundle or directly reference it, we would appreciate the project being considered for the forthcoming plugin marketplace. Add the repository topic dsh-plugin to keep ecosystem discovery machine-readable.
Development
npm install
npm run check
npm pack --dry-run
slywalker2006/dsh-passwords
edison7009/EchoBird
Han-1413141/dsh-cost-meter
Ychris12138/dsh-usage-stats
wink-run/tokenbank
JingbiaoMei/Tokdash
songoao25/dsh-bottom-info-bar