跳过主要内容
H

dsh-cost-meter

han-1413141/dsh-cost-meter

会话与当日 API 费用统计、预算图框(已用%)、官方余额、历史看板,支持峰谷计价与官方价格一键同步。

安装

dsh plugin --profile web add github:han-1413141/dsh-cost-meter

README

dsh-cost-meter

Cost tracking and subscription quotas for DeepSeek Harness

version npm monthly downloads GitHub stars MIT license

English | 简体中文

Install · Features · Screenshots · Docs · Community

Track costs and tokens by conversation, model and call. View account balances, subscription quotas and budgets together, with separate API charges and Plan equivalents, multi-provider pricing, peak/off-peak alerts, and configurable sidebar and composer displays.

Whale-themed project illustration
Project illustration

Full conversation view with costs, subscription quotas and account balance

Full conversation view in light or dark mode to match your theme. Screenshots use example data.

Installation

Requires Node.js ≥ 20, DSH 0.2.0 or later, and pnpm available to DSH. See host compatibility.

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

Restart dsh web after installation or updates. Desktop uses its bundled CLI and the desktop profile; follow the Desktop guide.

Windows installer / pinned version

The PowerShell installer checks pnpm and Git and uses the web profile by default:

irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.65/install.ps1 | iex

Install a pinned Git tag:

dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.65

See installation and updates for uninstalling or installing without Git.

Current release v1.9.65: release notes · troubleshooting

Feature overview

  • Conversation and call costs: Cost entries in the composer, header and each turn. Inspect rates, tokens, recorded inputs and tool results, including parent/subagent cost attribution.
  • Statistics and exports: Filter by date, provider and model; inspect trends, rankings, cache hit rates and token heatmaps. Export one or all retained conversations, and view local-model API-equivalent costs separately.
  • Quotas and balances: Codex / ChatGPT, OpenCode Go, MiniMax, Claude, GLM, Kimi, Qianwen, MiMo, OpenDesign and other plans, plus CLIProxyAPI multi-account quotas and custom HTTP balance sources.
  • Multi-provider pricing: Automatic model matching, editable rates and multipliers, and peak/off-peak tiers. Sync DeepSeek official prices and the OpenRouter catalog; separate API charges from Plan equivalents.
  • Budgets and pricing alerts: Daily, monthly, cumulative or custom-date budgets. Peak/off-peak schedules and countdowns, with popup and system notifications before a change.
  • Display and history: Configure sidebar cards, composer entries, quota strips and turn costs. Chinese/English UI, dark themes and mobile layouts; historical imports, retention and storage controls.

See features and screenshots for entry points and model and plan support for providers and credentials.

Screenshots & walkthrough

Cost trends and model rankingConversation cost distribution
Cost trendsConversation treemap
Subscription quotas and balancesDisplay settings and interactive preview
Quotas and balancesDisplay settings

Select an image for full resolution. More views: call details, prices, history, dark themes and mobile.

Documentation

TopicGuides
Setup and useInstall, update and uninstall · Troubleshooting · Display settings
Statistics and billingBilling rules · Statistics and details · Models and plans · Peak schedules
Balances and quotasCredentials · Custom balances · Gateway quotas · Plan estimates
History and storageRetention and cleanup · Repricing · External usage · Ledger recovery
DevelopmentArchitecture and development · Contributing · Host compatibility
ReleasesUpdate history · CHANGELOG

Community

Open an issue with plugin and host versions, reproduction steps and relevant logs. The WeChat group is available for usage questions and feature discussions.

WeChat community QR code

Contributors

Thanks to everyone who contributes reports, ideas, documentation and code.

Contributors

Star History

Star History Chart

License

MIT © 2026 dsh-cost-meter contributors

相关插件