DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Ai Quota — DeepSeek Harness 插件(DSH Plugin)
← Plugins
A

dsh-ai-quota

Ai Quota

DeepSeek Harness 插件:查询 AI 订阅配额和余额(Codex、Kimi、GLM Coding Plan、DeepSeek、302.AI、OpenCode Go),作为模型工具和设置页面

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Carrick-K7/dsh-ai-quota#03dee0e4ac02c8a84b087fc179a4b5552cabfab0
README兼容性版本
AI Quota settings page

兼容性与来源证明

Ai Quota 以 dsh-ai-quota 发布,当前版本为 0.11.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/19

版本

0.11.2

README

dsh-ai-quota

A DeepSeek Harness plugin that shows your AI subscription quotas & balances — Codex, Kimi, GLM Coding Plan, DeepSeek, 302.AI, OpenCode Go — in one place.

English · 中文

Preview

AI Quota settings page

Settings page: per-window usage bars (Codex / Kimi / GLM Coding Plan / OpenCode Go) and plain balances (DeepSeek, 302.AI), with manual refresh and a freshness line in relative time; the gear button opens the embedded visibility settings, one switch per provider.

Features

  • Model tool query_ai_quota — ask any agent session to check your quota; returns a human-readable summary.
  • Settings page — an "AI Quota" section with per-window usage bars and balances, plus manual refresh.
  • Per-provider visibility — the gear button in the section header opens a second level inside the same settings page: one switch per provider. A provider with no key or login state keeps its row, its switch stays inert, and the row names what is missing (which key, login, or CLI); a switch you can flip is the detection signal, so there is no separate "detected" badge. Everything detected is on by default, so a key added later appears on its own. The choice applies to the list and to the composer chip, and is stored in the browser (localStorage), so flipping one is instant — no host round-trip, no plugin reload. The query_ai_quota tool always returns every provider.
  • Composer chip — a one-line quota indicator that follows the selected provider route (never the model id: the same model can be served by several routes with independent quotas), on both the new-chat page and in sessions.
  • Auto-refresh — the host re-queries all providers every refreshIntervalMs (default 2 min; 0 disables) and serves a warm cache, so every surface reads instantly. An open conversation additionally re-reads its provider's quota every 60 s (silently, without a loading flicker), so a session left running for a while never keeps the balance it loaded with; a hidden tab is skipped and caught up when it becomes visible again.
  • Unified format — providers are normalized to subscription windows or balance entries; one provider failing never affects the others.
  • Skin-aware palette — every readout color is a CSS variable: with the dsh-miku-skin Hatsune skin loaded the chip and usage bars turn soft Miku teal, and without it they keep the shipped emerald/amber/red severity colors.
  • No secrets in output — API keys and tokens never appear in tool output or logs.

Install

dsh plugin --profile web add github:Carrick-K7/dsh-ai-quota

The bundled cordis.patch.yml declaration makes dsh plugin append the plugin row to dsh.profile.bundles automatically. Restart dsh web afterwards (pnpm must be on PATH).

Configuration

All keys optional, defaults shown.

KeyDefaultMeaning
timeoutMs15000Per-provider query timeout (ms)
refreshIntervalMs120000Auto-refresh interval (ms); 0 = off
codexClicodexcodex CLI command or absolute path
deepseekApiKeyEnvDEEPSEEK_API_KEYDSH credential ref (fallback: same-named env var)
opencodeGoApiKeyEnvOPENCODE_GO_API_KEYDSH credential ref (fallback: same-named env var)
ai302ApiKeyEnvAI_302_API_KEYDSH credential ref (fallback: same-named env var)
glmApiKeyEnvZAI_CODING_CN_API_KEYDSH credential ref for the GLM Coding Plan key (falls back to ZAI_CODING_API_KEY, then GLM_CODING_API_KEY)
deepseekBaseUrlhttps://api.deepseek.comDeepSeek API base URL
opencodeBaseUrlhttps://opencode.ai/zen/go/v1/usageOpenCode Go usage endpoint
ai302BaseUrlhttps://api.302.ai302.AI API base URL
glmBaseUrlhttps://open.bigmodel.cnGLM Coding Plan API host; only the origin is used, so a coding base like …/api/coding/paas/v4 works. International accounts: https://api.z.ai
kimiBaseUrlhttps://api.kimi.com/coding/v1Kimi usage endpoint base (appends /usages)
kimiOauthHosthttps://auth.kimi.comKimi OAuth refresh endpoint (appends /api/oauth/token)
kimiClientIdKimi Code CLI's public client idOAuth client_id (usually unchanged)

Composer chip routing

The chip reads the provider route of the current model selection (e.g. opencode-go-carrick, kimi-coding, deepseek-official, openai-codex) and never the model id — kimi-k3 on an OpenCode Go route is an OpenCode Go quota, not a Kimi one. A route is recognized when its id (or, for an opaque alias, its provider display name) contains one of 302, opencode, codex, kimi/moonshot, deepseek, zai/zhipu/bigmodel/glm. Any other route shows no chip rather than another account's balance.

The chip then re-reads that provider every 60 s while it is mounted, reading the host's warm cache (so no extra upstream calls). If the host snapshot itself is older than 10 min — i.e. the host auto-refresh is off or stalled — the poll escalates to a real query, throttled to once per 10 min per provider.

Credentials

  • DeepSeek / 302.AI / OpenCode Go: key resolved through the DSH credentials seam first — apiKeyEnv is a credential ref (defaults DEEPSEEK_API_KEY / AI_302_API_KEY / OPENCODE_GO_API_KEY), so a key stored in DSH (e.g. $DSH_HOME/.credentials.yaml) wins; a same-named process env var is the fallback for standalone deployments. OpenCode Go also falls back to the opencode-go entry in ~/.local/share/opencode/auth.json.
  • GLM Coding Plan: key resolved through the same credentials seam; the default ref is ZAI_CODING_CN_API_KEY, with ZAI_CODING_API_KEY and GLM_CODING_API_KEY tried next, so either region's key name works. Point glmBaseUrl at https://api.z.ai for an international coding plan.
  • Codex / Kimi: no keys — the local CLI login state is reused (codex CLI on PATH; Kimi Code CLI's OAuth session, auto-refreshed when expired, kimi login again if it is gone).

Data sources

ProviderSource
CodexLocal codex app-server --stdio JSON-RPC (account/rateLimits/read) — 5h / 7d windows
KimiGET {kimiBaseUrl}/usages (Kimi Code CLI's OAuth login state)
GLM Coding PlanGET {glmBaseUrl}/api/monitor/usage/quota/limit (bearer key) — 5h credit cycle / weekly quota / monthly MCP budget
DeepSeekGET {deepseekBaseUrl}/user/balance (bearer key)
302.AIGET {ai302BaseUrl}/dashboard/balance (bearer key)
OpenCode GoGET {opencodeBaseUrl} (bearer key)

License

MIT

stable
2026/9/19
0.11.1stable
2026/9/19
0.7.7stable
2026/9/11
查看其余 3 个版本收起版本
0.7.5stable
2026/8/29
0.7.3stable
2026/8/24
0.7.0stable
2026/8/24

相关插件

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

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。
最新版
0.11.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/9/20
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录