dsh-deepseek-usage

在侧边栏底部显示一张卡片:DeepSeek 账号余额(用 DSH 已保存的 API Key 调官方 /user/balance 接口获取),以及当前模型的档单价——输入、缓存读取、输出——取自内置的官方价格表快照。一个圆点标出当前计费时段,旁边是距离切换的倒计时:高峰为北京时间周一至周五 9:00–12:00、14:00–18:00(不含中国法定节假日),其余为空闲时段。档单价与圆点只对 DeepSeek 官方模型显示,其他模型只显示余额。卡片每 30 秒刷新一次,点击或切换模型时立即刷新,并跟随应用主题与 DSH 语言。

插件介绍

在侧边栏底部显示一张卡片:DeepSeek 账号余额(用 DSH 已保存的 API Key 调官方 /user/balance 接口获取),以及当前模型的档单价——输入、缓存读取、输出——取自内置的官方价格表快照。一个圆点标出当前计费时段,旁边是距离切换的倒计时:高峰为北京时间周一至周五 9:00–12:00、14:00–18:00(不含中国法定节假日),其余为空闲时段。档单价与圆点只对 DeepSeek 官方模型显示,其他模型只显示余额。卡片每 30 秒刷新一次,点击或切换模型时立即刷新,并跟随应用主题与 DSH 语言。

安装方式

通过 npm 安装

dsh plugin --profile web add @dougen/dsh-deepseek-usage

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:dougen/dsh-deepseek-usage

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。