DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-client-ui-cpa-quota

Client Ui Cpa Quota

CliProxyAPI 配额指示器:位于 composer 模型名称左侧的原生风格环形指示器;悬停后显示 Codex、Claude、Antigravity、Gemini CLI、Kimi、xAI/Grok 及其他 CPA 身份验证提供商的每账户提供商配额、订阅计划和状态。目标是 th

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-client-ui-cpa-quota@0.9.8
README兼容性版本
Collapsed CliProxyAPI quota cardAll-accounts quota panelModel quota tooltip

兼容性与来源证明

Client Ui Cpa Quota 以 dsh-client-ui-cpa-quota 发布,当前版本为 0.9.8。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.9.8stable
2026/10/19
0.9.7stable
2026/10/19
0.9.6stable
2026/10/18
查看其余 26 个版本收起版本
0.9.5stable
2026/10/18
0.9.4stable
2026/10/17
0.9.3stable
2026/10/17
0.9.2stable
2026/10/17
0.9.1stable
2026/10/13
0.9.0stable
2026/10/3
0.8.8stable
2026/9/24
0.8.7stable
2026/9/19
0.8.6stable
2026/9/16
0.8.5stable
2026/9/16
0.8.4stable
2026/9/16
0.8.3stable
2026/9/5
0.8.2stable
2026/9/4
0.8.1stable
2026/9/3
0.8.0stable
2026/9/3

相关插件

正在加载相关插件…

