dsh-ui-usage-billing
github.com/kenz1117/dsh-ui-usage-billing
v1.4.27
市场与管理
发起网络请求写入文件
把每一分模型开销,看得清清楚楚。
作者原文(英文)
Usage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.
中文简介由 DeepSeek 模型翻译,仅供参考。
deepseek-harnessdeepseekdshdsh-pluginbillingcost-trackingtoken-usageusage-stats
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意3一般19未命中
高关注需留意一般
能力清单
- 发起网络请求
network需留意9 处命中lib/index.js:4010const response = await fetch(`https://${TOKENHUB_HOST}/`, {lib/index.js:4193const response = await fetch(url, {lib/index.js:4666const response = await fetch(config.url, {lib/index.js:4966const response = await fetch(url.toString(), {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意1 处命中lib/index.js:6861await mkdir(dirname(ledgerPath), {- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 接触凭据或密钥
credentials一般223 处命中lib/index.js:7import { credentialRef } from "@deepseek-ai/dsh-credentials";lib/index.js:3949* Credentials are a cloud API key pair (`<SecretId>:<SecretKey>`), NOT thelib/index.js:3962/** 腾讯云凭据引用值格式:`<SecretId>:<SecretKey>`(分隔符取首个冒号)。 */lib/index.js:3963function parseTencentCredential(value) {- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般8 处命中lib/index.js:6853const parsed = JSON.parse(await readFile(path, "utf8"));lib/index.js:6867const existing = await readFile(ledgerPath, "utf8");lib/index.js:7074return parseOpenCodeAuthDocument(JSON.parse(await readFile(join(homedir(), ".local", "share", "opencode", "auth.json"), …lib/index.js:7084const token = JSON.parse(await readFile(join(homedir(), ".claude", ".credentials.json"), "utf8"))?.claudeAiOauth?.access…- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般1 处命中lib/index.js:7204process.env.DSH_USAGE_STATS,- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 9 |
| 写入文件 | writes-files | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 223 |
| 读取文件 | reads-files | 一般 | 8 |
| 读取环境变量 | reads-env | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 46 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)