model-usage-plugin avatar

model-usage-plugin

统计各模型 tokens 消耗并估算费用,显示账户余额 | Model token usage stats and cost estimation with account balance for DSH

Plugin数据
验证
L2 · 结构化
安全
低风险
健康
活跃
信任

功能介绍

统计各模型 tokens 消耗并估算费用,显示账户余额 | Model token usage stats and cost estimation with account balance for DSH

安装

dsh plugin --profile web add model-usage-plugin

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

兼容性

DSH VersionStatus
not statedDeclared — not tested

要求

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

安全报告

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

DSH.SO已通过SCAN4 FILES
0c9b39
自动审查 · 每日更新
已通过

自动化扫描未发现严重或警告级问题。结果仅对所示 commit hash 对应版本有效。

0 严重·0 警告·8 提示·4 扫描文件数
扫描版本0c9b392b0a3d2026-08-16
当前版本0c9b392b0a3d

扫描结果仅对「扫描版本」有效。若当前版本不同,徽章将显示 outdated,直到每日流水线重新扫描。

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

风险:低风险0 critical · 0 warning · 8 info

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

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

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

扫描发现 · 8

  • info发起网络请求(fetch / axios)src/client.js:15
    const getStats = () => fetch(API, { cache: 'no-store' }).then((res) => res.json())
  • info发起网络请求(fetch / axios)src/client.js:16
    const postAction = (body) => fetch(API, {
  • info读取 process.envsrc/index.js:110
    const dshHome = process.env.DSH_HOME || (process.env.HOME || '') + '/.dsh'
  • info读取 process.envsrc/index.js:446
    if (!apiKey && process.env.DEEPSEEK_API_KEY) apiKey = process.env.DEEPSEEK_API_KEY
  • info读取 process.envsrc/index.js:451
    const base = (balanceBaseUrl || '').trim() || process.env.DEEPSEEK_BASE_URL || 'https://api.deepseek.com'
  • info发起网络请求(fetch / axios)src/index.js:386
    const response = await fetch(url, { signal: AbortSignal.timeout(10000) })
  • info发起网络请求(fetch / axios)src/index.js:452
    const response = await fetch(base.replace(/\/+$/, '') + '/user/balance', {
  • info发起网络请求(fetch / axios)src/index.js:611
    const response = await fetch('https://open.er-api.com/v6/latest/USD', { signal: AbortSignal.timeout(8000) })

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

活跃度

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

• 仓库创建: 2026-08-16

• 星标: ★ 4 · 复刻: 0

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

来源

GitHub: github.com/AKS1st/model-usage-plugin

这页有帮助吗?