DSH Marketplace

dsh-cost-meter

Han-1413141/dsh-cost-meter

Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.

33335JavaScriptMITSource

Install

Add dsh-cost-meter to DeepSeek Harness

via npm

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

via GitHub · npm package

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

What happened when we ran it

Installed cleanly when we ran it

Every command here is run in a throwaway container against a clean profile, and the result is whatever the harness recorded — not a guess from the source. Last run 13d ago.

Show it in your README

install verified — dshmarketplace

For maintainers: the badge serves this listing's latest sandbox verdict, so a re-run updates it on its own — and it links readers to the full result here.

Due diligence

Before you install dsh-cost-meter

  • Source of record: Han-1413141/dsh-cost-meter — present in the community registry that DSH's own plugin market installs from.
  • Licensed under MIT.
  • Detected: terminal surface. Read the source before granting these.
  • A listing here is not a security review. Plugins run with your agent's permissions.

The AI take

What it is — DeepSeek Harness session and daily API cost tracking plugin, displaying official balance, budget usage %, and history dashboard.

Who it is for — When using DeepSeek Harness for session tasks that require monitoring official balance and budget usage percentage, it fits. Users not using official price can choose not to install it, because it emphasizes official price synchronization.

Watch out — No obvious issues found. Sandbox test: successfully installed and registered in a new profile. Static checks found no problems.

The verdict — I would install it because it can provide one-click official price synchronization, but the premise is using official channels.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.

What dsh-cost-meter does

Token streams pass through pricing channels into layered cost ledgers, balance rings and a calendar grid.

dsh-cost-meter is a DeepSeek Harness plugin that records API usage and turns it into per-session, daily and historical cost views. It shows input, cached and output token counts, calculates charges by provider and model, and can display budgets, usage percentages, official account balance, OpenCode Go allowance and supported coding-plan quotas.

The plugin reads session usage and model/provider information from the harness, then applies its configurable price table. Prices can have separate peak and off-peak rates; the documented UTC peak windows are 01:00–04:00 and 06:00–10:00. It keeps daily and session history, saves configuration automatically, and exposes controls in the DSH settings page. Official balance, plan quotas and price synchronisation use the relevant official endpoints. OpenCode Go credentials can come from the DSH credential store key OPENCODE_GO_API_KEY, the environment variable of the same name, an opencode login state, or manual entry. The settings also expose the gates peakNotice, peakEnabled, peakEffectiveAt and peakWindows.

This is for developers who need cost attribution, budget warnings or usage history inside the DSH web interface. It is not a useful addition when only raw token counts are required, or when the DSH web profile and its supported provider credentials are unavailable. It also depends on Node.js 20 or newer and a DSH version with dsh plugin support. The plugin has no detected risk flags, but balance, quota and price features send credentials or requests to official provider endpoints.

dsh-cost-meter documentation

How it behaves

dsh-cost-meter presents cost information in the session view, sidebar and settings page. A session badge can appear below the input area or in the session title bar. The sidebar can show today’s cost, official balance and a budget card. The settings page includes today, monthly and cumulative totals, per-session details, daily history, a 26-week token heatmap and a configurable history-retention period. The documented default is 180 days.

Billing is separated by provider and model and can include input, output, cached and reasoning tokens. Unknown model IDs can be normalised and matched against the price table; this matching can be disabled in favour of exact matching. Prices are expressed in USD per 1M tokens, with input/output shorthand supported.

Configuration

Settings are edited in the DSH interface and are saved automatically. Documented controls include:

  • budget amount and period: today, month, cumulative, or a custom date range;
  • peak/off-peak prices and the UTC peak windows 01:00–04:00 and 06:00–10:00;
  • the display gates peakNotice, peakEnabled, peakEffectiveAt and peakWindows;
  • OpenCode Go display period, independently switchable 5-hour, weekly and monthly views;
  • interface language: Simplified Chinese, English or browser-following mode.

The default OpenCode Go primary view is the rolling 5-hour allowance. The built-in reference catalogue can be mounted into billing, then edited.

Credentials and synchronisation

OpenCode Go can discover OPENCODE_GO_API_KEY from the DSH credential store, the environment, or an opencode login state. A key may also be entered manually. Coding-plan integrations have separate switches and keys; the README states that credentials are sent only to official endpoints. Official price synchronisation fetches and parses the provider’s pricing page before applying the result.

Requirements

The README requires Node.js ≥ 20 and DeepSeek Harness with the dsh plugin command. After installation or an update, restart the web interface with dsh web so the plugin and client bundle are rescanned.

Written from the project's own documentation and kept in sync with it. Where the two disagree, the source is authoritative — read the README on GitHub

Same category

Alternatives to dsh-cost-meter

