DeepSeek API quota panel collapsed into a left-edge handle for the Web UI: click to expand balance, official today's consumption (with platform token) and live conversation cost; fork of dsh-deepseek-quota.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:dk33333333/dsh-deepseek-quota-left
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DeepSeek API 额度面板插件(DSH web GUI 修改版)。
基于 dsh-deepseek-quota(MIT)修改:把右下角浮动卡片改为左侧折叠式面板,并修复了"今日已消费"来源标识未传递到前端的问题。
特性
- 左侧折叠把手:默认只显示一条竖排"额度"把手贴在聊天界面左边框,点击展开完整面板,再点收起。
- 官方精确数据:
- 余额:官方
api.deepseek.com/user/balance(无需额外配置) - 今日已消费:配置
DEEPSEEK_PLATFORM_TOKEN后走官方平台用量接口,显示"今日已消费"(不带 ≈);未配置时回退为余额差值估算(带 ≈) - 当前对话费用:按官方价格表(含峰谷计价)本地实时计价,悬停 ⓘ 查看公式明细
- 余额:官方
- 自动刷新(余额 60s / 对话费用 5s)+ 手动刷新按钮。
- 跟随明暗主题,API Key 不出本机。
安装
需要 DSH CLI 与 pnpm。
# 从 npm 安装
dsh plugin --profile web add dsh-deepseek-quota-left
# 或从 GitHub 仓库安装
dsh plugin --profile web add https://github.com/dk33333333/dsh-deepseek-quota-left
然后:
- 重启
dsh web(bundle 层在启动时读取)。 - 打开 http://127.0.0.1:3080 并刷新页面。
- 左侧边框出现竖排"额度"把手,点击展开面板。
配置
插件读取 DSH 已使用的 DEEPSEEK_API_KEY(余额)。如需官方精确"今日已消费",另配 DEEPSEEK_PLATFORM_TOKEN:
- 登录 https://platform.deepseek.com
- DevTools → Console 运行
localStorage.getItem('userToken'),复制 JSON 中value字段 - 写入
~/.dsh/.credentials.yaml:
DEEPSEEK_PLATFORM_TOKEN: <token>
与原版的差异
| 项 | 原版 | 本修改版 |
|---|---|---|
| 位置 | 右下角浮动卡片 | 左侧边框折叠把手,点击展开 |
| 今日已消费来源标识 | 前端丢失 todayConsumedSource,永远显示"约" |
已修复,官方数据时显示"已消费" |
License
MIT(派生自 dsh-deepseek-quota,MIT)
Links
More in this category
bowenliang123/dsh-context★ 1573
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
Han-1413141/dsh-cost-meter★ 349
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.
wssfk12138/dsh-damage-pulse★ 224
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
zh667/TokenLedger★ 202
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
Ychris12138/dsh-usage-stats★ 169
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
PolinniZhong/dsh-personal-center★ 120
Personal center for DeepSeek Harness: cross-session usage statistics, per-model cost estimation, global custom instructions, a global font-size adjuster, a data-driven desktop pet with bitmap & vector skins, and a conversation status overview, all local and offline.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.