Synchronizes the model catalog of API-key providers from the provider itself instead of maintaining the model list by hand.
Install
# from npm (prebuilt)
dsh plugin --profile web add @goodandready/dsh-model-sync
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:GooDAnDReaDY/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
⚡ Overview
dsh-model-sync keeps your DeepSeek Harness model catalog up-to-date with upstream AI providers.
Instead of manually editing YAML configs whenever a provider launches a new model, adjusts context window limits, or changes pricing, dsh-model-sync automatically discovers new releases, updates capability metadata (vision, tools, reasoning, embeddings), tracks account balances, manages model selection visibility, and reconciles models on the fly without server restarts.
graph LR
subgraph Trigger [Scheduling & Manual Trigger]
Cron[⏰ Background Polling Scheduler] --> Engine[dsh-model-sync Core Engine]
WebUI[🖥️ Settings: Sync Now Button] --> Engine
end
subgraph Providers [25+ Upstream Providers]
Engine --> Registry{Adapter Registry}
Registry -->|Bearer Auth| P1[OpenAI / DeepSeek / OpenRouter / Groq]
Registry -->|x-api-key Auth| P2[Anthropic Claude / Custom Gateways]
Registry -->|query-key Auth| P3[Google Gemini]
Registry -->|Local Probe| P4[Local Ollama / vLLM / SGLang]
Registry -->|CommandCode API| P5[Command Code / visibleModels]
Registry -->|Plan Discovery| P6[ClineBot Subscription Plan]
end
subgraph Reconcile [Catalog Reconciler & Auditing]
P1 --> Normalizer[Model Normalizer & Capabilities Tagger]
P2 --> Normalizer
P3 --> Normalizer
P4 --> Normalizer
P5 --> Normalizer
P6 --> Normalizer
Normalizer --> Diff[Sync Diff Tracker: Added / Deprecated]
Diff --> Catalog[Active DSH Models Catalog & visibleModels]
end
style Trigger fill:#1e1e2e,stroke:#89b4fa,stroke-width:2px,color:#cdd6f4
style Providers fill:#181825,stroke:#cba6f7,stroke-width:2px,color:#cdd6f4
style Reconcile fill:#11111b,stroke:#a6e3a1,stroke-width:2px,color:#cdd6f4
✨ Key Features
- 🏷️ Smart Collections & Catalog Auto-Tagging: Automatically categorizes models into standardized tags (
coding,reasoning,fast,vision,long-context) during discovery, provides fast pill-button filtering in the Web UI, and introduces a one-click "⭐ Curated Best" selection preset for top flagship models. - ⚡ Latency TTFT Radar & Sparklines: Probes response latency and Time To First Token (TTFT) across models, renders ASCII sparklines (
▂▃▂) and 4-tier speed badges (⚡< 300ms, 🟢< 1.2s, 🟡1.5 - 3.0s, 🔴> 3.0s), and exposesGET /dsh-model-sync/health/latencyfor intelligent downstream routing. - 💸 Dynamic Live Pricing Sync & Prompt Caching: Periodic background updates of live model pricing from OpenRouter and LiteLLM snapshots with persistent disk fallback cache, tracking prompt cache read/write costs (
cacheReadPerToken,cacheWritePerToken), withGET /dsh-model-sync/pricingandPOST /dsh-model-sync/pricing/syncendpoints. - 💰 Built-in Reference Pricing Database: Canonical token pricing database automatically enriches models for OpenAI, Anthropic, Groq, Mistral, xAI, and DeepSeek, enabling cost-limit filtering and
@cheapauto-resolution even when upstream APIs omit pricing metadata. - 🎯 Dynamic Smart Virtual Aliases & Auto-Fallback: Route requests to virtual aliases like
@fast,@cheap, and@best-code, with automatic fallback chains when circuit breakers open or health probes fail. - 📏 Real Context Limits & Boundary Safety (
contextWindow/maxOutputTokens): precise separation of input and generation limits, prevention of 400max_tokenserrors via auto-clamping, and clearIn: 128k | Out: 8kbadges in Web UI. - 🧠 Unified Reasoning & Thinking Configuration: automatic format detection (
effort,budget_tokens,boolean) and parameter translation with suppression of incompatible options (such astemperatureon o1/o3). - 🔔 External Diff Webhooks & Event Dispatching: Real-time webhook notifications with HMAC-SHA256 signature verification and Cordis
model-sync/diffevents when models are added, deprecated, or prices change. - ⚡ High-Performance Policy Filtering: Fast-path evaluation in
filterModelsbypasses regular expressions and array filtering when no filtering policy is configured, guaranteeing zero-overhead discovery runs. - 🔄 One-Click In-App Updates: Built-in update checker in Settings with automatic npm cache bypass on demand (
?fresh=1/Cache-Control: no-cache), ensuring instantaneous discovery of new package releases. - 🔄 Automated Catalog Discovery: Syncs model lists, aliases, context windows, and capability flags (
vision,tools,reasoning,embeddings) across 25+ providers. - 🛡️ Minijinja Chat Template & Role Compatibility: Automatically sets
compat.supportsDeveloperRole: falsefor Groq open-source models (Qwen, Llama, Mistral, Gemma, DeepSeek) and DeepSeek API, preventing 400Unexpected message roleerrors with reasoning models while preserving user overrides. - 🌐 25+ Built-in Provider Adapters: Pre-configured discovery for OpenAI, Anthropic, Google, DeepSeek, xAI, OpenRouter, Groq, Mistral, Cerebras, Fireworks, HuggingFace, Moonshot, NVIDIA, Qwen, Together, Xiaomi MiMo, SiliconFlow, Command Code, ClineBot, and local Ollama.
- 🎛️ Command Code Model Selection: Full discovery of Command Code models with granular checkbox selection in the UI, automatically syncing
visibleModelstollm-commandcodesettings. - 🎯 ClineBot Subscription Plan Sync: Dedicated adapter querying
GET /users/me/planto discover only active subscription-included models, eliminating catalog clutter from out-of-plan endpoints. - 🔌 Generic / Custom Adapter Support: Connect arbitrary OpenAI-compatible
/v1/modelsendpoints with configurable auth (bearer,x-api-key,query-key,none). - 📊 Balance & Quota Monitoring: Queries upstream billing endpoints (where supported) to report account credit balances and prevent unexpected exhaustion.
- 📜 Sync History & Diff Auditing: Tracks all newly discovered models, deprecated IDs, and modified capabilities with timestamped diff logs in the Web UI.
- 🖥️ Full Web GUI Panel (Settings → Model Synchronization):
- Live status cards per provider with active model counters;
- Instant "Sync Now" button for on-demand catalog refreshes;
- Granular model checkboxes for selection and visibility management;
- Provider enable/disable toggles and custom endpoint inputs.
🛠️ Supported Discovery Providers
| Provider Identifier | Authentication Format | Capabilities Auto-Detection & Notes |
|---|---|---|
openai |
Bearer Token | vision, tools, reasoning, embeddings |
anthropic |
x-api-key header |
vision, tools, reasoning |
google |
Query parameter / Key | vision, tools, reasoning, embeddings |
deepseek |
Bearer Token | tools, reasoning |
xai |
Bearer Token | vision, tools, reasoning |
openrouter |
Bearer Token | Multi-vendor model catalog with pricing & context limits |
groq |
Bearer Token | tools, reasoning, vision, supportsDeveloperRole: false |
mistral |
Bearer Token | tools, reasoning, vision |
commandcode |
Bearer Token | https://api.commandcode.ai/provider/v1/models catalog with visibleModels selection syncing to llm-commandcode |
clinebot |
Bearer Token | Active subscription plan discovery (/users/me/plan), restricting sync strictly to plan-included models |
fireworks |
Bearer Token | Open-weights inference endpoints |
huggingface |
Bearer Token | Serverless Inference API catalog |
together |
Bearer Token | Open-source model catalog |
ollama |
Local HTTP (none) |
Local offline model discovery (/api/tags) |
custom |
Configurable | Any custom OpenAI or Google compatible gateway |
📦 Quick Installation
dsh plugin --profile web add @goodandready/dsh-model-sync
[!IMPORTANT] Restart DSH Web UI after installation (
systemctl --user restart dsh-web) to activate background catalog synchronization.
⚙️ Configuration (settings.yaml)
dsh-model-sync:
enabled: true
scheduleEnabled: false
intervalMinutes: 60
autoApply: false
requestTimeoutMs: 15000
retryAttempts: 3
concurrency: 4
providers:
- provider: commandcode
enabled: true
autoApply: false
- provider: clinebot
enabled: true
autoApply: false
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled |
boolean |
true |
Master switch for background synchronization |
scheduleEnabled |
boolean |
false |
Enable periodic background synchronization schedule |
intervalMinutes |
number |
60 |
Polling frequency for catalog refreshes in minutes |
autoApply |
boolean |
false |
Automatically apply discovered models to active catalog |
requestTimeoutMs |
number |
15000 |
HTTP request timeout for catalog fetching (ms) |
retryAttempts |
number |
3 |
Maximum retry attempts for transient network failures |
concurrency |
number |
4 |
Maximum parallel provider synchronization workers |
providers |
array |
[] |
Per-provider configuration list (provider, enabled, autoApply) |
🔍 Active Capability Probing & Verification
- Micro-Probes: Accurately test actual model capabilities rather than relying on declared flags:
JSON Schema: Tests structured output generation (response_format: { type: "json_schema" }).Tools / Functions: Tests function call generation and parameter handling.Vision: Tests multimodal processing with lightweight image payloads.Developer Role: Validatesdeveloperrole prompt acceptance for advanced reasoning models.
- UI Actions: One-click "🔍 Verify Capabilities" on any provider card, plus global "🔍 Verify All Models" and "⚡ Verify New Only" buttons in catalog toolbar.
- Verified Badges: Highlights confirmed features with green indicators (
✔ Tools,✔ Vision,✔ JSON,✔ DevRole) persisted across restarts.
🦙 Ollama & Local Engine Hub
- Direct Web Management: Pull, monitor, and manage local Ollama models directly from DSH Web UI without SSH.
- Streaming Pull Progress: Real-time layer download progress bar with speed and transferred byte metrics.
- GPU VRAM Management: Displays active models in VRAM (
/api/ps) and provides instant "⏏ Unload from VRAM" (keep_alive: 0) to free GPU resources. - Architecture & Quantization: Displays quantization levels (
Q4_K_M,Q8_0), family, context windows, and offers direct deletion.
📄 License
MIT © GooDAnDReaDY
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 34394
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.
V1ki/dsh-plugin-subscriptions★ 491
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.
Mars-Sea/dsh-commandcode-provider★ 423
Unofficial Command Code LLM provider: registers a `commandcode` route with a live model catalog and reasoning-effort support.
dingminhua/dsh-connect-workbuddy★ 372
Connects locally signed-in WorkBuddy models to DSH, supports per-model image input opt-in, account switching, and a read-only credits overview with daily check-in.
FishBottle7/opencode2dsh★ 319
Exposes OpenCode Zen free models to DeepSeek Harness, with no API key.
cv-superding/dsh-deepseek-web-login★ 294
Adds a deepseek-web provider that uses chat.deepseek.com web models in DSH, with browser login capture, PoW request signing, SSE streaming, and prompting-based tool calls.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.