← DeepSeek Harness Plugins
DeepSeek Harness PluginManifest Valid

dsh-cost

Tracks per-turn token usage, cache hit rates, estimated peak/off-peak costs, and DeepSeek API balance.

VisionDeveloper Tools
1GitHub Stars0ForksUpdated2026-09-11

Install

$ dsh plugin --profile web add github:zydg/dsh-cost

Plugin Overview & Capabilities

AI-assisted organization based on the public repository snapshot. The content must be grounded in source evidence and does not replace compatibility or security verification.

source-grounded
dsh-cost is a DeepSeek Harness plugin that appends a real-time summary line at the end of every conversation turn. It calculates token consumption (input, cache hits, output, reasoning), cache hit rates, and estimated costs based on DeepSeek's official peak and off-peak pricing schedules, while querying and displaying real-time API balance snapshots.

Key Capabilities

  • Appends a turn-tail summary line displaying token counts, cache hit rate, time period, estimated cost, and account balance
  • Calculates costs using official DeepSeek peak and off-peak rate schedules with custom peak window configuration
  • Queries real-time DeepSeek API balance via the official user balance endpoint and triggers low-balance warnings
  • Automatically syncs and caches the official DeepSeek model catalog from the API
  • Supports customizable pricing tables, model mappings, and currency units (CNY/USD)
  • Persists turn usage history, balance snapshots, and exports records to CSV or JSON formats

Useful For

  • Monitoring token consumption and cache efficiency during interactive development sessions
  • Tracking API cost estimates during peak versus off-peak hours
  • Keeping track of remaining DeepSeek account balance to prevent sudden exhaustion
  • Auditing and exporting historical LLM usage and conversation metrics

Who It Fits

  • DeepSeek Harness developers and power users seeking visibility into token usage and costs
  • Team leads managing DeepSeek API billing and usage allocation

Documented Limitations

  • Balance query requires a configured DEEPSEEK_API_KEY in Harness credentials
  • Cost calculations are client/host side estimates and may differ slightly from official billing logs
  • Designed primarily for DeepSeek models; other provider pricing models are not preconfigured

DSH Compatibility

Version-specific runtime evidence collected by DSH Plugin. A missing result means we have not tested that combination yet.

Not tested yetNo runtime compatibility tests have been published yet.

Security Signals

Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.

Dependency Counts

package.json declares 0 runtime, 0 development, 1 peer, and 0 optional dependencies.

info
Dsh Bundle Declared

package.json declares DSH bundle metadata.

info
License Declared

GitHub reports the repository license as MIT.

info
Package Manifest Available

A root package.json was captured and can be inspected by the registry.

info
Source Available

Public GitHub source metadata is available for this registry snapshot.

info

Source & Registry Notes

Public provenance, Registry classification, and the latest source check for this entry, kept separate from runtime verification.

Source repository
zydg/dsh-cost
Registry source
GitHub · dsh-plugin topic
Registry classification
Plugin
Source checked
08077e4 · 2026-09-13

This project is independently indexed from public source information. DSH Plugin is not affiliated with DeepSeek or the plugin author. Always check the author repository before installation.

Repository Activity

GitHub stars
1GitHub stars
Forks
0
Open issues
0
Last commit
2026-09-11
Last release
No release detected
For maintainers

Maintaining this plugin?

This listing is generated from public repository data. If you maintain this project, you can review the information and share this listing with your users if you find it useful.

Add to README
Listed on DSHPlugin.app