jiay98528-dev/dsh-model-sync ↗★ 0
dsh-model-sync
Sync live provider model lists into DSH settings and show 5h/7d quota rings for the current session model.
AI 分析
核心用途是自动同步最新的 API 模型列表并监控使用额度。适合使用多服务商 API、需要及时更新模型选项并掌握额度消耗的用户。支持热加载,无需复杂配置。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jiay98528-dev/dsh-model-syncドキュメント
README 全文を読む ↗Usage
1. Settings page
- Start
dsh weband open Settings. - Open the 模型同步 section in the left nav.
- Click 刷新 if the list is empty.
- Each provider card shows:
idandbaseURL- discovered model chips (blue outline = new, not yet in settings)
- 应用 N 个新模型 to write those ids into
llm-pi-ai.providers..models - quota / balance text, or a short reason when the provider has no public window API
- The top card toggles 模型同步 and optional 订阅制模型接入 (
sub-model-access) by writingdisabledon the matching profile row. That change is hot.
Catalog-only protocols (MiniMax, Kimi Coding, OpenAI Codex) do not speak OpenAI GET /models. The plugin falls back to known catalog ids instead of painting a red “this protocol has no /models listing” error.
2. Composer rings
- Open any conversation and pick a model as usual.
- A dual ring appears to the left of the model name in the composer.
- Hover (or focus) it. The card title is
provider / modelfor this session only. - Switching the session model updates the ring. Other providers stay on the settings page.
If the hover card says the current model is not recognized, the session provider is not in the discovered list yet — open Settings and refresh.
3. Quota sources
| Provider | What you see | Endpoint |
|---|---|---|
openai-codex | 5h / 7d utilization | chatgpt.com/backend-api/wham/usage |
kimi-coding | 5h / 7d utilization | api.kimi.com/coding/v1/usages |
zai | 5h / 7d utilization | api.z.ai/api/monitor/usage/quota/limit |
minimax-cn | 5h / 7d remaining | api.minimaxi.com/v1/api/openplatform/coding_plan/remains |
deepseek-official | balance vs last recharge | api.deepseek.com/user/balance |
xai | reason only | grok.com gRPC billing is not ported yet |
| others | reason only | no public plan window |
Plan percentages come from the same family of APIs as CC Switch. Remaining % = 100 − used. Zhipu (zai) must send the raw key in Authorization (no Bearer ). Codex also reads tokens.account_id from ~/.codex/auth.json when present.