dsh-conversation-cost
Run the following command in DeepSeek Harness:
dsh plugin install Ayaka157/dsh-conversation-cost
Paste the following prompt into your AI chat to install this plugin:
To install this plugin in DeepSeek Harness, run the installation command or clone it directly from its open-source repository at https://github.com/Ayaka157/dsh-conversation-cost.
About this plugin
When using DeepSeek Web chat, it is often difficult to intuitively perceive the token consumption and actual cost of a single conversation. This is especially true for mixed-model sessions or scenarios involving large amounts of cached input, where cost calculations can become vague. This plugin aims to provide DSH Web users with a clear, real-time cost monitoring panel.
Its core strength lies in "precise request-by-request billing." Leveraging the registered costLedger on the host side, it folds each request event with O(1) time complexity, avoiding reliance on estimates or log replays. It not only supports independent display of RMB (¥) and USD ($), but also accurately distinguishes between cache hits and misses for input costs. Additionally, it automatically categorizes requests into Off-peak, Peak, or Idle tiers based on the request time, ensuring every penny is transparent and controllable.
This tool is particularly suitable for developers, researchers, and users who need fine-grained control over API usage. If you frequently switch models or handle long conversations, it helps you quickly understand the cost distribution across different tiers via the hover statistics row, allowing you to optimize prompts and model selection to avoid unnecessary expenses.
Use Cases
- Debugging prompt length and model selection
- Controlling per-conversation API budget
- Analyzing cost distribution under peak-valley pricing
Best For
- Developers needing precise token cost statistics
- Researchers studying cost data to optimize prompts
- Enterprise users concerned with API call costs
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.