最新版
0.9.8
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
676.5 kB
文件数
11
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 6
周下载
378
安全扫描
✓ v0.9.8 扫描通过
最近提交
2026/10/19
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
0.7.4stable
2026/9/3
0.7.3stable
2026/9/3
0.7.2stable
2026/9/3
0.7.1stable
2026/9/3
0.7.0stable
2026/9/3
0.6.1stable
2026/9/1
0.6.0stable
2026/9/1
0.5.0stable
2026/9/1
0.4.2stable
2026/8/30
0.4.1stable
2026/8/30
0.4.0stable
2026/8/30

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Connect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。Cost Meterdsh-cost-meterDeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(16 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。

README

dsh-client-ui-cpa-quota

English | 中文

A DSH (DeepSeek Harness) Web UI plugin that shows CLIProxyAPI quota right where you look: a native-styled ring beside the model picker, and a CPA-management-style settings card listing every account's quota windows in one place.

  • Zero dependencies, plain JavaScript, no build step.
  • Instances are discovered automatically from your DSH provider baseURLs — no model lists, no config file required.
  • Everything runs browser-side; your management keys never leave this browser's localStorage.

Screenshots

Collapsed card

The settings card stays collapsed like the built-in ones — plain title/description, expand for the details.

Collapsed CliProxyAPI quota card

All accounts, CPA-management style

Expand it and every account of every instance is listed with its subscription plan, provider badge, and all quota windows (5-hour / weekly / monthly) — not filtered by the current model. (Demo data from tests/mock-cpa.mjs.)

All-accounts quota panel

Ring beside the model picker

Hover the ring next to the selected model for matching accounts, providers, plans, windows, and reset times.

Model quota tooltip

Features

  • Reads models and baseURL values from DSH providers automatically; no model list to maintain.
  • Fingerprints each baseURL as CLIProxyAPI and never leaves an empty ring on ordinary OpenAI-compatible endpoints.
  • Supports multiple CLIProxyAPI instances and accounts, filtering the hover tooltip to the selected model while the settings panel always shows everything.
  • Orders windows as 5-hour → weekly → monthly → daily; the ring uses the first available window in that order.
  • Queries Codex, Claude, Antigravity, Gemini CLI, Kimi, and xAI/Grok through their upstream quota APIs; other CPA providers still expose account status and recent activity.
  • In-use account detection: CPA's per-request usage queue feeds a local 7-day ledger, so the tooltip shows the accounts that actually served the selected model within the current refresh cycle (sorted by last use, with an "in use" badge and request/token totals) and collapses the rest under "Other accounts". The in-use window follows the card's refresh interval.
  • Account probes run through a bounded pool with a per-request timeout — one hung upstream can never stall the refresh cycle.
  • Keeps the last successful snapshot across transient refresh failures and reuses rings across DSH screen remounts.
  • Colors: green ≥20% remaining, amber <20%, red exhausted/error, gray loading or missing a management key.

Requirements

  • DSH Web profile on the current plugin contract (validated against dsh 0.1.1-rc.2, 0.1.2-rc.1, 0.1.5-rc.2, 0.1.6-alpha.1, 0.2.0-rc.2, 0.2.1-alpha.2 and 0.2.1-rc.1 — 0.1.5+ needs plugin ≥ 0.8.5 for the model button's markup, 0.2.x needs ≥ 0.9.0 for the rebuilt plugins settings slot); the plugin registers in the Web UI.
  • The official Desktop app runs the same web stack from its reserved desktop profile — install the plugin through the app's own plugin manager (the CLI rejects dsh plugin --profile desktop by design).
  • A reachable CLIProxyAPI instance with its management API enabled.
  • Models must be routed through a DSH provider whose baseURL points at the corresponding CPA instance.
  • A management key for each CPA instance. Keys entered in the settings card stay in the current browser's localStorage; YAML-managed keys remain in the YAML file.

Quick install

The plugin declares a dsh.bundle manifest and is published to npm, so one command installs and activates it — no config editing, no git, no build:

dsh plugin --profile web add dsh-client-ui-cpa-quota

Prefer the installer? It also handles networks where GitHub is flaky, falls back to copying when pnpm is unavailable, and migrates older installs:

Windows PowerShell

$p=Join-Path $env:TEMP 'dsh-cpa-install.ps1'; Invoke-WebRequest -UseBasicParsing -Uri 'https://raw.githubusercontent.com/wkscc310/dsh-client-ui-cpa-quota/main/install.ps1' -OutFile $p; powershell -NoProfile -ExecutionPolicy Bypass -File $p

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/wkscc310/dsh-client-ui-cpa-quota/main/install.sh -o /tmp/dsh-cpa-install.sh && sh /tmp/dsh-cpa-install.sh

Restart the DSH Web host, then open:

Settings → Plugins → CliProxyAPI Quota

Expand the card, paste the management key for each instance, and reopen the model picker.

After updates, just run the same dsh plugin add (or the installer) again and restart the host.

Manual install

macOS / Linux

git clone https://github.com/wkscc310/dsh-client-ui-cpa-quota.git "$HOME/.dsh/plugins/dsh-client-ui-cpa-quota"
dsh plugin --profile web add "$HOME/.dsh/plugins/dsh-client-ui-cpa-quota"

Windows PowerShell

git clone https://github.com/wkscc310/dsh-client-ui-cpa-quota.git "$env:USERPROFILE\.dsh\plugins\dsh-client-ui-cpa-quota"
dsh plugin --profile web add "$env:USERPROFILE\.dsh\plugins\dsh-client-ui-cpa-quota"

Without the dsh CLI (or without pnpm), copy the plugin into the profile's node_modules instead — a symlink will not work, because Node resolves imports from the link target's real path:

mkdir -p "$HOME/.dsh/profiles/web/node_modules"
cp -R "$HOME/.dsh/plugins/dsh-client-ui-cpa-quota" "$HOME/.dsh/profiles/web/node_modules/"

A copy install does not activate the bundle layer, so the loader entry must be added by hand to ~/.dsh/profiles/web/cordis.patch.yml (Windows: %USERPROFILE%\.dsh\profiles\web\cordis.patch.yml). If the file still contains the fresh-profile placeholder [], replace it with the entry:

- insert:
    - id: ui-cpa-quota
      name: dsh-client-ui-cpa-quota

Optional configuration

Auto-discovery is usually enough. To pin instances or keep management keys in YAML:

- insert:
    - id: ui-cpa-quota
      name: dsh-client-ui-cpa-quota
      config:
        refreshMinutes: 5
        instances:
          - baseURL: https://your-cpa.example
            managementKey: your-management-key
          - baseURL: https://another-cpa.example/v1
            managementKey: another-management-key

The browser settings card overrides YAML. refreshMinutes is clamped to at least one minute; do not commit management keys to a public repository.

Supported quota sources

ProviderUpstream sourceTypical windows
Codex / OpenAIwham/usage5-hour, weekly, or monthly
ClaudeOAuth usage/profileweekly, monthly
AntigravityretrieveUserQuotaSummary, falling back to fetchAvailableModels5-hour, weekly, monthly
Gemini CLIGoogle quota endpoint5-hour, weekly, daily
Kimi/coding/v1/usagesprovider-defined
xAI / Grokbilling, with a paid-account health fallbackweekly, monthly
Other CPA providersauth-file status and recent activityprovider-defined

How detection works

  1. The plugin builds a model → baseURL index from DSH llm.providers and settings.describe, normalizing away the protocol, www., and a trailing /v1.
  2. It requests <baseURL>/v0/management/usage-statistics-enabled for each provider base.
  3. A 401 containing management/unauthorized, or a CPA-shaped 2xx, identifies CLIProxyAPI. Typical 404s, other responses, and network failures are not added as quota instances.
  4. Verdicts are cached in the browser for one hour; Refresh now re-fingerprints immediately, so a newly added CPA instance shows up without waiting.

That is why a model using an ordinary OpenAI-compatible baseURL has no empty ring. An auto-detected CPA without a management key gets a gray ring and a settings hint.

Development

Plain JavaScript, no build step.

node --check lib/client.js && node --check lib/index.js
node tests/smoke.mjs        # full logic + settings-card render harness
node tests/mock-cpa.mjs     # optional: a fake CPA on http://127.0.0.1:8317 (key: mock-key)

Point the plugin's manual instance input at the mock to see a full five-account demo without a real CPA. CI runs the syntax checks and the smoke test on Ubuntu and Windows for every push and pull request.

FAQ

  • No ring? The selected model's DSH provider baseURL must point at CLIProxyAPI rather than an upstream official API, and the management API must be enabled. The ring is per model — switch models and it follows.
  • Gray ring? Paste the instance's management key under Settings → Plugins → CliProxyAPI Quota.
  • Just added a CPA instance and nothing shows up? Hit Refresh now in the card — it re-fingerprints every provider base immediately instead of waiting out the one-hour probe cache.
  • Stale numbers? Numbers refresh on the configured interval; a failed refresh keeps the last good snapshot and says so on the card.
  • Where are my keys stored? In this browser's localStorage only. Quota requests go straight from the browser to each instance; the DSH host never sees your keys.
  • Switching browsers? Use Export config / Import config on the card to move instances and keys between browsers. The exported JSON is plaintext — store it carefully.
  • Tooltip shows every account? The tooltip filters accounts by what each one actually serves, using CPA's own per-auth model registry first, then the model name and the DSH provider id as fallbacks. Only when a model matches no registry entry and no family signal can it be pinned down does the tooltip list the remaining usable accounts — and it says so when it does.
  • Tooltip shows fewer accounts than before? The in-use filter is on by default: accounts that served the selected model within the current refresh cycle are pinned with an "in use" badge, the rest collapse under "Other accounts". Turn off "只显示使用中的账号" on the card to see every candidate again.
  • "usage stats off" badge? Enable usage statistics in your CPA config (usage-statistics-enabled: true) — the in-use detection reads CPA's per-request usage queue and needs that toggle on. Everything else works without it.

Community

  • Published & discussed on LINUX DO — thanks to the community for the feedback.
  • Listed on awesome-dsh-plugin (entry PR #3852); once merged, the plugin is installable from dsh-market inside DSH's settings.

License

MIT