dsh-model-price: Model Pricing and Live Spend for DeepSeek Harness

itsbuyru-bit/dsh-model-price

Models & ReasoningVerified
Listed on 2026-10-22
Page last updated 2026-10-26

Adds per-model API price tables, wallet balance and live session spend to DeepSeek Harness, with USD/CNY pricing, Peak/Off-Peak rates and 9 languages.

dsh-model-price is a billing extension for DeepSeek Harness that solves a gap in the framework itself: it reports token usage per step but never tells you what that usage costs. The plugin converts each step into real money and keeps a compact line under the chat composer with session spend, wallet balance and a Peak/Off-Peak badge, while a popover breaks down token composition, per-model cost and the all-time total. Prices are entered per model in USD or CNY with a manual rate, Peak and Off-Peak hours switch rates automatically, and all data stays in a local directory without rewriting session logs.

How to Install

install
dsh plugin --profile web add github:itsbuyru-bit/dsh-model-price
Category
Models & Reasoning
Platform
DSH Plugin
Author
itsbuyru-bit
Distribution
Plugin

dsh-model-price Key Features

Per-model Peak/Off-Peak price tableWallet balance and live session spendUSD/CNY with manual FX rateOne-click model sync9 bundled languages
Listed on dsh-plugin.org

dsh-model-price Repo Summary

What Does It Do?

It is a DSH plugin for DeepSeek Harness that adds per-model API pricing, wallet balance and live session spend to the harness. DeepSeek Harness reports token usage per step but has no price table and no wallet display, so this plugin folds that usage into a session projection and prices it on read. Maintained by itsbuyru-bit under the MIT license, it is plain JavaScript with no runtime dependencies, keeps all data in a local directory, and never rewrites session logs or blocks requests.

Core Features

  • Per-model price table: input (cache miss), output, cache hit and cache write rates, each with separate Peak and Off-Peak values.
  • Two currencies: enter prices in USD or CNY, display in one currency and convert using a manual rate stored in settings.
  • Wallet: shows the real DeepSeek account balance plus bonus wallets, with a local budget standing in when the account is unavailable.
  • Live session cost: updates while the model works, de-duplicates retries, and reports aborted steps without usage instead of guessing.
  • Peak / Off-Peak: an editable UTC window with orange Peak and green Off-Peak badges, automatically selecting the matching price column per settlement.
  • Model sync and localization: one click mirrors the models bound in Settings, and 9 bundled languages are included with automatic discovery of new locale files.

How to Use This Plugin?

After enabling it in DSH, a compact line appears under the chat composer showing session spend, wallet balance and the Peak/Off-Peak badge; clicking it opens a popover with token composition, per-model cost, wallet split, child sessions and the all-time total. To get accurate numbers, open the Models & prices section in Settings and enter each model's price per million tokens, pick the currency and manual FX rate, and set the Off-Peak window; press sync once whenever the bound model list changes. The popover also shows the Off-Peak window in local time with a countdown, so you know when cheaper rates start.

How to Troubleshoot This Plugin?

If the spend line or wallet figure stops appearing, a newer DeepSeek Harness release has likely renamed a slot, projection key or service; the affected part degrades to showing nothing rather than crashing the page, and the Host API keeps working, so check version compatibility per the official notes. If prices show as zero, first confirm that the model has prices filled in and that the Peak/Off-Peak window matches the current time.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: itsbuyru-bit/dsh-model-price. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub

DSH Plugin FAQ