dsh-ds-balance

DSH PLUGIN通知与集成

仓库 zlZayn/dsh-ds-balance · npm dsh-ds-balance

通知与集成 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

把 DeepSeek 账户余额常驻在 DSH 左侧栏底部的状态环里,点开可看总额、赠送与充值拆分及数据新鲜度,并在插件设置页配置币种、预警阈值与刷新节奏。

一句话选型结论

按资料字段整理

dsh-ds-balance 是通知与集成类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,列出 5 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类通知与集成 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 3 复刻 1 · 未关闭 issue 未标注
最近更新 2026-10-11 创建于 2026-09-17
README 8.8 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add dsh-ds-balance@2.3.0
  1. 1
    确认版本与运行环境

    兼容的 DSH 版本为 0.1.7-rc.1 等 3 个;版本不匹配时安装会报错。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本0.1.7-rc.1 等 3 个版本版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名dsh-ds-balance可用 npm view 查看包信息

能做什么

5 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-ds-balance:把 DeepSeek 账户余额放进 DSH plugin 侧边栏的状态环

  • 侧栏底部常驻余额状态环
  • 浮层显示总额与赠送充值拆分
  • 多币种与预警告急阈值
  • 自动刷新并读缓存
  • API Key 只走凭据通道不落盘

适用场景

通知

上游标签

agent-harnessaiai-agentbalancedeepseekdeepseek-harnessdshdsh-pluginmonitoringobservabilitypluginsidebartypescript

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✕ 未通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 插件目录树加载失败
  • L5.3_HTTP_SERVED HTTP 服务响应

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 标注了兼容的 DSH 版本(0.1.7-rc.1 等 3 个),按版本装不容易报错。
  • 列出了 5 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在通知与集成场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-ds-balance当前 L4 · 沙盒安装通过 低风险 3 0.1.7-rc.1 等 3 个 有
treg L3 · 安装规范通过 低风险 4,976 未标注 无
dsh-purge 未做沙盒验证 未标注 3,412 未标注 有
dsh-im L5 · 运行验证通过 低风险 1,837 0.1.7-rc.2 等 10 个 有
dsh-dafeiyu L5 · 运行验证通过 低风险 425 0.1.7-rc.2 等 10 个 有
dsh-trading L3 · 安装规范通过 低风险 235 未标注 无

仓库档案

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方zlZayn仓库 dsh-ds-balance · 默认分支 未标注
分类通知与集成notify
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue3 / 1 / 未标注收录时的数值,非实时
创建 / 更新2026-09-17 · 2026-10-11最后推送 未标注
本站收录2026-09-19首次进入本站目录的时间

README 全文

8.8 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-ds-balance

DeepSeek account balance in the DSH sidebar
把 DeepSeek 账户余额放进 DSH 的左边栏

Per-version changes → Releases (one-to-one with npm versions)

简体中文 · English


A status ring is pinned to the bottom of the sidebar; clicking it shows the actual balance figures. To change settings, open the Plugins page in the sidebar and pick this plugin. The key and the account both follow the official Models page, and the endpoint is the official one — none of the three is set here.

Data and credentials

The balance is read directly from the official DeepSeek API, not estimated from usage.

  • The credential is resolved through DSH's credential channel; the plugin stores no key of its own: a key never lands in a settings file.
  • The UI only ever sees a head-and-tail mask (sk-cf08d*****3b84, the same shape the DeepSeek platform console uses); the full key never crosses the wire, is never logged, and is never written to any file of this plugin.
  • Only api.deepseek.com is contacted; no other traffic is proxied or forwarded.
  • Balance snapshots are stored per credential — changing the key starts keeping records afresh, so old figures are never mixed in.

Getting started

Prerequisites: DSH on its current RC line (specify @next when installing); Node >= 20. The only source for the compatible range is engines.dsh in package.json.

  1. Install the host. Neither latest nor alpha is the line we declare, so specify the version line:
npm install -g @deepseek-ai/dsh@next
  1. Install the plugin:
dsh plugin --profile web add dsh-ds-balance
  1. Start (or restart) dsh --profile web; the balance entry appears at the bottom of the sidebar.

From source: git clone, then pnpm install && pnpm run build, then dsh plugin --profile web add "$PWD" — the same restart applies.
That pnpm install cannot be skipped: under a path install the repository supplies its own dependencies, and missing them makes the plugin show as "not running".

What it shows

Three surfaces, each with one job:

Surface Where What it does
Status ring Pinned to the bottom of the sidebar See at a glance how much is left and how close you are to the warning threshold
Balance popover Click to expand See the total, the granted / topped-up split, and how many minutes old the data is
Settings card This plugin's details page under Plugins Check both ways of reading your balance, and set the currency, the warning thresholds and the refresh cadence

The entry is pinned to the bottom of the sidebar; clicking it opens the balance popover: the total, the granted / topped-up split, how many minutes ago the data was, and manual refresh at the bottom right.

