dsh-model-sync
Manifest valid★ 3Writes live provider model lists into DSH settings. Composer rings show 5h/7d plan windows or metered balance for the current session model. / Write the live model list into settings; the composer ring shows the current session's 5h/7d plan windows or pay-as-you-go remaining balance.
dsh-model-sync
English · 中文
Writes each provider's live model list into DeepSeek Harness settings. The composer ring follows the model this session is using. Plan routes read 5h and 7d windows, metered routes read the balance left since the last top-up. With windows and a top-up pack together, the icon draws the windows and keeps the pack in the hover card.
It takes two settings pages, one for fetching model ids per provider and one for per-model usage. Model Sync (sync-arrow icon) writes new model ids from each provider into settings. Usage lists plan windows, cumulative counts, and API balance. Resets show as countdowns such as 2d 3h left. The 5h and 7d windows each get their own row. UI text follows the DSH language setting, English or Chinese.
Screenshots
| 中文 | English | |
|---|---|---|
| Model Sync | ![]() | ![]() |
| Usage | ![]() | ![]() |
| Composer | ![]() | ![]() |
A model with both limits draws two rings, inner 5h, outer 7d. Progress bar colors follow the remaining quota.
Install
On npm.
dsh plugin --profile web add dsh-model-sync
The GitHub source also ships prebuilt lib/, no allowBuilds.
dsh plugin --profile web add github:jiay98528-dev/dsh-model-sync
Restart dsh web, refresh the page, open Settings → Model Sync. The plugin is listed in the awesome-dsh-plugin market list.
The package ships a cordis.patch.yml bundle patch (dsh.bundle) and declares dsh.client.immediately: true, so it takes effect on install with no manual config.
Usage
Model Sync
- Settings → Model Sync.
- Refresh if the list is empty.
- Each card lists the provider id,
baseURL, and model chips. A blue outline marks ids not in settings yet. Apply N new models writes them tollm-pi-ai.providers.<id>.models. - The collapsed Enable plugins block toggles this plugin and the optional
sub-model-access, writing the disabled flag in cordis.patch.yml. Takes effect live.
MiniMax, Kimi Coding, and OpenAI Codex have no OpenAI /models endpoint. The plugin uses the known catalog ids.
Usage
- Settings → Usage.
- Each provider lists its 5-hour and 7-day windows, one row each, with remaining percent, vendor cumulative counts, a reset countdown, and a colored bar.
- Metered rows show
current / baseline. The first sample becomes the baseline. To count spend from before the plugin was enabled, click Use current balance as baseline. The balance row also records when the baseline was set. - The page auto-refreshes every 60 seconds. Refresh pulls immediately.
Composer rings
- Pick a model as usual.
- The ring is right of the model name and left of the context meter. It follows the session model and switches with it.
- Hover the ring for a detail card titled
provider / modelfor this session. Each window gets a row with remaining percent and reset countdown, for example5 hours left 100% · 2h 15m left. - Other providers stay on the Usage page.
Quota sources
| Provider | Icon | Source |
|---|---|---|
openai-codex | 5h / 7d | chatgpt.com/backend-api/wham/usage |
kimi-coding | 5h / 7d, top-up pack in the hover card | api.kimi.com/coding/v1/usages |
zai | 5h / 7d | api.z.ai/api/monitor/usage/quota/limit |
minimax-cn | 5h / 7d | api.minimaxi.com/v1/api/openplatform/coding_plan/remains |
xai | 7d | grok.com gRPC-web, ported from CC Switch |
deepseek-official | balance vs last top-up | api.deepseek.com/user/balance |
xiaomi | no data | no public plan API |
The DeepSeek metered baseline lives in $DSH_HOME/profiles/<profile>/model-sync.baseline.json. A reading above the stored baseline counts as a top-up and resets the baseline.
Config
- id: model-sync
name: dsh-model-sync
config:
profile: web
pollMs: 60000
| Field | Default | Meaning |
|---|---|---|
profile | web | Which $DSH_HOME/profiles/<name> to read and write |
pollMs | 60000 | Poll interval parameter, minimum 5000. Pages currently refresh quota every 60 seconds |
Notes
- Host code lives under
node_modules. After changing and rebuilding this package, restartdsh web. Client-only edits need a page refresh. - Quota calls use credentials already stored in DSH. The plugin keeps no keys of its own.
- Ring placement is bound to DSH 0.1.0-rc.6 composer class names.
- Changelog is CHANGELOG.md.
License
MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.1.5 | — | — |
| 0.1.6 | — | — |
Comments
Loading…
Similar plugins
by ai-shushu
Per-session quota meter for DSH: real-token billing, live progress bar, budget blocking, configurable multi-model pricing. 会话额度监控:真实记账、进度条、额度拦截、价目可配。
★ 15
JavaScript
Aug 29, 2026
dsh plugin --profile web add quota-meter-shushuby ZZJQ678
按渠道商(Provider)分组、可折叠的 DSH 模型选择器:替换聊天输入框右下角原生选择器。仅在 DSH 桌面版实测通过,Web 版未测试。
★ 0
MIT
JavaScript
Sep 19, 2026
dsh plugin --profile web add dsh-model-pickerby Astepluver
DSH 话匣子:往系统提示里注入一段常驻互动协议——边做边说、卡住了就开口、把提问讲清楚、验证有预算、说人话,让话少或爱自己扛的模型回到「边说边做」的节奏。默认对所有模型生效,可按需收窄。
★ 0
MIT
JavaScript
Oct 18, 2026
dsh plugin --profile web add dsh-chatterboxOpenRouter provider for DeepSeek Harness with a live model list, prices and spend tracking
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-openrouter-liveby mengge237
DSH 插件:自定义模型/提供方顺序——侧边栏拖拽排序,宿主的模型列表按这份顺序返回;顺序写进 settings.yaml 前自动备份
★ 1
MIT
JavaScript
Oct 22, 2026
dsh plugin --profile web add dsh-model-priorityby anneqaq
DSH 插件:把模型编写的 SVG/HTML 片段渲染成对话中的内联可视化卡片(图表、流程图、时间线、对比表格),沙箱隔离、无网络、无依赖
★ 0
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-widget




