dsh-cost-tracker: A Token Cost Tracking Plugin for DeepSeek Harness

yflmq001/dsh-cost-tracker

Models & ReasoningVerified
Listed on 2026-08-17
Page last updated 2026-10-03

dsh-cost-tracker provides per-model configurable token cost tracking for DeepSeek Harness, with peak/off-peak rates and live session cost projection.

dsh-cost-tracker is a token cost tracking plugin built for DeepSeek Harness, addressing the lack of cost visibility in DSH. It bills every LLM call against a per-model pricing table you configure, distinguishing cache-hit, cache-miss, output, and peak-window rates, and displays live session costs in the Web UI. The plugin also offers session cost projection, peak-window flagging, and unconfigured model surfacing to keep bills accurate and transparent. Ideal for developers who need fine-grained control over AI call costs.

How to Install

install
dsh plugin --profile web add github:yflmq001/dsh-cost-tracker
Category
Models & Reasoning
Platform
DSH Plugin
Author
yflmq001
Distribution
Plugin

dsh-cost-tracker Key Features

Per-model pricingPeak/off-peak ratesLive session costUnconfigured model alerts
Listed on dsh-plugin.org

dsh-cost-tracker Repo Summary

What Does It Do?

dsh-cost-tracker is a DSH plugin for DeepSeek Harness that tracks token costs for every LLM call against a per-model pricing table you configure. It solves the lack of cost visibility in DSH, letting you see live session spend with cache-hit, cache-miss, output, and optional peak-window rates. Core capabilities include per-model pricing, session cost projection, peak-window flagging, and surfacing unconfigured models.

Core Features

  • Per-model pricing: configure cache-miss, cache-hit, output prices per model, with optional peak-hour rates.
  • Session cost projection: registers a cost projection outputting total, peak/off-peak costs, call count, and per-model breakdown.
  • Peak-window flagging: automatically flags calls that fall within configured peak hours.
  • Unconfigured model surfacing: models without pricing entries show as "unconfigured" placeholders, prompting you to add prices.
  • Cache writes billed at miss rate: avoids undercounting and keeps bills accurate.

How to Use This Plugin?

After enabling it in DSH, the plugin automatically computes a cost projection for each session, and the Web UI displays a live cost readout. You need to manually fill in model prices in the plugin config (currency units per million tokens), e.g., set input, output, and peak prices for deepseek-v4-flash. To override defaults, add a cost-tracker row to the profile's cordis.patch.yml, addressing it by id (not name). Cross-session bills persist through DSH's storage domain; profiles without a storage backend keep the bill in memory only.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: yflmq001/dsh-cost-tracker. 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