imchangchang/dsh-llm-provider

Replaces DSH's LLM adapters, model selector and Models settings page, and adds per-provider quota lookups and provider management.

Removes the wait between an upstream model appearing and a dsh release shipping it. dsh pins its LLM SDK, pi-ai, at build time; this plugin runs a copy it maintains itself, so new upstream models arrive on the plugin's schedule rather than the harness's. On top of that it adds quota lookups — balance and usage windows per provider — feeding both the provider cards and a quota indicator in the model selector, so a rate-limited provider is visible before a request fails. Provider management is a first-class settings surface instead of hand-edited JSON: candidates come from several sources, credentials get checked, and routes are discovered rather than hard-coded, with the README's Implementation section documenting the pi-ai bridge, candidate sources, quota adapters and credential check individually. If you only want the official adapters and the stock settings page, this plugin is the wrong trade — it takes those four tree entries over.

Models & Providers ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add @dsh-one/dsh-llm-provider

The npm line from the README's Install section, followed by a restart because the plugin tree changed (dsh web). Adding @<version> pins a single version. The README is unusually explicit about the upgrade trap: upgrading an installed copy requires restarting the dsh process and refreshing the page is not enough, because cordis.patch.yml is re-read from disk on every mount but the module code is cached by Node per path, and under pnpm's hoisted layout that path does not change. It also ships dev scripts (scripts/install-deps.sh, optional vendor + npm install for a pinned pi-ai).

Compatibility

Requires dsh 0.1.6-alpha.1 or newer, including the 0.2 line. The plugin declares @deepseek-ai/dsh-authorization as an optional peer, and the README warns that dsh 0.2 checks that range against the running version at install and boot, so a plugin whose range excludes the runtime is refused with an incompatibility error. It is not a thin add-on: it replaces four entries of the dsh plugin tree — the pi-ai adapter (llm-pi-ai), the native DeepSeek adapter (llm-deepseek), the model selector (ui-model-selection) and the official Models settings page (ui-settings-models) — which is why a restart, not a reload, is what makes a change take effect. The README documents a compatibility check and a test-instance path, plus command-line checks, so a broken provider list can be diagnosed outside the UI.

Details

Alternatives

MoFeng2223/dsh-claude-provider · GooDAnDReaDY/dsh-ollama-cloud-provider · sagmans/dsh-provider-extra

More plugins in Models & Providers

Browse more in Models & Providers

Guides for Models & Providers plugins