dsh-peak-cost-mode: Automatic traffic saving plugin for DeepSeek peak-valley pricing periods
dsh-peak-cost-mode is an open-source DSH web plugin (MIT, author moon09300731) designed for DeepSeek V4 peak-valley pricing: peak output prices on weekdays from 9 AM to 12 PM and 2 PM to 6 PM are double those of off-peak hours. During peak hours, the plugin automatically injects a "Peak Cost Mode" prompt segment, instructing the model to respond in a "caveman" ultra-concise style—discarding pleasantries and hedge words while preserving code, commands, paths, and other technical content word-for-word, without compressing safety warnings. In off-peak hours, users can manually enable active cost-saving mode via the savings report, and the switch persists across peak/off-peak cycles and after restarts. The plugin intercepts every streaming call to estimate savings based on actual output tokens and a compression ratio (default 0.6), converting the savings into CNY and categorizing them into peak and active types. Data persists per wave.
Read More