dsh-cost-meter: A Session Cost Tracking and Quota Display Plugin for DeepSeek Harness
han-1413141/dsh-cost-meter
DSH plugin for session cost tracking and OpenCode Go quota display, with budget, heatmap, and official price sync.
Track session costs, budget, and OpenCode Go quota in real time for DeepSeek Harness, with heatmaps and history to visualize token usage.
dsh plugin --profile web add github:han-1413141/dsh-cost-meter- Category
- Models & Reasoning
- Platform
- DSH-Plugin
- Author
- han-1413141
- Distribution
- Plugin
dsh-cost-meter Key Features
dsh-cost-meter Repository

dsh-cost-meter Repo Summary
dsh-cost-meter is a session cost tracking plugin (DSH plugin) for DeepSeek Harness, maintained by Han-1413141 under the MIT license, last updated in 2026-08. It solves the problem of DeepSeek Harness users lacking visibility into session expenses, budget control, and quota usage. Core capabilities include real-time session cost accumulation, daily cost, official account balance, OpenCode Go subscription quota display, budget and usage percentage, history records, peak/off-peak pricing, one-click official price sync, and a Codex-like 26-week token usage heatmap. The plugin interface supports Simplified Chinese and English, with automatic browser language detection.
What core features does the dsh-cost-meter DSH plugin support?
The plugin offers rich cost and usage visualizations: session cost can be displayed below the input area or in the session title bar, showing real-time accumulated input/cache/output tokens; official balance appears at the top of the sidebar or in settings, with auto and manual refresh; OpenCode Go quota supports three tiers (rolling 5 hours, week, month) with usage percentage and reset time, each independently toggleable, with automatic API key discovery (DSH credential store, environment variables, or opencode login state); the budget box shows budget, used percentage, progress bar, today's cost and percentage of budget, with warnings at ≥80% and over-budget at ≥100%; the settings page provides summary cards, today's session details, daily aggregated history (default 180 days), a price table (base/off-peak/peak per model), and official price sync.
How to install dsh-cost-meter?
Run the following command to install the plugin, which takes effect immediately in the DeepSeek Harness interface:
dsh plugin --profile web add github:han-1413141/dsh-cost-meter
After installation, you can configure budget, price table, display language, etc., in the settings page; all configurations are saved automatically.
Which DeepSeek Harness versions and platforms are compatible with dsh-cost-meter?
As an officially recognized DSH plugin (package.json includes the dsh.bundle manifest), it depends on @deepseek-ai/dsh-credentials and @deepseek-ai/dsh-home-paths, and works with the DeepSeek Harness web interface. The plugin interface supports Simplified Chinese, English, and browser-following (auto-detects zh* as Chinese, otherwise English), with server messages (balance queries, price sync, etc.) matching the interface language.
How to configure budget and pricing in dsh-cost-meter?
At the top of the settings page, you can set budget amount, period (today/month/cumulative/custom date range), and used percentage; the price table supports base/off-peak/peak prices per model, freely editable, with one-click sync from the official DeepSeek pricing page. Peak/off-peak pricing includes effective time gating and current tier status; the AI price sync prompt allows any AI to autonomously sync multi-model, time-based prices.
How do token usage statistics and history records work in dsh-cost-meter?
The Token Usage Statistics section in settings shows historical cumulative token totals (input/cache/output/calls) and draws a Codex-like 26-week daily usage grid heatmap, with hover details; Today's Sessions lists each session's call count and token breakdown; History is aggregated by day, with configurable retention days (default 180).