DSH Hub
dsh-model-gate cover

OPaimon/dsh-model-gate

dsh-model-gate

UIWeb UI0 GitHub stars· updated 2026-08-23

dsh-model-gate is a community DeepSeek Harness plugin. Read the repository README before installing.

Install

npx @deepseek-ai/dsh plugin --profile web add dsh-model-gate

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-model-gate DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-model-gate.svg)](https://dshhub.dev/plugins/dsh-model-gate)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from OPaimon/dsh-model-gate, cleaned of badges and images.

dsh-model-gate

English | 中文

Single-model disable gate for DSH. Deny whole provider routes or exact provider/model pairs - denied models disappear from every discovery path and any dispatch that still reaches them terminates with an in-protocol MODEL_DISABLED error chunk.

Non-destructive by design: nothing in your provider configuration or credentials is touched. The denylist is an independent overlay; removing an entry (or the plugin) restores everything exactly as it was.

Screenshots

Settings panel — the「模型门禁」section reads the UNFILTERED catalog through the plugin's own typert service: one collapsible group per provider, one switch per model row, enabled-count badge on the group header.

Discovery hiding — deny a model and it disappears from the web selector and every other discovery path; the current selection clears with it.

enableddenied

Dispatch backstop — a turn that still reaches a denied model (subagents, session titles, stale references) ends with the in-protocol MODEL_DISABLED error chunk; no network request is issued.

Install

From npm - one command:

dsh plugin --profile web add dsh-model-gate

Or from a Release tarball - download dsh-model-gate-<version>.tgz, unpack it, and point the official installer at the unpacked directory (the tgz ships prebuilt lib/, so no build step and no pnpm allowBuilds prompt):

tar -xzf dsh-model-gate-0.1.2.tgz    # -> ./package/
dsh plugin --profile web add ./package

Then restart DSH once so the bundle layer picks up the new entry. Every denylist edit afterwards hot-applies through settings - no further restarts. Verified against DSH 0.1.x-rc.

Usage

Edit the denylist section in ~/.dsh/settings.yaml - changes hot-apply, no restart:

llm-model-gate:
  disabledProviders:
    - openrouter
  disabledModels:
    - "*/kimi-k2.7-code"        # deny this model id on every provider
    - "token-rhythm/glm-5"      # deny one exact provider/model pair

Matching is exact and case-sensitive. A disabled provider route hides all of its models. Model ids listed with a * + slash prefix are denied on every provider, including dedicated routes (e.g. DeepSeek direct) that accept explicit directory-external ids.

Settings UI

The web settings page has a dedicated「模型门禁」section (one collapsible group per provider, one switch per model row). The panel reads the UNFILTERED catalog through the plugin's own typert service, so currently denied models render as off and can be turned back on; toggling writes the denylist through the same hot-apply settings chain as manual YAML editing.

Row-state notes:

  • A row is off when its exact pair, a */model star rule, or the whole provider route denies it; the reason is tagged on the row.
  • Turning a star-denied row back on removes the covering star rule for every provider (the denylist has no per-provider exceptions); the panel re-renders from the returned state, so affected rows visibly flip together.
  • Provider headers show an enabled-count badge; row switches are authoritative.

Semantics

Related plugins