ice-kele/dsh-llm-guardian 预览 preview

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 许可证开源,对个人和商业使用都完全免费。

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

Provider health and usage controls

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.

Local model usage dashboard

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-guardian settings 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

License

MIT

← 上一个 Prev dsh-econ-tools 下一个 Next dsh-testgen →