9Epuuuu/dsh-api-balance

9Epuuuu★ 2TypeScript最后同步: 2026-08-14

在 GitHub 打开

DeepSeek account balance readout for DSH Web (dsh-plugin)

README 摘要

@9Epuuuu/dsh-api-balance English 中文 DeepSeek account balance in the DSH Web composer stats line: an ambient readout, always visible above the input box, that shows the account balance and the per-session spend: The balance comes from the official DeepSeek GET /user/balance endpoint, fetched by the host half (which sidesteps browser CORS). The per-session spend uses the balance-difference method: the first balance read for a session is recorded as its starting balance, and spend is the drop from it, clamped to zero. What it does - Host half : registers GET /api/balance (loopback-only), resolves the API key through DSH's ctx.credentials service, fetches and caches the DeepSeek balance for the configured interval, and registers the api-balance settings namespace. - Client half : mounts a line in conversation.composer.dock (the built-in stats line above the input box) and a settings card in the Web UI plugin group. Installation Install the family aggregate package @linxin666/dsh-web-ui-all (all plugins and skins in one) or this plugin alone: Restart dsh web , set the API key credential reference in the plugin settings, and the balance line appears above the input box. Configuration Key…

在 GitHub 查看完整 README →
工具/开发deepseekdshdsh-plugin

分类