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. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
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
zhu1090093659/dsh-web-ui#packages/dsh-web-ui-all★ 2955
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 1410
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 1372
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/dsh-at-file★ 238
Codex-style `@file` mentions: search workspace files in the composer and attach their contents to prompts.
huiliyi37/dsh-tianshu-tui★ 181
A terminal UI (TUI) for DeepSeek Harness.
Nagi-ovo/dsh-visualize★ 134
In-conversation generative UI: the model renders interactive HTML cards into the chat stream, with streaming preview and sandboxed rendering.