Back to directory

dsh-cost-meter

Curated pickMaintenance: Active

han-1413141/dsh-cost-meter

DeepSeek Harness session cost meter plugin: session/daily cost, budget, history, OpenCode Go quota, official & custom-provider balance, Codex-like token heatmap, peak/off-peak pricing with pre-switch popup & system-notification alerts, official price sync, 90+ model pricing catalog, Coding Plan quota queries (7 vendors), bilingual zh/en UI

View on GitHub
$ dsh plugin --profile web add dsh-cost-meter

287

stars

25

forks

JavaScript

Language

MIT

License

2026-08-13

Created

2026-09-11

Last push

A native DSH plugin that surfaces session/daily cost, budgets, official + custom-provider balances and token heatmaps inside the DeepSeek Harness UI. Install via `dsh plugin --profile web add dsh-cost-meter`; restart dsh web. Requires Node.js ≥ 20.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-08-23

License

MIT

01What can it help you accomplish?

  • Track DeepSeek Harness session and daily API cost, budget and official balance in the UI

    Per-session and daily cost badges, budget %, official/custom-provider balance bars, a 26-week token-usage heatmap, and a history ledger — all in the sidebar and settings

    DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking

02How to install into DeepSeek Harness

Prerequisites

  • Node.js ≥ 20
  • DeepSeek Harness with the `dsh plugin` command (`npm install -g @deepseek-ai/dsh`)

Installation steps

  1. 01

    Run `dsh plugin --profile web add dsh-cost-meter` (or pin a tag: `dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.5.41`)

    $ dsh plugin --profile web add dsh-cost-meter

  2. 02

    Restart `dsh web` for the plugin rows, Typert manifest and client bundle to be scanned at startup

    $ dsh web

Verify the integration

Not specified by the author

Rollback

  • Uninstall with `dsh plugin --profile web remove dsh-cost-meter`.

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH plugin (web profile) that shows session/daily cost, budgets, balances and token usage inside the DeepSeek Harness UI.

  • Cost & balance dashboard

    DSH session usage (input/cache/output tokens)Per-session and daily cost, budget %, official balance (3-segment bar), custom-provider balance via configurable HTTP

    Balance queries go only to the official domain (api.deepseek.com); the API key is never sent to non-official baseURLs
  • Peak/off-peak pricing + alerts

    Real-time usage timestampsPeak windows (UTC 01:00–04:00, 06:00–10:00) with popup + system-notification alerts before switching; weekend all-off-peak rule from 2026-08-23

    Budget and overspend alerts only notify; they do not block calls
  • Multi-vendor billing

    provider+model usage across OpenAI/Anthropic/Gemini/Mistral etc.Per-provider/per-model isolated billing with a 90+ model price catalog and auto-matching; 8 Coding Plan quota queries

    Price sync can overwrite official same-name model prices; custom model entries are unaffected

04Who is it for? When not to use it?

Good for

  • DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking

Not for

  • Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.

05Compatibility, maintenance and safety notes

  • After installing or updating the plugin you must restart `dsh web` for the plugin rows, Typert manifest and client bundle to load.
  • Balance queries require network access to api.deepseek.com and a valid API key; the key is only ever sent to the official domain, and requests to a non-official baseURL are refused for balance.
  • Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.
2026-08-132026-08-22v1.5.41

MIT · 由 facts pack 抓取(README 分支 master)

06Frequently asked questions

How do I install dsh-cost-meter?

Run `dsh plugin --profile web add dsh-cost-meter` (or pin a release tag), then restart `dsh web`. The plugin rows and client bundle are scanned at startup.

Where does my API key go?

Balance queries go only to the official domain (api.deepseek.com) using the same API key as model requests. If baseURL points to a non-official domain, balance queries are refused; model requests are unaffected.

What is peak/off-peak pricing?

From 2026-08, peak windows are UTC 01:00–04:00 and 06:00–10:00 (peak price); the rest is off-peak at half price. From 2026-08-23 weekends are all off-peak. The plugin pops up and can send a system notification before a switch.

Does it block calls when I go over budget?

No. Budget and overspend prompts only notify you; they do not prevent the model call.

08Data and sources

  • Author-claimedgithub.com6221646c8c5a…

    DeepSeek Harness 会话费用统计插件(界面中英双语)

  • Author-claimedgithub.com6221646c8c5a…

    dsh plugin --profile web add dsh-cost-meter

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-08-23. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.