Niobium-41-nb/dsh-model-scheduler
dsh-model-scheduler makes the DSH model picker searchable and adds peak/off-peak automatic switching: assign one model per tariff period and a host timer re-checks every 30 seconds, updating the default model and every attached non-subagent session at each boundary.
dsh-model-scheduler adds two things to the DSH Web UI. First, the composer's model selector becomes searchable by name or ID, which matters when a deployment exposes many models. Second, it automates the peak/off-peak model choice: you assign one model for peak hours and another for off-peak, and the plugin switches between them at period boundaries for every open session's next request and for the saved default used by new sessions. That maps directly onto DeepSeek's tariff structure, where peak pricing is double off-peak, so a cheaper model can serve the expensive window while the stronger model runs when tokens are half price - without anyone remembering to flip the selector twice a day. The schedule panel lives in a conversation.input.right slot and the period engine is a pure module (lib/period.js) supporting IANA time zones, weekday windows and midnight-crossing windows.
Install
dsh plugin --profile web add github:Niobium-41-nb/dsh-model-schedulerCopied verbatim from the README's install block. The README notes the built bundle is committed to the repository, so no build step is required on the user side. No npm install form is documented in that block; the npm name dsh-model-scheduler exists but this page ships the documented GitHub route.
Compatibility
The schedule is evaluated in Asia/Shanghai by default and is configurable; the default windows are peak Monday-Friday 09:00-12:00 and 14:00-18:00 Beijing time, off-peak everything else including all weekend. A host timer re-checks every 30 seconds, and on a boundary it updates agentDefaultModel for new sessions and sends a model/selection session event to every attached non-subagent session so that session's next request uses the period model. Editing the schedule in the GUI applies immediately rather than on the next tick, startup only records a baseline and overrides nothing, and models are validated against the deployment's LLM route resolution before being applied - an unavailable route logs a warning and is skipped. Restart dsh web (or reload the profile) and refresh the browser after installing.
Details
- Repo: Niobium-41-nb/dsh-model-scheduler
- Category: Models & Providers
- Stars: 0
- Version: GitHub repo Niobium-41-nb/dsh-model-scheduler (0*); installed from GitHub as documented (the bundle is committed, so git installs need no prepare script or allowBuilds). MIT licensed; JavaScript; created 2026-09-14. English README with a README.zh.md Chinese translation.
- Last push: 2026-09-14
- First seen: 2026-09-14
Alternatives
1624318455/dsh-plugin-adapter · aa2246740/dsh-antigravity-oauth · AmmarByFar/dsh-trustedrouter