@tomjerrygit/dsh-cost-guard: Token Cost Guard for DeepSeek Harness
@tomjerrygit/dsh-cost-guard is a DeepSeek Harness plugin maintained by TomJerryGit. Operating independently of management console data files, it leverages session projections to deliver token and cost analysis, daily/monthly budgets (with 80% warnings and 100% auto-throttling), throttle mode and model discovery, compaction status, and workspace/session rankings. Install it via `dsh plugin --profile web add @tomjerrygit/dsh-cost-guard`, then configure budgets and throttle models in the Cost Guard sidebar. Requires dsh>=0.2.0-rc.2. MIT licensed.
Read Moredsh-cost-guard: Attach a real-time cost tag to DSH tasks
dsh-cost-guard is a local Cordis plugin bundle maintained by chenzhiyong1994 (MIT, current v5.1.0, categorized under admin-security in the community directory). It converts real token usage from DSH usage events into RMB amounts based on configurable unit prices, displayed in a compact tag below the input box. Clicking reveals token composition and cumulative usage for the current session, and provides statistics by model, Time-of-Use (TOU) pricing, and configuration import/export. The plugin only observes passively; it does not intercept or rewrite Agent execution. The installation method is via local directory installation: first set the path, then run `dsh plugin --profile <profile> add "D:\plugins\dsh-cost-guard"`. After restarting DSH, edit the unit price in **Settings → Cost Monitoring**. The default unit prices are configured based on the official Time-of-Use (TOU) pricing for DeepSeek V4.1 Flash and V4 Pro verified on 2026-10-28. The displayed amounts are only local estimates and are subject to the final supplier invoice. Before installation, review the source code for both the Host and Client components, noting that the DSH Slot it depends on is not a stable public API.
Read Moredsh-cost-guard: DSH Cost Plugin for DeepSeek Pure API
dsh-cost-guard is a DSH cost plugin for DeepSeek API usage, licensed under MIT. It focuses on cost control with distinct responsibilities from routing and persona plugins, providing session cost accounting, cache hit rate statistics, and budget hard caps. Core features include: intercepting new requests via `llm/stream` to stop billing after setting a budget (excluding in-flight requests); providing session-level convergence switches to optimize expression; implementing automatic cost routing based on complexity, peak-valley loads, and budget surplus; and supporting peak-valley awareness and off-peak task queues to leverage idle time for automatic task execution. Additionally, the plugin includes a client monitoring dashboard, multi-level budget scope management, and the `dsh-optab` subpackage (for prefix thinning and output compression). The plugin is zero-dependency and does not touch internal state, aiming to help API-only users with unified cost monitoring.
Read More