ShiraGawaAnri/dsh-quota-cards

ShiraGawaAnri★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

DSH 额度查询插件:在**消息输入框左侧**常驻一张额度 Card,随当前模型自动切换,展示对应账号的额度/流量,支持手动刷新(带防抖)和按周期自动刷新。无需发布到 npm —— 打包成 zip 发给对方即可安装。

README excerpt

中文 English dsh-quota-cards A DSH account-quota plugin. It keeps a resident Card at the left end of the composer that follows the selected model and shows the matching account readout — DeepSeek balance, or OpenCode Go remaining token usage over the 5h (rolling) / weekly / monthly windows — with a debounced manual refresh button and interval-based auto refresh. Features Composer-left quota Card ( conversation.input.left ) - DeepSeek : account balance (total, with granted/topped-up detail in the tooltip). Credential reference and refresh interval are configured in Settings. - OpenCode Go : remaining token traffic for the 5h (rolling) / weekly / monthly windows as percentages (tooltip carries the used share and reset time). - Follows the model : each refresh re-resolves the current provider via the session.models RPC; providers whose id contains deepseek show the balance card, opencode providers show the usage card, anything else shows a muted placeholder. The model is re-checked on mount, after each finished turn ( running flips), on connection reset, and on settings changes. - Manual refresh (debounced) : a click refreshes immediately (bypassing the host cache); clicks inside the 2 …

View full README on GitHub →
Tools / Devdsh-plugin

Category