dsh-cost-meter: A Session Cost Meter Plugin for DeepSeek Harness
han-1413141/dsh-cost-meter
A DSH plugin for session cost metering: real-time session/daily cost, budget, balance, Coding Plan quota, peak/off-peak pricing alerts, and Codex-like token heatmap, with bilingual UI.
dsh-cost-meter is a session cost meter plugin built for DeepSeek Harness, turning token usage into clear, actionable cost data. It tracks session and daily costs in real time, shows budget progress, official and custom provider balances, OpenCode Go and multiple Coding Plan quotas, and supports peak/off-peak pricing alerts with history. It includes a built-in price catalog of 90+ models, one-click official price sync, and a Codex-like 26-week usage heatmap. On install it automatically imports historical sessions, and the UI is bilingual, ideal for DSH users who want fine-grained control over AI call costs.
How to Install
dsh plugin --profile web add dsh-cost-meterReplace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.
- Category
- Models & Reasoning
- Platform
- DSH Plugin
- Author
- han-1413141
- Distribution
- Plugin
dsh-cost-meter Key Features
dsh-cost-meter Repo Summary
What Does It Do?
dsh-cost-meter is a DSH plugin for DeepSeek Harness that turns token usage into actionable cost data. It solves the problem of not knowing how much each session, day, or month costs, letting you view session cost, daily cost, budget progress, official and custom provider balances, OpenCode Go quota, and multiple Coding Plan quotas directly inside the harness, with peak/off-peak pricing alerts and history.
Core Features
- Real-time cost tracking: session cost, daily cost, and daily-aggregated history with configurable retention (default 180 days).
- Multi-source balance and quota: official account balance, custom provider balance (configurable HTTP endpoint), OpenCode Go subscription quota, and Coding Plan quotas from 9 vendors (Anthropic, Z.ai, MiniMax, Kimi, OpenRouter, SiliconFlow, CommandCode, SCNet, Volcano Ark).
- Peak/off-peak pricing and alerts: shows UTC peak hours (01:00–04:00, 06:00–10:00), all-weekend off-peak pricing, with pre-switch popup and system notifications, configurable position and lead time.
- Budget and usage bar: a horizontal row of chips above the input showing budget used %, Go and Coding Plan usage windows; click any chip to refresh the corresponding data source.
- Price catalog and sync: built-in 90+ model price catalog, one-click official price sync (USD/CNY), and per-provider+model billing isolation.
- History backfill and heatmap: automatically replays host session logs on first start to import pre-install costs, and provides a Codex-like 26-week daily usage heatmap.
How to Use This Plugin?
After enabling it in DSH, the plugin automatically shows cost and quota data in the sidebar, below the input area, and on the settings page. You can click the balance/quota cards in the sidebar to refresh immediately, or configure budget period, price table, peak/off-peak alerts, and UI language (Chinese/English/follow browser) in settings. On first launch it automatically imports historical sessions before installation; to adjust behavior, change the corresponding settings in the settings page.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: han-1413141/dsh-cost-meter. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
DSH Plugin FAQ