dsh-context

bowenliang123

1.5k

DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.

Installed cleanly when we ran it

npm packageTypeScript6d ago

AI review

dsh-context

What it is — dsh-context provides a context insight panel, /context command, and context browser for managing context composition, evolution trends, and events.

Who it is for — Users analyzing context composition and evolution in DeepSeek Harness sessions can use this plugin. Those preferring a simple chat interface without extra insights do not need it.

Watch out — Sandbox testing passed with no obvious issues. Token statistics align with official token-meter projections.

The verdict — You will install it because it offers detailed tracking of context events, which is valuable when your sessions include tool calls.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
Details
237

Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.

Installed cleanly when we ran it

npm packageJavaScriptyesterday

AI review

dsh-damage-pulse

What it is — dsh-damage-pulse is a DeepSeek Harness plugin. It records DeepSeek token usage, per-call and session costs, and presents them in the DSH Web UI with cache-aware charge animations.

Who it is for — If you run long multi-turn conversations in DeepSeek Harness and need to track token consumption plus account balance at single-call, session and global levels, it fits. Users who do not care about token balance or want to skip the whale-girl feedback can skip it, because they may stick to the default Harness interface.

Watch out — It installs via npm. Static analysis shows it executes shell commands. Sandbox test passed: it installs cleanly in a fresh profile and registers into the profile. No obvious issues found.

The verdict — I would install it because it keeps a persistent ledger for token usage and animates charges via the whale-girl character, but only if I need cache-aware per-call cost tracking.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
1Source
202

Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.

Installed cleanly when we ran it

npm packageJavaScript17d ago

AI review

TokenLedger

What it is — TokenLedger is a sidebar panel for attributing token usage to the relay sites serving requests, based on provider configurations.

Who it is for — If you need to track token usage distribution across multiple relay sites in DeepSeek Harness, this plugin would be suitable because it automatically discovers site attribution from existing configs. If your needs focus on token balance monitoring for a single provider without breakdowns, you might not need it.

Watch out — Sandbox testing passed in a fresh profile. Static checks indicate it will execute shell commands. No obvious issues found.

The verdict — If I were using it for token accounting across relays, I would install it because it reads from existing configurations without extra setup.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
1Source

dsh-usage-stats

Ychris12138

163

Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.

Installed cleanly when we ran it

npm packageJavaScript6d ago

AI review

dsh-usage-stats

What it is — dsh-usage-stats provides multi-provider account monitoring and token usage analytics for the DeepSeek Harness web GUI.

Who it is for — When using DeepSeek Harness web profile for multi-provider token usage analysis and account balance monitoring, it is suitable to install. If a user only needs to analyze token usage for a single provider without cross-provider data aggregation, they can monitor using other methods.

Watch out — Requires providing API key or token to fetch account data. Sandbox testing passed: installed in a fresh profile and registered by Harness. Will execute shell commands.

The verdict — If multi-provider token usage and balance analysis is needed, I would install it because it offers fee estimation and budget alerts, but the premise is that credentials are provided.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
2Details
124

Personal center for DeepSeek Harness: cross-session usage statistics, per-model cost estimation, global custom instructions, a global font-size adjuster, a data-driven desktop pet with bitmap & vector skins, and a conversation status overview, all local and offline.

Installed cleanly when we ran it

npm packageJavaScript24d ago

AI review

dsh-personal-center

What it is — DeepSeek Harness plugin adds a personal configuration section with token usage statistics, personalized custom instructions and a desktop pet.

Who it is for — If you need to view token usage and model distribution in DeepSeek Harness, then this plugin is suitable for you. If you do not use the workspace instruction feature in DeepSeek Harness, then you do not need to install it.

Watch out — Sandbox testing passed. It was installed and registered in a new profile. No obvious issues found.

The verdict — I would install it because it provides model cost estimation and a usage-driven desktop pet, but only if token usage tracking is needed.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
Source

dsh-usage

Aisland-SJL

107

🌊 Persistent dock & fully-customizable balance/usage panel for DeepSeek Harness — activity heatmap, dual-channel comparison, local-only & privacy-first

Installed cleanly when we ran it

GitHub sourceJavaScript1mo ago

AI review

dsh-usage

What it is — It provides a persistent dock, token usage panel, and activity heatmap.

Who it is for — When managing token usage in DeepSeek Harness web profile, if you need real-time balance monitoring and custom interface layout, this plugin fits. If you only need simple statistics without cross-channel comparison, you can skip installing it.

Watch out — Sandbox test passed: installed in fresh profile and registered by harness. The plugin runs locally only with credentials not exposed. No obvious issues found.

The verdict — I would install it because it integrates multiple widgets into a single persistent dock, but the premise is that the profile version matches.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
1Source