fangweixuan26-hash/dsh-dual-balance ↗★ 0

dsh-dual-balance

DSH status-bar plugin: show the signed-in DeepSeek account's Platform wallet next to the DEEPSEEK_API_KEY balance, as one pill in the composer stats band 适合需要随时监控API Key余额和平台钱包额度的用户。

パッケージ
dsh-dual-balance
互換性
未検証
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/29

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fangweixuan26-hash/dsh-dual-balance

ドキュメント

README 全文を読む ↗

配置

无需配置。内部常量:

常量默认说明
ROUTE(host)/api/dsh-dual-balance/status只读路由(?refresh=1 绕过缓存)
API_BALANCE_URL(host)https://api.deepseek.com/user/balance官方余额接口
API_KEY_REF(host)DEEPSEEK_API_KEY凭据库/环境变量引用名
CACHE_TTL_MS(host)60000服务端缓存窗口
API_TIMEOUT_MS(host)10000官方接口超时
POLL_MS(client)60000前端轮询间隔

要显示别的 API Key,把 API_KEY_REF 改成 ~/.dsh/.credentials.yaml 里的另一个名字即可。