DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-usage-balance

z

dsh-usage-balance

Manifest valid★ 2

DeepSeek Harness Sidebar Usage/Balance Plugin

UI (client)hasBundlePatch

[!WARNING] 本仓库已废弃 —— 相关能力已随 dsh 正式版本内置发布,无需再安装本插件;仓库仅作历史存档,不再维护。

dsh-usage-balance

DeepSeek Harness 侧边栏「用量 / 余额」插件

在侧边栏底部「设置」按钮上方显示一条简洁的 用量 | 余额 标签行,鼠标悬停时在右侧展开玻璃拟态详情卡。

功能

  • 标签行:仪表盘图标 + 「用量 / 余额」标签(跟随界面中英文),与设置、Cordis 面板同一排位风格;与 Cordis 面板纵向堆叠、互不冲突
  • 详情卡(悬停展开):
    • 运行时长(xxmxxs,每秒跳动)
    • Token(输入/输出)
    • 估算金额(≈,按内置价格表计算)
    • 官方账户余额(真实接口数据)
  • 门帘式滑杆开关:卡片底部的椭圆滑杆控制详情「悬停显示 ↔ 固定常驻」
  • 自适应:详情卡不超出桌面范围,右侧空间不足时自动翻转到左侧展开;侧边栏折叠成竖条时显示 ¥ 徽标
  • 风格:全部使用 DSH 主题变量(--dsw-*),跟随亮/暗主题;玻璃拟态(高级灰 + 透明度 + 背景模糊)

数据说明

  • 用量:读取会话的 tokenUsage 投影(与内置统计同源)
  • 金额:按内置价格表估算(src/index.js 顶部可修改单价)
  • 余额:调用官方 GET {baseURL}/user/balance,复用 llm-deepseek 设置里的同一把 API Key,60 秒缓存;优先 Node fetch,失败自动回退 curl

安装

需求:Node.js ≥ 20 + DeepSeek Harness(带 dsh plugin 命令)

dsh plugin --profile web add github:zdjmrq/dsh-usage-balance

安装后重启 dsh web 生效。

更新 / 卸载:

dsh plugin --profile web update dsh-usage-balance   # 更新
dsh plugin --profile web remove dsh-usage-balance   # 卸载

已知限制

  • 金额为估算值,实际账单以官方为准
  • 余额查询需要可访问 api.deepseek.com 的网络与有效 API Key

📖 文字开源描述

本插件在「文字开源」枢纽仓库 dsh-text-open-source 中配有完整描述(功能 / 技术路线 / 结构 / 关键实现 / 复刻提示词,不依赖代码即可复刻、便于理解与微调):plugins/dsh-usage-balance.md。

License

MIT

Comments

Loading…

From the same category

dsh-desktop

by anywhere-labs

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

UI & ExperienceManifest valid

★ 30.4k

↓ 108/wk

MIT

TypeScript

Oct 10, 2026

dsh plugin --profile web add dsh-plugin-desktop

by zhu1090093659

DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop

UI & ExperienceManifest valid

★ 8.6k

↓ 125/wk

Apache-2.0

TypeScript

Oct 10, 2026

dsh plugin --profile web add dsh-web

A collection of independent Web UI plugins and skins, including task boards, Git graphs, mobile access, and live token stats.

UI & ExperienceManifest valid

★ 7.6k

↓ 119/wk

Apache-2.0

TypeScript

dsh plugin --profile web add dsh-web

by omdsh-dev

开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git,

UI & ExperienceManifest valid

★ 4.1k

↓ 38.1k/wk

MIT

TypeScript

Oct 9, 2026

dsh plugin --profile web add dsh-better-sidebar

by bowenliang123

The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,

Tools & CapabilitiesTerminal & ClientsUI & ExperienceManifest valid

★ 2k

↓ 34.4k/wk

Apache-2.0

TypeScript

Oct 11, 2026

dsh plugin --profile web add dsh-context

by shaobeichen

把 DeepSeek Harness 装进你的口袋:电脑上跑 dsh web,手机扫码即同步访问(局域网 + 公网,实时同屏)Put DeepSeek Harness in your pocket: run dsh web on your computer and access it synchronously by scanning a QR code on your phone (LAN +

UI & ExperienceManifest valid

★ 1.6k

↓ 3.2k/wk

GPL-2.0

JavaScript

Sep 16, 2026

dsh plugin --profile web add dsh-pocket