DeepSeek Harness (DSH) provides powerful model orchestration capabilities, but in actual model switching, different providers (such as DeepSeek, Ollama, and Z.ai) often have independent billing rules and time zones. Developers need to manually check the current rate in the model selector, which is error-prone and inefficient. The dsh-peakrate plugin directly embeds real-time rate information into the model selector and the composer tool row, addressing the pain point of “not knowing what switching to the current model will cost.”

dsh-peakrate is a DeepSeek Harness plugin maintained by log-li under the MIT license. It provides real-time rate badges (peak/off-peak/campaign) broken down by provider and model for the model selector and composer tool row.

Core Features

  • Independent time-zone evaluation per provider: The plugin calculates based on each provider’s IANA time zone rather than defaulting to DeepSeek’s time.
  • Three rate states: Supports peak (standard rate), offPeak (discounted rate), and campaign (limited-time promotion), where campaign state takes precedence over normal periods.
  • Switching countdown: Displays not only the current rate but also the countdown to the next switch (e.g., 2d 7h) and the state after the switch.
  • Theme-aware hover cards: Renders detail cards on the page instead of native system tooltips, supports keyboard navigation, and colors follow the DSH theme.
  • Coverage panel: Provides coverage checks on the plugin settings page, showing which provider-model combinations are unmatched and marking configuration errors with warnings.
  • Live catalog: Automatically refreshes the shared catalog every 24 hours, updating data without a rebuild.
  • Zero runtime dependencies: Uses native Date and Intl.DateTimeFormat for time calculations.
  • Design-token styling: Uses DSH’s --dsw-* tokens and adapts to light and dark themes.
  • Bilingual support: Switches between Chinese and English according to the DSH language setting.

Install and Enable

  1. Ensure pnpm is included in the system PATH, because dsh plugin is a thin wrapper that invokes pnpm.
  2. Run the install command (--profile is usually web):
    dsh plugin --profile web add dsh-peakrate
  1. Restart dsh web to apply the changes. The plugin will display the coverage panel on the “Plugins” page in the sidebar.

Typical Usage

  • View real-time rates for each line in the model selector and compare the current cost across different providers.
  • View the current model and countdown in the composer tool row.
  • Use npm run audit to check unmatched provider combinations.

Notes

  • This plugin replaces the official model selector and takes over the conversation.input.model slot.
  • The coverage panel appears on the “Plugins” page in the sidebar only after restarting dsh web.
  • If future DSH versions refactor the selector, this plugin may need to be re-ported.

Summary

dsh-peakrate helps developers make more cost-effective model choices by providing visualized real-time rate data. Its design follows the principles of “zero runtime dependencies” and “theme awareness,” integrating seamlessly with the DSH ecosystem.

Catalog page | Source code