Preface¶
When engaging in prolonged conversations within DeepSeek Harness (DSH), model invocations are billed according to officially announced peak and off-peak time periods: peak (PEAK) and off-peak (OFF-PEAK) have different unit prices. If you want to write content during peak hours and automatically send it during off-peak hours to control costs, manually monitoring the clock is unrealistic. The community plugin dsh-priceflow (maintainer williamzhangww) is designed for the DSH conversation interface, displaying official peak/off-peak status and countdown timers, and providing a “off-peak queued sending” capability during peak hours; it is categorized as a workflow plugin. This article is compiled based on the GitHub repository README and package declarations to help you verify capabilities and limitations before installation.
What is this¶
dsh-priceflow is an npm plugin package for DSH (current version 0.2.2 in the available documentation, license MIT). It adds a status panel and explicit off-peak-related operations to the DSH conversation input area: displaying the current PEAK or OFF-PEAK status, countdown to the next switch, official USD pricing, and CNY pricing from the official Chinese page (CNY is displayed only, not converted from USD, and does not drive scheduling strategies). During PEAK periods, text messages can be queued for delivery during OFF-PEAK; during OFF-PEAK, regular sending still follows DSH’s standard paradigm. When DSH credentials are available, DeepSeek account balance can also be displayed.
Core Features¶
Peak/Off-Peak Phases and Countdown¶
PriceFlow displays PEAK / OFF-PEAK status and the remaining time until the next switch based on DeepSeek’s official pricing schedule. The phase is determined by the Host-side pricing engine; the Client does not calculate or switch phases locally on its own.
USD and CNY Pricing Display¶
USD pricing comes from the DeepSeek official pricing page; CNY pricing comes from the official Chinese pricing page. Pricing data is validated before use; if refresh fails, it can continue displaying based on the Last Known Good (LKG) strategy and provide a stale data warning. Built-in pricing fixtures are for reference only and cannot be used as a basis for scheduling. When a model’s price is unknown, the display may be unavailable, but peak/off-peak detection can still continue.
Off-Peak Queued Sending¶
During PEAK periods, plain text can be added to the queue through PriceFlow operations for delivery during OFF-PEAK. Attachments are not supported. Queue data is retained after Host restarts; the default queue file path is %DSH_HOME%\priceflow\queue.json (as written in the original documentation; the actual directory depends on the local DSH_HOME).
Delivery uses a durable, at-least-once architecture: retries may occur after interruption; messages are rejected when the send API is missing, the API returns an error, or the response does not meet the accepted: true convention, and the message is retained and not marked as committed. Retryable failures use bounded backoff with a limited number of attempts. submitted means DSH has accepted the submission, not that the model has completed its response; overall exactly-once semantics are not guaranteed.
Holidays and Scheduling¶
Mainland China statutory holidays are not counted in the workday PEAK schedule; weekends are OFF-PEAK, including adjusted make-up workday weekends. If the required holiday calendar coverage is missing, automatic scheduling will fail closed.
Account Balance¶
When DSH credentials are available, balance can be requested from the DeepSeek balance API; balance failures do not affect pricing, phase detection, or queue scheduling. API keys are parsed and used on the Host side; PriceFlow does not send raw keys to the Client. Balance values are kept in memory; the plugin documentation states that balance is not intentionally persisted or logged, and no additional telemetry is added.
Environment and Compatibility¶
Before installation and running, please confirm:
- Node.js 20 or higher
- DeepSeek Harness version range:
>=0.2.0-rc.1and<0.3.0-0(including DSH pre-release versions)
The README states it has been tested on DSH 0.2.0-rc.1 and 0.2.0-rc.2; other 0.2.x versions within the range have not been individually API-verified, and Host/Client API changes may require plugin updates. The compatibility notes also emphasize that independent version verification is primarily for the two RC releases mentioned above.
Installation and Activation¶
In the terminal, install the npm package to the target DSH profile:
dsh plugin --profile <profile> add dsh-priceflow
Replace <profile> with your DSH profile name. The declared DSH version upper bound is below 0.3.0, and no version exemption is used in the documentation. If using a DSH Desktop build that exposes an in-app Plugins page, you can also install the same package to the Desktop profile from that page.
The DSH ecosystem adopts an “everything is a plugin” approach; the community catalog SkillHub Plugin Page is an independent site with no official affiliation with DeepSeek / High-Flyer, and should not be equated with an official app store.
Typical Usage¶
After installation and activation, the PriceFlow status panel and related operations are available in the DSH conversation interface, requiring no additional configuration files (no other required configuration items are listed in the documentation).
- View peak/off-peak and prices: The panel displays the current PEAK/OFF-PEAK status, countdown, and official USD/CNY unit prices (subject to the official pages).
- Write during peak, send during off-peak: During the PEAK period, edit text and use the off-peak queue action provided by PriceFlow; after entering OFF-PEAK, delivery is performed by the scheduler. If immediate conversation is needed during OFF-PEAK, simply use DSH’s regular sending.
- Balance (optional): After configuring DSH credentials, the interface can display account balance; this is independent of queuing and pricing.
Queued content consists of locally stored delayed text and metadata (including the target session ID), used to restore the queue after restart.
Use Cases and Notes¶
Suitable for: Users who develop or converse in DSH long-term, want to control costs based on official peak/off-peak pricing, and can pre-queue text during peak hours for sending during off-peak hours.
Important notes:
- The plugin runs with the current DSH process permissions; before installation, please read the source code and the MIT license to assess the trust boundary yourself.
- The delayed queue is text only; do not rely on attachments or exactly-once delivery semantics.
- Automatic scheduling depends on verified pricing strategies; scheduling may close if the holiday calendar is missing.
- Independently verified DSH versions are primarily
0.2.0-rc.1and0.2.0-rc.2; please check theengines.dshrange and README limitations before upgrading DSH.
References¶
- Community catalog: williamzhangww/dsh-priceflow
- Source code and Chinese README: GitHub — williamzhangww/dsh-priceflow
dsh-priceflow integrates official DeepSeek peak/off-peak pricing, countdown timers, and off-peak text queuing into the DSH conversation workflow; if your use case fits the constraints above, you can install it per profile and operate directly from the panel.