dsh-fallback
Transparent router fallback and pooled opencode-go API accounts for DeepSeek Harness: when the active router's quota is exhausted, the same request continues on the next connected router, and several keys of one router are rotated per request (DSH-wide, even without fallback). Works in dsh-desktop.
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Kachchi3739/dsh-fallback說明文件
閱讀完整 README ↗Configuration
The bundle row's config is the deployment default (empty chain, quota codes,
3 attempts). Everything edited from the panel is stored as overrides in the
profile's state file so the user's cordis.patch.yml is never rewritten:
/fallback/state.json # e.g. C:\Users\\.dsh\fallback\state.json
The file contains provider/model ids, failure codes and timings — no credentials. Deleting it resets the chain and all counters; a malformed or missing file simply falls back to the bundle defaults.
| Setting | Default | Meaning |
|---|---|---|
| Enable router fallback | on | Off disables the chain; pooled accounts still rotate. |
| Fallback chain | empty | Ordered routers; first ready one answers. |
| Account usage | rotate per request | How pooled keys are chosen: rotate, sticky per session, or priority/failover. |
| Trigger codes | QUOTA, ACCOUNT_QUOTA, RATE_LIMIT | Failures that move the request to the next router. |
| Max attempts per request | 3 | Hard cap including the selected router. |
| Quota/balance skip | 30 min | Cooldown after QUOTA/ACCOUNT_QUOTA, unless the provider reports retry-after. |
| Rate-limit skip | 60 s | Cooldown after RATE_LIMIT. |