bowenliang123/dsh-context
bowenliang123/dsh-contextDSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
可拖动透明余额卡片:余额/月初额度血条、今日/本月用量(配置平台 token 后为官方精确数据)、当前对话费用。
DeepSeek API 额度血条插件 for DeepSeek Harness (dsh) web GUI: 右下角悬浮卡片,血条直观显示「余额 / 本月额度」,并展示今日与本月使用量(官方数据优先)。
A floating bottom-right widget for the dsh web GUI: a blood-bar of your remaining DeepSeek API balance vs the month-opening balance, plus today's and this month's spend (official platform data when configured).
DEEPSEEK_PLATFORM_TOKEN 后为官方精确数据;未配置时自动降级为余额差值估算dsh plugin --profile web add dsh-deepseek-quota-bar
# 或从 GitHub 安装:
dsh plugin --profile web add github:jiangli07/dsh-deepseek-quota-bar
安装后重启 dsh web,打开页面强刷(Ctrl+Shift+R),右下角出现卡片。
| 凭证 | 必需 | 说明 |
|---|---|---|
DEEPSEEK_API_KEY | ✅ | 与 harness 同一个 Key(设置 → 模型 页面填写) |
DEEPSEEK_PLATFORM_TOKEN | 可选 | platform.deepseek.com 的 userToken:F12 → Console → 执行 JSON.parse(localStorage.getItem('userToken')).value,把值写入 ~/.dsh/.credentials.yaml |
凭证是热读取的:配置后无需重启,下一次刷新即生效。
GET https://api.deepseek.com/user/balanceGET https://platform.deepseek.com/api/v0/usage/cost?month=&year=(与平台控制台同源)~/.dsh/storages/deepseek-quota-bar.jsonsession/event 实时计价 + 持久化日志全量回放(含重启前历史)git clone https://github.com/jiangli07/dsh-deepseek-quota-bar.git
cd dsh-deepseek-quota-bar
dsh plugin --profile web add .
注意:修改 lib/client.js 后需重启 dsh web(bundle 引导哈希重新生成)再强刷页面。
MIT。Fork 自 yingjunnan/dsh-deepseek-quota(MIT); 定价引擎参考 dsh-web-billing(MIT)。