dsh-plugin-balance avatar

dsh-plugin-balance

DSH 插件:DeepSeek / OpenCode Go 额度悬浮窗 + DSH 会话 token 用量统计与官方峰谷价费用估算

Plugin界面美化金融数据存储
验证
L2 · 结构化
安全
中风险
健康
活跃
信任

功能介绍AI

DSH plugin floating window to show LLM quota/usage, session token stats, and cost estimation.

  • Query balance for DeepSeek, OpenCode Go, OpenAI, custom APIs
  • Token usage stats by day/month/total split by model, persisted to disk
  • Cost estimation using official DeepSeek/Kimi/GLM pricing

由 AI 基于 README 自动生成,仅供参考。

安装

dsh plugin --profile web add github:Andrew111888/dsh-plugin-balance

Install method: GitHub · 尚未在容器中测试 (L3+)

兼容性

DSH VersionStatus
not statedDeclared — not tested

要求

  • • Node.js: not stated
  • • DSH: declared "not stated"
  • • External credentials: none detected

安全报告

自动静态扫描,非人工审核。

DSH.SO AUDIT需注意4aa213
自动审查 · 每日更新
需注意

非阻断类别中的严重发现(动态执行、shell 执行、安装脚本、混淆)。在 CLI/终端插件中常见,但值得审查。

1 严重·2 警告·10 提示·4 扫描文件数
code-exec ×1
插件版本1.3.3dsh 清单
扫描版本4aa2130173dc2026-08-20
当前版本4aa2130173dc

扫描结果仅对「扫描版本」有效。扫描后 7 天内的新提交不会触发 outdated,评级仍然有效;超过 7 天未重新扫描才显示 outdated。

免责声明:这是自动化静态分析,不构成安全保证。安装前请自行审查。

第二意见扫描(vet · 并行评估期)
vet:干净

vet 判定:vet:干净 · score 100

  • R10 · info [heuristic] — 依赖清单:1 项(undici,供 LLM 审计供应链;已知漏洞核对见后续 OSV 精确版本查询(网络失败静默降级))
  • R3 · info [certain] — 只读 process 成员(能力触达面):process.env
  • R3 · info [certain] — 只读 process 成员(能力触达面):process.env
  • R3 · info [certain] — 只读 process 成员(能力触达面):process.env
  • R3 · info [certain] — 只读 process 成员(能力触达面):process.env

vet 仅作参考,不改变 dsh 的四档等级。

风险:中风险1 critical · 2 warning · 10 info

• 静态启发式扫描:已完成(4 个文件)

• 依赖漏洞:需深度审计(L3+)

• 权限沙箱:需运行时测试(L4+)

高危发现 · 3 / 3

  • critical使用 child_process 子进程模块(Node.js)lib/index.js:14
    import { execFileSync } from "node:child_process";
  • warning执行 shell 命令(exec / execSync)lib/index.js:389
    return execFileSync("zstd", ["-dc", file], {
  • warning文件系统写入操作lib/index.js:974
    fs.writeFileSync(tmp, JSON.stringify(usageStore));

静态启发式扫描,可能误报——使用前请自行审查源码。

活跃度

最近提交 2026-08-20 · 活跃度:活跃

• 仓库创建: 2026-08-20

• 星标: ★ 2 · 复刻: 0

• 健康度: 活跃 — 近 30 天有提交

来源

GitHub: github.com/Andrew111888/dsh-plugin-balance

这页有帮助吗?