opaimon/dsh-model-gate
Denies whole provider routes or exact provider/model pairs, hiding them from discovery and stopping any dispatch that reaches them.
A single-model disable gate with two halves. The denylist lives in the settings file as disabledProviders and disabledModels, and denied models disappear from every discovery path — the web selector, subagent routing, title generation — while the current selection clears with them. The settings page adds a section that reads the unfiltered catalog through the plugin's own service, so currently denied models render as off with the reason tagged on the row (exact pair, star rule, or whole provider) and can be turned back on; turning a star-denied row back on removes the covering star rule for every provider, so the panel can never leave a rule you cannot see.
Install
dsh plugin --profile web add dsh-model-gateThe npm line, then restart DSH once so the bundle layer picks up the new entry; every denylist edit after that hot-applies through settings with no further restarts. The README's other form points the installer at an unpacked release tarball, which ships prebuilt lib/ so there is no build step and no pnpm allow-builds prompt.
Compatibility
Non-destructive by design: nothing in your provider configuration or credentials is touched, the denylist is an independent overlay, and removing an entry or the plugin restores everything exactly as it was. Matching is exact and case-sensitive, and a model id written with a star prefix is denied on every provider, including dedicated routes that accept explicit directory-external ids. Denying one route does not deny a sibling — a vision route has to be listed separately. The dispatch backstop terminates a turn that still reaches a denied model (subagents, session titles, stale references) with an in-protocol error chunk and issues no network request. The README records verification against the 0.1.x release candidates.
Details
- Repo: opaimon/dsh-model-gate
- Category: Models & Providers
- Stars: 1
- Version: 0.1.3 (npm)
Alternatives
DamonBao/dsh-codex-suite · sharewiner/dsh-model-management · lincong1987/dsh-model-switch