DeepSHPlugins
dsh-model-sync 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-model-sync

Agent 與自動化JavaScriptMIT

把各提供方線上模型列表寫進 DSH 設定,輸入框圓環顯示當前會話模型的 5 小時/7 天視窗或按量剩餘餘額。

4 Starsjiay98528-dev 更新時間 2026-08-17
訪問 GitHub 倉庫
dsh-model-sync 專案預覽
dsh-model-sync 介面截圖dsh-model-sync 介面截圖dsh-model-sync 介面截圖dsh-model-sync 介面截圖dsh-model-sync 介面截圖

專案介紹

中文

把各提供方線上模型列表寫進 DSH 設定,輸入框圓環顯示當前會話模型的 5 小時/7 天視窗或按量剩餘餘額。

English

Writes live provider model lists into DSH settings and shows 5h/7d plan windows or metered balance for the current session model.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
jiay98528-dev
倉庫
jiay98528-dev/dsh-model-sync
GitHub Stars
4
Forks
1
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-17
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

62/ 100
維護活躍
83
文件與實用資訊
100
生態關注度
26
安裝便捷訊號
75
專案宣告訊號
100

README 含完整安裝與使用說明;關注度尚低(4)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-model-sync

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

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 SyncSettings ZHSettings EN
UsageUsage ZHUsage EN
ComposerComposer ZHComposer 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

ProviderIconSource
openai-codex5h / 7dchatgpt.com/backend-api/wham/usage
kimi-coding5h / 7d, top-up pack in the hover cardapi.kimi.com/coding/v1/usages
zai5h / 7dapi.z.ai/api/monitor/usage/quota/limit
minimax-cn5h / 7dapi.minimaxi.com/v1/api/openplatform/coding_plan/remains
xai7dgrok.com gRPC-web, ported from CC Switch
deepseek-officialbalance vs last top-upapi.deepseek.com/user/balance
xiaomino datano 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
FieldDefaultMeaning
profilewebWhich $DSH_HOME/profiles/<name> to read and write
pollMs60000Poll 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

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案