vacum972/dsh-usage-billing: Session-level usage and billing capsule below the input box
This is the client-side DSH Web plugin maintained by vacum972, version 0.1.3, licensed under the MIT License, requiring DSH >=0.2.1-rc.5 <0.3.0-0. It features a persistent capsule below the input box displaying the current session's consumption amount, remaining balance, API request count, tokens, and the official pricing for the current time period. It bills per request according to DeepSeek's official peak and off-peak rules; history is not recalculated when time periods switch. The host periodically fetches official pricing and holiday calendars, falling back on failure and retrying every 2 minutes. The remaining balance is read from the top-up and bonus balances of the logged-in account; it refreshes immediately upon opening the popup and updates every 60 seconds. Installation is via npm or GitHub using the command `dsh plugin --profile web add @vacum972/dsh-usage-billing`; for Desktop, use the Plugin Center or a local link. The configuration replaces the global config, including currency, timeZone, peakWindows, priceUrl, holidayUrl, models, etc. The costs are estimates and do not include Search/Fetch per-request fees. It only tracks the current session, which differs from the platform's 30-day summary; this is expected. Plugin code runs with DSH process permissions; you should review the source code and license before installation.
Read More