mikasaxin529/dsh-nightshift ↗★ 0
dsh-nightshift
dsh third-party plugin: queue during peak hours, drain off-peak, report the savings.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mikasaxin529/dsh-nightshift说明文档
阅读完整 README ↗Configuration
All keys live under the nightshift entry in your loader config (defaults shown):
| key | default | meaning |
|---|---|---|
timeZone | Asia/Shanghai | IANA zone the windows are interpreted in |
peakWindows | 09:00–12:00, 14:00–18:00 | [start, end) wall-clock windows; may cross midnight; [] = never peak |
peakPricePerMTok | 2 | price per million tokens during peak (fill your real number) |
offPeakPricePerMTok | 1 | price per million tokens off-peak |
currency | ¥ | display only |
tickMs | 30000 | window-check / dispatch tick |
maxRetries | 3 | retries for error/interrupted turns |
retryBaseMs / retryFactor / retryMaxMs | 60000 / 2 / 1800000 | exponential backoff base, factor, ceiling |
continuationLimit | 3 | auto-「继续」sends per task on max-tokens |
continuationPrompt | 继续 | the continuation prompt text |
drainGapMs | 5000 | pause between dispatches |
allowRunNow | true | whether the panel's run-now button is honored |
reportRetentionDays | 30 | report pruning |
exposeTool | false | reserved for v1.1 (nightshift_enqueue tool) |