yishengdaxiaonengjihui/dsh-poor-router ↗★ 1
dsh-poor-router
Budget-LLM pool router for DeepSeek Harness: usage ledger, health tracking, Thompson-sampling adaptive failover across free-tier models, quality tier ladder, executor pool, paid-guard, web panel + reroute badge. 穷鬼路由器。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yishengdaxiaonengjihui/dsh-poor-router说明文档
阅读完整 README ↗Configuration
Everything lives next to your models in pool.json. Plugin-level paths default to /poor-router/; override in your profile's cordis.patch.yml:
- id: poor-router
name: dsh-poor-router
config:
dataDir: 'D:/my-data/poor-router' # base dir for all three files
# or individually:
# poolPath: '...'
# statePath: '...'
# importPath: '...'
layerRules: # optional default layers by id prefix
- { match: 'deepseek-official/', layer: 'backbone' }
- { match: 'tokenrouter/', layer: 'matchstick' }
Entry fields that matter:
| field | meaning |
|---|---|
id | provider/model — must match what the harness proposes |
expiresAt | ISO date; urgency sort + panel countdown |
grantRemaining / grantUnit | executor-pool budgeting |
tier | S/A/B/C quality ladder (panel-editable) |
role | "executor" joins the aux-request pool |
layer | backbone (never burned) / burn / matchstick |
paid + priceIn/OutYuanPerM + dailyCapYuan | real-money guardrail |
escapeHatch | allow this paid model as last-resort |