Community plugin

TwotwoPiggy / dsh-balance-lite

dsh余额插件. A DeepSeek Harness plugin for real-time token tracking and highly accurate session cost estimation, featuring dynamic peak/off-peak pricing support.

  • JavaScript
  • License not detected
  • 12 stars
  • Nov 21, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-balance-lite is a DSH plugin published from the packages/lite package in the TwotwoPiggy/dsh-balance repository.

  • Listing statusManifest verified
  • Manifest checkedNov 20, 2026
  • Packagedsh-balance-lite
  • Package pathpackages/lite
  • Package version0.2.8
  • Source commit600bfeb
  • Repository createdAug 13, 2026

Capabilities and topics

balancecost-trackcost-trackercost-tracking
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

dsh-balance-lite

DeepSeek 余额显示插件(精简版)— 纯余额与会话消耗显示,无设置面板。

与完整版 (dsh-balance) 的区别

功能dsh-balancedsh-balance-lite
余额实时显示 + 三色状态灯✅✅
点击状态灯手动刷新✅✅
悬停弹出双栏详情卡片✅✅
本会话消耗估算 (按模型)✅✅
谷峰费率自动切换✅✅
中英文国际化✅✅
可视化设置面板✅❌
定价参考弹窗✅❌
YAML 配置导出✅❌
API 连通性测试✅❌
运行时热更新配置✅❌

精简版体积约为完整版的 1/3。

安装

dsh plugin --profile web add dsh-balance-lite

⚠️ dsh-balance 和 dsh-balance-lite 二选一,请勿同时安装。

配置

所有配置通过 $DSH_HOME/profiles/web/cordis.patch.yml 设置:

- id: dsh-balance-lite
  config:
    # DeepSeek API 密钥 (留空则走 apiKeyRef 解析)
    apiKey: ''
    # credentials / 环境变量引用名
    apiKeyRef: DEEPSEEK_API_KEY
    # DeepSeek API 基址
    baseUrl: https://api.deepseek.com
    # 服务器查询余额间隔 (毫秒)
    refreshIntervalMs: 300000
    # 浏览器读取缓存间隔 (毫秒)
    clientPollIntervalMs: 30000
    # 计价货币
    currency: CNY
    # 多币种阈值
    thresholds:
      CNY: { warning: 10, danger: 5 }
      USD: { warning: 1.4, danger: 0.7 }
    # 自定义模型单价 (每 100 万 tokens)
    prices:
      deepseek-chat: { cacheHit: 0.2, cacheMiss: 2, output: 8 }
    # 谷时模型单价 (留空则使用官方标准单价)
    pricesOffPeak: {}

想要更多功能?

安装完整版:

dsh plugin --profile web remove dsh-balance-lite
dsh plugin --profile web add dsh-balance

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/TwotwoPiggy/dsh-balance/packages/lite)