dsh-cost: Viewing Account Balance and Session Costs in the DSH Web Interface
dsh-cost (dsh-cost-pill) is a plugin for the DeepSeek Harness community client. It displays peak/off-peak time slots, account balance (requires an API key), and session costs in the rightmost position of the statistics bar below the composer. Clicking on it reveals cache buckets and per-model breakdowns. It includes built-in official peak/off-peak pricing, 2026 price adjustments, and pro-to-flash routing rules. The API key is managed via `dsh credentials` and is not written to disk. It requires dsh version 0.2.1-rc.2 or higher. To install, use the command `dsh plugin add dsh-cost-pill` or `dsh plugin add github:Arun1016/dsh-cost`.
Read Moredsh-cost: DeepSeek Harness Cost Estimation Plugin
`dsh-cost` is a DeepSeek Harness plugin designed to provide visual cost estimation. It reads token usage data to display the cost of the current turn and the cumulative session total, cache hit rates, and supports DeepSeek's time-based pricing. The plugin is read-only (it does not send requests) and provides a detailed pricing breakdown panel. A restart of the Web process is required after installation; once restarted, the cost capsule and details can be viewed below the conversation. Please note that the figures displayed are estimates, and official billing statements prevail.
Read Moredsh-cost: Cost Display Plugin at the Bottom of DSH Chat
The DSH plugin `dsh-cost` provides fine-grained billing capabilities by calculating “occurrence time × unit price at that time” to achieve precise per-transaction statistics, and supports separate accounting for peak periods, idle periods, and visual inputs. The plugin displays balance and cost details using a pill component and is compatible with specific DSH versions. It is easy to install and supports hot-reloading during development. Note that its precise routing mechanism may allow other processes on the same machine to read balance and cost without credentials under certain configurations.
Read Moredsh-cost: A DeepSeek Harness Plugin for Real-Time Token Usage Statistics and Cost Estimation
The `dsh-cost` plugin is maintained by zydg and is designed to provide precise cost-control capabilities for DeepSeek Harness. By subscribing to the session event stream, it automatically appends a statistics line after each conversation turn, including token consumption, cache hit rate, and cost estimates, while also supporting balance queries. It supports peak/off-peak pricing by automatically identifying time-based billing periods based on the official price list, and it also allows manual adjustment of models and prices. All records are stored locally and support export. Developers need to configure an API key to enable balance queries and should pay attention to routing conflict handling. The project is open source and suitable for fine-grained monitoring of API costs.
Read Moredsh-cost: Real-time calculation of DeepSeek conversation costs next to the DSH input box
`dsh-cost` is a native plugin for the DSH Web platform that calculates and displays DeepSeek conversation costs in real-time. Based on DeepSeek's official pricing schedule and token usage for the `deepseek-v4-flash` and `deepseek-v4-pro` models, it automatically converts costs to CNY or USD and displays a monetary badge next to the input box. The plugin supports hovering to view input/output tokens and detailed costs for flash/pro, with currency selection and language following system settings. Amounts are kept to two decimal places (displayed as `<0.01` if less than 0.01). Its core features include: pricing only for official built-in providers without estimating third-party model prices; and separating the calculation of cache hits, misses, and writes.
Read Moredsh-cost: Evidence-First Token Cost Ledger for DeepSeek Harness
dsh-cost is a plugin for DeepSeek Harness (DSH), designed to address the ambiguity of cost accounting caused by the mixing of information from different sources, by establishing an evidence-first token cost ledger based on persisted `assistant/message.usage` events. This plugin separates routing splits, evidence completeness, budget status, and current context pressure snapshots for clear presentation, and provides explicit fail-open/fail-closed budget checking mechanisms. Its core features include offline CLI cost calculation, a built-in stdio MCP server (exposing `cost_report` and `cost_check` interfaces), and a user-maintained price book support, with prices calculated per million tokens and differentiated between input and output.
Read More