mikasaxin529/dsh-nightshift ↗★ 0
dsh-nightshift
DSH 第三方插件,支持在高峰时段进行任务排队、在非高峰时段自动消耗执行,并报告节省的费用。
AI 分析
核心用途是通过错峰执行任务来降低 API 消耗成本。适合有大量非紧急任务、希望利用非高峰期低价 token 节省开支的用户。
安裝
$
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) |