Zenjibad/deepseek-cost-usage-status-plugin

Zenjibad★ 0TypeScript最后同步: 2026-08-16

在 GitHub 打开

Live DeepSeek API cost, usage & balance status line for the DeepSeek Harness (DSH) web UI. Packaged DSH plugin — on/off-peak (Beijing-time), session cost, burn rate, account balance.

README 摘要

DeepSeek Cost / Usage / Status Plugin for DeepSeek Harness A packaged Cordis plugin for DeepSeek Harness (DSH) that adds a second, colored status line under the shipped conversation stats line, showing live DeepSeek API cost, usage, and account balance . Features - On / off-peak indicator — green when off-peak (idle), red when peak , using DeepSeek's official Beijing-time peak windows (09:00–12:00, 14:00–18:00). The clock shows your local timezone ; the decision is Beijing-time so the color matches what DeepSeek actually bills. - Session cost — real per-session token usage accumulated from the llm/stream waterfall, priced with official CNY rates including the 50% off-peak discount , then converted into your account's currency (from the balance API) so cost and balance are directly comparable. - Burn rate — /min in the same display currency, i.e. session cost ÷ elapsed minutes since the session's first model call. - Account balance — polled from DeepSeek's /user/balance every 60s using DSH's own DEEPSEEK API KEY ; degrades to Balance — if the key is unavailable/network fails. - Current model + reasoning effort . - Font-matched to the shipped stats line (12px/20px, muted tertiary col…

在 GitHub 查看完整 README →
皮肤/UIdsh-pluginweb ui

分类