Introduction¶
The DSH plugin ecosystem emphasizes “everything is a plugin.” The community directory is an independent site and is not the official app store for DeepSeek or Huanfuan. For DSH Web users who frequently call model APIs, a common issue is that while the chat interface can show the current call, there is a lack of a unified entry point to look back at Token usage, cache, prices, and balance by workspace, model, and date range.
elviass/dsh-cost-insights is a local usage and cost analysis plugin for DeepSeek Harness, providing Token, cache, API balance, and model price statistics.
What is this¶
elviass/dsh-cost-insights is maintained by elviass and is licensed under MIT © 2026 elviass. As a web plugin, it extends DSH’s original chat statistics bar and sidebar without replacing the original interface, and automatically follows DSH’s Chinese/English language and Light/Dark themes.
Core Features¶
Usage and Costs¶
- View usage and costs by conversation, workspace, model, API provider, purpose, and date range.
- Statistics for input, cache write, output, cache hit rate, and number of calls.
Chart Analysis¶
- Analyze Token usage, costs, and model usage via line charts, distribution charts, and a 365-day heatmap.
Prices and Balances¶
- Synchronize model prices and exchange rates from supported sources; display converted prices in CNY alongside USD prices.
- Display API balances for supported interfaces; DeepSeek official calls distinguish between peak and off-peak pricing.
Interface Locations¶
- Below the chat input area, display the current model price, current chat cost, and balances for supported interfaces.
- The sidebar displays the total spending for today.
- The full page is located at “Settings → Usage and Costs”.
Installation and Activation¶
First, confirm your environment meets the following conditions:
- DeepSeek Harness
>=0.1.0-rc.7 <0.2.0 - Node.js
^22.19.0 || >=24.0.0 - DSH Web Client
This project is distributed only via GitHub Releases. First, download the archive dsh-cost-insights-1.0.1.tgz for v1.0.1, then install it using the corresponding DSH profile:
dsh plugin --profile web add ./dsh-cost-insights-1.0.1.tgz
Note: The old name dsh-usage-insights and the similarly named package on npm no longer represent this project; please use dsh-cost-insights.
When upgrading from v1.0.0, please first remove the old name dsh-usage-insights from the corresponding profile, then install the new package.
Typical Usage¶
After installing and starting DSH, follow the steps below to view:
- Go to “Settings → Usage and Costs” to view the complete usage and costs page.
- View the current model price, current chat cost, and balances for supported interfaces below the chat input area.
- View the total spending for today in the sidebar.
- If you need to export diagnostic logs, go to “More → About” and click the version number 7 times in succession. Diagnostic logs will remove credentials, prompts, reply bodies, and local database content.
Scenarios and Notes¶
This plugin is suitable for web users who need to review DSH’s local usage, costs, cache hit rates, and model price sources.
It is recommended to confirm the following before use:
- The plugin runs with the current
dshprocess permissions; check the source code and license before installing. - The plugin saves numerical usage, API provider and model identifiers, time, conversation/workspace grouping, price source metadata, and optional balance snapshots locally.
- The plugin does not save prompts, reply bodies, or original API keys.
- Network synchronization only accesses the prices, exchange rates, and balance interfaces declared in
package.json.
Links¶
- GitHub Repository:
https://github.com/elviass/dsh-cost-insights - Directory Page: Verified information does not provide a URL.