One-click/auto sync provider model lists against /v1/models endpoint.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zhangyqjiaoshou-oss/dsh-model-sync
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文 | English
One-click / auto model sync for DeepSeek Harness providers. The plugin queries each provider's /v1/models endpoint and replaces the stored model list with what the endpoint advertises (models the endpoint no longer lists are removed; other provider fields are kept).
Features
- Manual sync — one-click sync of every configured provider from the Model Sync panel in Settings. Sync runs in the browser through the official
settings/llmAPIs — no custom Host RPC. - Auto-sync — re-syncs whenever a conversation page opens (Host listens on
agent/session-start, 10s debounce). The toggle persists in the plugin'smodel-syncsettings namespace + localStorage. - Replace semantics — the discovered list IS the final list; provider models that were removed or added are reflected correctly.
- Failure isolation — a failing provider does not affect the others; failed providers keep their previous config.
Installation
npx (recommended — nothing to install first)
# One command installs the plugin into the current DSH web profile
npx github:zhangyqjiaoshou-oss/dsh-model-sync install
After the package is published to npm, this becomes
npx @dsh-external/dsh-model-sync install.
dsh plugin add (bundle-capable environments)
dsh plugin --profile web add @dsh-external/dsh-model-sync
Manual injection (via dsh-super-injector)
# Build from source
bash scripts/build.sh
# Inject into the running DSH
dev_inject_plugin C:/Users/niclas/Desktop/dsh/model-sync
Usage
- Open Settings → Model Sync.
- Click Sync All Models to sync immediately, or turn on Auto-sync on conversation open to refresh the model list every time you open a conversation page.
- Each provider reports
✅ N total (+added -removed); failures show❌with the reason.
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
autoSync |
boolean | false |
Auto-sync model lists whenever a conversation page opens |
debounceMs |
number | 10000 |
Minimum milliseconds between two automatic syncs |
The auto-sync switch can also be toggled in the Settings UI; changes are written to the model-sync namespace.
How it works
Conversation page opens → agent/session-start event (Host)
→ re-query each provider's /v1/models
→ settings.update writes the new model list
→ settings/document-updated fires
→ browser model selector refreshes automatically
Manual sync uses only official wire APIs (llm.discoverModels + settings.mutate) — no custom Host RPC.
Development
bash scripts/build.sh # auto-detects a DSH checkout or npm global install
npx tsc -p tsconfig.json # typecheck
npx tsdown # client bundle (lib/client.js)
License
MIT
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 89228
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2083
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1023
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
V1ki/dsh-plugin-subscriptions★ 644
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
XDTrees/dsh-workbuddy-xdpool★ 631
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 631
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.