yishengdaxiaonengjihui/dsh-poor-router1

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. 穷鬼路由器。

包名
dsh-poor-router
版本
1.0.0
许可证
MIT
最近更新
2026年8月26日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yishengdaxiaonengjihui/dsh-poor-router

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:

fieldmeaning
idprovider/model — must match what the harness proposes
expiresAtISO date; urgency sort + panel countdown
grantRemaining / grantUnitexecutor-pool budgeting
tierS/A/B/C quality ladder (panel-editable)
role"executor" joins the aux-request pool
layerbackbone (never burned) / burn / matchstick
paid + priceIn/OutYuanPerM + dailyCapYuanreal-money guardrail
escapeHatchallow this paid model as last-resort