插件目录 / Developer / dsh-provider-badge
dsh-provider-badge
已验证 · 实测可装 marshfolx
功能简介
add a badge to show your seleted model provider
可用 — 实测通过,早期项目
add a badge to show your seleted model provider 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-provider-badge

A client-only DSH plugin: shows the current model provider icon beside the composer model selector.
- DeepSeek (provider contains
deepseek) → whale SVG - OpenCode Go (provider contains
opencode, e.g.opencode-go; or equalsgo) → bold merged "GO" wordmark - OpenCode Zen (provider exactly
opencode, or containszen) → bold merged "ZEN" wordmark - other providers → blocky initials
The badge subscribes to the model-selection plugin's per-session store (modelDirectories), so it updates instantly when the model changes, and scales with the composer tool-row height (DPI/zoom and row-height changes are both followed).
Install
Install from GitHub (requires DSH):
dsh plugin --profile <profile> add github:marshfolx/dsh-provider-badge#main
This adds the plugin to the profile's package.json (dependencies + dsh.profile.bundles) and installs it. Restart DSH afterwards.
Manual equivalent — in the profile's package.json:
"dependencies": {
"dsh-provider-badge": "github:marshfolx/dsh-provider-badge#main"
}
append "dsh-provider-badge" to dsh.profile.bundles, then run pnpm install in the profile directory and restart DSH.
Tuning (edit + refresh; no live reload needed)
Permanent: edit TUNING_DEFAULTS at the top of client/client.js:
| key | default | meaning |
|---|---|---|
iconScale |
1 |
icon height multiplier (whale 13px, letters 10px) |
yOffset |
0 |
vertical offset in px, positive = down |
color |
'var(--dsw-alias-label-caption)' |
icon color; follows the theme's caption text color (same as the effort label Max/High). For semi-transparency use rgba(...) or color-mix(in srgb, var(--dsw-alias-label-caption) 70%, transparent) |
Temporary (no file edit): in the browser console,
localStorage.setItem('dsh-provider-badge:tuning', JSON.stringify({ iconScale: 1.1, yOffset: -1 }));
location.reload();
Clear with localStorage.removeItem('dsh-provider-badge:tuning').
After editing client/client.js, refresh the page (hard refresh Ctrl+F5 if cached).
Structure
cordis.patch.yml— composition insert row (provider-badge)dsh.plugin.json— plugin manifest metadatalib/index.js— host half (empty; client-only plugin)client/client.js— browser half (window.__ModuleLoader__.loadregistration; zero build, zero deps)
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-provider-badge」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:marshfolx/dsh-provider-badge Headless(CLI)profile:
dsh plugin --profile headless add github:marshfolx/dsh-provider-badge 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。