Shows the provider behind a session's current model as a compact badge in the DSH Web composer tool row, left of the model selector.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:huihuangdi/dsh-model-provider-badge
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
Shows the provider behind the model the current session is using as a compact badge in the DSH Web composer tool row, immediately left of the model selector.

What it shows
- The provider name is the Host model catalog group that owns the current model
(
ModelProviderGroup.name), so it matches the provider headings in the/modelpopup and in the model selector. - It reads the same per-session model directory the model selector renders from (the client
modelDirectoriesservice): a session that has not picked a model yet shows the deployment default's provider, and switching models updates the badge immediately. - If a provider has disappeared from the catalog, the badge falls back to the last advertised failure name and finally to the raw provider id.
Install
dsh plugin --profile web add github:huihuangdi/dsh-model-provider-badge
Reload the page once after installing — the client half is loaded by the Web shell, not by the Host. A local directory works too:
dsh plugin --profile web add /path/to/dsh-model-provider-badge
No build step: plain JavaScript with no install or lifecycle scripts, so no allowBuilds approval is
involved.
Where it renders, and how
- Seat:
conversation.input.right, declared by@deepseek-ai/dsh-client-ui-conversation. In the DOM that seat renders immediately before the model selector — the empty space left of the model name. index.jsis the Host half: a normal plugin row, plus one write-only diagnostic route registered when the profile has a Web server.client.jsis the browser half. It is loaded throughwindow.__ModuleLoader__and claims the seat withctx.slots.inject(...)+ctx.slots.register(...).- Styling uses host theme tokens only (
--dsw-alias-*,--dsw-radius-sm), and the metrics mirror the host's model seat (28px high, 13px/400 type, 4px gap), so the badge reads as part of the same row. - Visible copy goes through the client locale (namespace
model-provider-badge, zh + en).
Regression selftest
node test/activation.selftest.mjs
It reproduces the browser's service topology — services provided by sibling plugins, not mounted on
the root — with the real @deepseek-ai/cordis, and asserts that activation succeeded, that the locale
dictionaries and the seat registration happened, and that the injected face carries only values that
are safe to cache. Point it at a non-default DSH install with DSH_INSTALL=<@deepseek-ai/dsh dir>.
License
MIT — see LICENSE.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10696
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10696
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8484
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7509
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5395
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1082
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.