The ring itself is "what is going on right now", five states you can tell apart at a glance:

The ring Meaning What you do
Coloured ring + an arc There is a balance; the colour says more or less Read the number
Grey ring + a rotating gap Fetching, no result yet Wait
Grey ring + a + in the middle Not connected to your account yet Configure it
Grey, empty ring Connected to your account, which simply has no balance Nothing
Red ring + a cross in the middle No usable number here Check it

What each thing is

Thing What it means
Arc length The balance as a share of that currency's warning threshold, capped at a full circle
Colour State only (normal / low / critical), never the amount; the critical threshold only sets the colour and takes no part in drawing the ring
The mark in the middle + means not connected yet; go configure; cross means no usable number here — it could not be read, or it was read but the account cannot be used
Hover text The amount when the number is trustworthy, that state's own line otherwise; collapsed and expanded say the same sentence
The source bracket To the right of the popover title: which credential this number came from — a head-and-tail mask such as sk-cf08d*****3b84, or the signed-in account's name
Data freshness The "how long ago" in the popover, counted from the moment the data arrived
Manual refresh Cooldown applies; the cooldown restarts when the refresh finishes, and the seconds on the popover are the real ones left
Settings groups Connection / Display / Thresholds / Refresh

Configuration

The card lives on the Plugins page: sidebar Plugins → "Installed" → click the DeepSeek Balance card to step into its details page.

The configuration area is on the details page, right below the description, ready to edit:

  • Connection — read-only: the two ways this plugin can read your balance, what each one is using right now, where that credential comes from, and a Test button that really calls the provider.
  • Display — which currency amounts use, or let it follow the account.
  • Thresholds — two lines per currency: a warning threshold and a critical threshold. Within one currency the critical value must stay below the warning value; saving is blocked otherwise.
  • Refresh — the server refresh interval, the UI poll interval and the manual refresh cooldown; the defaults suit most setups.

Saving applies immediately; there is no need to restart DSH.

The configuration area on the details page. A group with an invalid entry expands itself.

> Upgrade notes: the keys these settings are filed under changed once with a host upgrade, and old values are not migrated; after upgrading, fill the four groups in again as above. Separately, version 3.0 removed two settings: a hand-written apiKey and a custom baseUrl now have no effect — the credential is the one the official Models page holds, and the endpoint is the official one. Remove them from your settings file if you had set them by hand.

Version compatibility

  • Which host version is required: whatever engines.dsh in package.json declares — that range names the host lines this plugin covers, ceiling included; anything past the ceiling is not supported. If you need the settings UI, upgrade the host to the newest line: npm install -g @deepseek-ai/dsh@next.
  • The declaration enumerates lines explicitly: only the lines listed in engines.dsh are promised. A new line past the ceiling becomes supported only after it has been measured in the compat.yml matrix and written into the declaration; it does not follow the host automatically. Patch releases inside a listed line (prereleases included) need no declaration change.
  • Compatibility is measured: weekly, compat.yml runs the tests on the declared host line, plus a separate step checking the declared range still covers it; a red committed line opens a tracking issue. Verdicts and handling: Compatibility.

License

MIT.

Contributing

Bugs and requests go to the repository Issues.

Maintainer's document map → AGENTS.md.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-ds-balance 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add dsh-ds-balance@2.3.0` 即可。对应的 npm 包名是 `dsh-ds-balance`。

dsh-ds-balance 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-ds-balance 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-ds-balance 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-ds-balance 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.1.7-rc.1、0.1.6-alpha.2、0.1.6-alpha.1。

dsh-ds-balance 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-ds-balance 有哪些功能?

侧栏底部常驻余额状态环、浮层显示总额与赠送充值拆分、多币种与预警告急阈值、自动刷新并读缓存、API Key 只走凭据通道不落盘。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

同名或近似条目

1 条
不同作者的仓库分开列,请确认你要装的是哪一个
通知与集成
按星标排序,可作替代方案

treg

treg

Treg 是面向 Agent 工具的 OpenRouter,聚合 60 个提供商的 2896 个端点,按调用计费,统一令牌访问,无需注册各供

L3 · 安装规范通过 4,976 星

dsh-purge

dsh-purge

dsh-purge Community · DeepSeek Harness 社区维护版:宿主兼容、状态诊断、提示词管理、更新与本机备份回滚

未标注验证等级 3,412 星

dsh-im

dsh-im

将IM机器人接入DeepSeek Harness,支持飞书、微信、钉钉等九种渠道,通过扫码或凭据配置,统一管理多机器人连接。

L5 · 运行验证通过 1,837 星

dsh-dafeiyu

dsh-dafeiyu

DSH 大肥鱼是一款由 DeepSeek Harness 真实工作状态驱动的桌面伴侣插件,以始终置顶的透明窗口实时展示 Agent 的思考、

L5 · 运行验证通过 425 星

dsh-trading

dsh-trading

L3 · 安装规范通过 235 星

zlZayn 的其它插件

2 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。