jsoncode/dsh-balance-by-token

jsoncode★ 0JavaScript最后同步: 2026-08-22

在 GitHub 打开

DeepSeek Harness(dsh)双面插件(宿主 + 浏览器半边):查看 DeepSeek 账户余额, 按 token 用量估算费用,价格按模型 × 高峰/空闲时段在线配置。所有能力收敛在 统一弹框中(侧边栏底部「余额」入口),另在会话头部提供实时 「当前会话 ≈xx CNY | 余额 xx CNY」按钮。界面中英双语(跟随宿主 UI 语言)。

README 摘要

dsh-balance-by-token A DeepSeek Harness plugin (dual-face: host + browser) for watching your DeepSeek account balance and estimating token-based costs , with prices configured per model × peak/off-peak period online. Everything lives in a unified modal (opened from the sidebar-footer Balance button); a session-header button shows a live "Session ≈xx CNY". UI copy is bilingual (Chinese / English, following the host UI language). 中文文档 Features Balance tab - Enumerates every DeepSeek provider: - entries from the host llm-pi-ai settings whose baseURL points at DeepSeek, - the official llm-deepseek route, - manually attached extra API keys (see below). - Each API key row shows " Today spend ≈xx CNY Balance xx CNY " (numbers green) — the key's own today cost (matched from the per-key cost stats by provider route, ≈0.00 when unused) plus its account balance. - For each provider the plugin resolves the configured apiKeyEnv via the host credentials service and calls the official GET https://api.deepseek.com/user/balance (proxied by the host — keys never reach the browser). Each row shows total balance / granted balance (+ topped-out flag) or the failure reason. Results are cached in memory …

在 GitHub 查看完整 README →
皮肤/UIdsh-balance-by-tokendsh-pluginsidebar

分类