AI Agent Hub
Back to plugins
🤖

dsh-quota-router

Model Inference Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install Liyuk/dsh-quota-router

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install Liyuk/dsh-quota-router in your DeepSeek Harness terminal to install the plugin, or browse its source at https://github.com/Liyuk/dsh-quota-router; once enabled in a DSH Web profile, the Quota Router settings page becomes available under Settings.

About this plugin

When you have several model sources at play—free tier, subscription, pay-per-use, manual emergency—a keyword-and-fallback router cannot express what you actually need: the same primary route but with per-turn identity preserved during recovery, instant advancement on stable quota or auth failures, and bounded retries for transient errors. dsh-quota-router splits routing into two orthogonal axes: a global source priority list and a per-task modelBySource mapping. At runtime it retains the task profile and candidate identity across turns and walks the exact chain, rather than re-inferring per session. The safety model is explicit: manual and emergency candidates are never auto-selected, paid candidates require an allowPaidFallback opt-in, stable failures advance immediately, and transient failures respect a configurable retry threshold before cooldown kicks in. Context compaction, session-history rewriting, planning, and cross-Harness orchestration are deliberately out of scope.

It is built for developers who already maintain a clear source list and task taxonomy in DSH and need a policy-transparent, explainable, fault-tolerant routing layer that can be edited directly from the Settings page—global priority, task keywords, model mappings, and a live chain preview—instead of another pile of if-else logic.

Use Cases

  • Route across free tier, subscription, and pay-per-use sources based on task profile
  • Auto-advance along the candidate chain when quota or auth failures are detected, with bounded retries for transient errors
  • Edit global source priority, per-task model mappings, and preview the full fallback chain directly from Settings

Best For

  • Developers managing two or more DSH model sources who need task-based routing policies
  • Teams that want transparent, auditable failure-recovery rules editable from the Settings page
  • DSH users who prefer a declarative policy layer over hand-coded routing logic