AI Agent Hub
Back to plugins
🧩

dsh-billing

admin-security Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install mahiro6/dsh-billing

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install mahiro6/dsh-billing in your DeepSeek Harness terminal to install the plugin (source at https://github.com/mahiro6/dsh-billing), then restart dsh web to activate it.

About this plugin

When you route model calls through DeepSeek Harness, spending is often a black box. You cannot quickly tell how much a single call cost, what your daily total looks like, or how much balance remains on your official account. dsh-billing pulls all of those numbers into a single persistent local ledger so you can see every dollar without leaving your workspace.

The plugin focuses on precision and zero-maintenance automation. Every call's usage block is split into cache-hit input, cache-miss input, and output, each priced by the applicable tier including peak and off-peak windows. The official balance is fetched with the same API key and auto-refreshed on a configurable interval, visible in both the sidebar and the settings panel. A budget progress bar lets you set an amount and a period (day, month, all-time, or a custom range) with warnings at 80% and 100%—alerts only, never blocking calls. Summary cards on the settings page show today's, this month's, and all-time cost, call counts, and token breakdowns, alongside per-session detail and daily history retained for 180 days by default. The price table syncs automatically from the official pricing page on every startup and falls back to cached values with a warning if the fetch fails, so there is no manual upkeep to worry about.

If you call DeepSeek APIs frequently, need cost auditing, or want to take advantage of off-peak windows to reduce spend, this plugin is worth installing. The UI is bilingual in Chinese and English, the ledger is a plain local JSON file you can wipe at any time, and there are no external service dependencies. Install it, restart the harness, and it is ready to work.

Use Cases

  • Track daily accumulated cost and check the official account balance at a glance
  • Optimize call scheduling around peak and off-peak windows to reduce spend
  • Audit per-session token usage and cost breakdowns

Best For

  • Developers who call DeepSeek APIs frequently and need cost auditing
  • Teams looking to reduce API spend by scheduling around off-peak windows
  • Users who want a central view of balance and expenses inside DeepSeek Harness