dshbase

插件目录 / Developer / dsh-model-sync

dsh-model-sync

未验证 jiay98528-dev

✓ 持续维护 基于 4 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
1Forks
0未关闭 issue
语言
2026-08-17最近推送
跨平台平台

功能简介

Writes live provider model lists into DSH settings. Composer rings show 5h/7d plan windows or metered balance for the current session model. / 把线上模型列表写进设置,输入框圆环显示当前会话的 5 小时/7 天窗口或按量剩余余额。

我们的评价
未验证 — 尚未实测

Writes live provider model lists into DSH settings. Composer rings show 5h/7d plan windows or metered balance for the current session model. / 把线上模型列表写进设置,输入框圆环显示当前会话的 5 小时/7 天窗口或按量剩余余额。 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-model-sync logo

dsh-model-sync

English · 中文

npm dsh-plugin Awesome DSH Plugin MIT

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.

dsh-model-sync banner

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 Settings ZH Settings EN
Usage Usage ZH Usage EN
Composer Composer ZH Composer EN

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

  1. Settings → Model Sync.
  2. Refresh if the list is empty.
  3. 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 to llm-pi-ai.providers.<id>.models.
  4. 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

  1. Settings → Usage.
  2. 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.
  3. 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.
  4. The page auto-refreshes every 60 seconds. Refresh pulls immediately.

Composer rings

  1. Pick a model as usual.
  2. The ring is right of the model name and left of the context meter. It follows the session model and switches with it.
  3. Hover the ring for a detail card titled provider / model for this session. Each window gets a row with remaining percent and reset countdown, for example 5 hours left 100% · 2h 15m left.
  4. 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, restart dsh 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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-model-sync」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:jiay98528-dev/dsh-model-sync

Headless(CLI)profile:

dsh plugin --profile headless add github:jiay98528-dev/dsh-model-sync

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26 · 标记 webonly
备注:验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →