dsh-deepseek-balance
v0.2.1
界面与主题
发起网络请求
这张卡片展示你的 DeepSeek API 账户余额以及今天花了多少钱,数据来自真实来源(不是模拟数据)。点击卡片会打开一个详情弹窗,里面有余额明细、当前会话的用量,以及最近的会话消费列表。
作者原文(英文)
dsh plugin: DeepSeek API balance and daily spend card in the sidebar footer
中文简介由 DeepSeek 模型翻译,仅供参考。
dshdeepseek-harnessdsh-plugindeepseekbalanceplugin
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
1需留意3一般20未命中
高关注需留意一般
能力清单
- 发起网络请求
network需留意6 处命中dsh/client.js:316fetch('/dsh-balance/deepseek', { cache: 'no-store' })dsh/client.js:329fetch('/dsh-usage/sessions?tz=' + browserTz(), { cache: 'no-store' })dsh/client.js:388fetch('/dsh-usage/details?session=' + encodeURIComponent(sessionId), { cache: 'no-store' }).then(function (res) { return…dsh/client.js:389fetch('/dsh-usage/sessions?tz=' + browserTz(), { cache: 'no-store' }).then(function (res) { return res.json().catch(func…- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 接触凭据或密钥
credentials一般51 处命中dsh/index.js:8// ~/.dsh/.credentials.yaml only to build the Authorization header of thedsh/index.js:175const error = new Error('DEEPSEEK_API_KEY 未配置')dsh/index.js:177error.hint = '在 DSH Models 设置页配置 DEEPSEEK_API_KEY,或设置环境变量 DEEPSEEK_API_KEY'dsh/index.js:181// Last-resort read of the API key from ~/.dsh/.credentials.yaml. Kept only as- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般3 处命中dsh/index.js:212const envApiKey = process.env.DEEPSEEK_API_KEYdsh/index.js:291if (process.env[PLATFORM_TOKEN_REF]) return normalizePlatformToken(process.env[PLATFORM_TOKEN_REF])- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般2 处命中dsh/index.js:189text = readFileSync(credsPath, 'utf8')dsh/index.js:293const raw = readFileSync(join(homedir(), '.dsh', '.credentials.yaml'), 'utf8')- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 6 |
| 接触凭据或密钥 | credentials | 一般 | 51 |
| 读取环境变量 | reads-env | 一般 | 3 |
| 读取文件 | reads-files | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 5 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)