121212165/dsh-plugin-quota ↗★ 0

dsh-plugin-quota

实时用量仪表:会话级 token/轮次/估算花费实时追踪,注入系统提示 + /qm 面板 + quota_meter 卡片;也是家族通用插件开发测试模板(events/commands/tools/section/presentation 全覆盖)。 适合需要实时监控单次对话成本、防止超支的用户。

Package
dsh-plugin-quota
Compatibility
Unverified
Cordis peer range
>=4.0.0
Version
0.1.0
License
MIT
Last updated
Oct 2, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:121212165/dsh-plugin-quota

配置

budgetTokens: 0      # 单会话 token 预算,0 = 不显示进度条
inject: true         # 实时仪表注入系统提示
prices:              # 按模型 id 子串匹配,命中才估花费
  - match: space-bunny
    currency: USD
    perMillion: { input: 1, output: 2, cacheRead: 0.1 }