dsh-peakrate
Peak / off-peak rate badges and switch countdown for DeepSeek Harness — per provider, per model, in the model selector and the composer tool row. Judges each provider by its own time zone and schedule instead of DeepSeek-only hours.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:log-li/dsh-peakrate说明文档
阅读完整 README ↗Configuration
Configuration lives in the profile's cordis.patch.yml:
- id: peakrate
config:
# provider id → catalog provider name
providerAliases:
my-gateway: DeepSeek
# provider-scoped model patterns; first match wins
modelMappings:
- provider: my-gateway
match: "^deepseek-v4"
profile: deepseek-v4
- provider: my-gateway
match: "glm-5\\.3-flash"
matchIsRegex: true
profile: zai-glm-5-3-flash
# fetch interval; 0 disables the background refresh
refreshIntervalHours: 24
catalogUrl: https://offpeakclock.com/pricing.json
cachePath: ~/.dsh/peakrate/pricing.json
| Option | Default | Description |
|---|---|---|
enabled | true | Background refresh switch. Also editable in the coverage panel. |
refreshIntervalHours | 24 | Hours between catalog refreshes. 0 disables it. Also editable in the panel. |
catalogUrl | the public catalog | Remote catalog URL. |
cachePath | ~/.dsh/peakrate/pricing.json | On-disk cache of the last successful fetch. |
providerAliases | built-in table | Extra provider id → catalog provider mappings. Yours win over the built-ins. |
modelMappings | built-in table | Extra provider + model pattern → profile mappings. Yours are tried first. |
customProfiles | [] | Additional profiles: override a bundled entry by id, or add a new one. They take part in badge judgement too. |
modelMappings entries are prefix matches by default; set matchIsRegex: true for a regular expression. Invalid regexes do not throw — they simply never match.
customProfilesfully applies, badges included. The host serves its merged catalog over/peakrate/catalog, so a custom profile takes part in badge judgement exactly like a bundled one — either overriding a bundled entry byid, or adding a new one. Verified: pointingdeepseek-v4at a custom profile withpeak: 9×changes both the served catalog and the badge to9×.