DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Coding Plan Quota — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
C

dsh-coding-plan-quota

Coding Plan Quota

Coding-plan quota ring next to the DSH model selector. Reads the quota windows or balances of every configured coding plan (OpenCode Go, GLM, Kimi, MiniMax, Claude, Codex, Gemini, Copilot and more), cycles 5-hour/weekly/monthly on click, colours the ring by urgency, and lets the hover card switch th

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:sxwer001/dsh-coding-plan-quota#35f1404764d5c0c3a6ae5d8b79e1a83ac3bacd8e
READMECompatibilityVersions
额度卡片来源选择

Description

Coding-plan quota ring next to the DSH model selector. Reads the quota windows or balances of every configured coding plan (OpenCode Go, GLM, Kimi, MiniMax, Claude, Codex, Gemini, Copilot and more), cycles 5-hour/weekly/monthly on click, colours the ring by urgency, and lets the hover card switch the displayed source.

Compatibility and provenance

Coding Plan Quota is published as dsh-coding-plan-quota and currently resolves to version 0.2.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/7/2026

Versions

0.2.1stable
10/7/2026
0.2.0stable
10/6/2026

Related plugins

Loading related plugins…

Latest
0.2.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/7/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Plugin@opencode2dsh/dsh-pluginFree OpenCode Zen models for DeepSeek Harness (DSH): native dsh-llm adapter plugin, no API key.

README

dsh-coding-plan-quota

DSH 输入框工具行里的一个额度圆环,就在模型选择器的左侧。它读取你的 coding plan 用量窗口或账户余额,同时只显示一个来源。

  • 点击圆环循环切换该来源的窗口:5 小时 → 每周 → 每月。纯余额类来源改为刷新。
  • 按紧急程度着色:绿 <50% → 蓝 <75% → 橙 <90% → 红 ≥90%。
  • 悬停可看到已用百分比、实时重置倒计时,以及每个窗口的进度条。
  • 卡片用一行 额度来源 · <名称> › 标出当前来源。点它即可切换——选择页只列能真正答上来的来源,其余收在开关后面。
  • 采集失败的来源会保留上一次成功的数字并标记 stale,而不是变成空白。

所选来源与窗口都会持久化在 localStorage。

截图

额度卡片 来源选择

安装

从 DSH 插件市场安装(分类 Usage & Billing),或在终端里直接装:

dsh plugin --profile web add dsh-coding-plan-quota                  # npm
dsh plugin --profile web add github:sxwer001/dsh-coding-plan-quota  # GitHub

装完请重启 DSH。

若要对着源码目录边改边调,用目录联接(junction)代替拷贝:

New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-coding-plan-quota" -Target "D:\Antigravityproject\dsh-coding-plan-quota"

来源

来源id凭据说明
OpenCode Goopencode-goOPENCODE_GO_API_KEY5 小时 / 每周 / 每月
智谱 GLMglmZHIPU_API_KEY5 小时 / 每周;region: cn 走 open.bigmodel.cn
KimikimiKIMI_API_KEY
MiniMaxminimaxMINIMAX_COOKIE要浏览器会话 Cookie,不是 API key
火山方舟arkARK_API_KEY没有公开额度地址——请自行填 endpoint
Claude 订阅claudeCLAUDE_CODE_OAUTH_TOKENOAuth token,不是 API key
Codex / ChatGPTcodexCHATGPT_ACCESS_TOKEN + CHATGPT_ACCOUNT_IDchatgpt.com 在部分网络下不可达
Gemini CLIgeminiGEMINI_ACCESS_TOKENcloudcode-pa.googleapis.com 在部分网络下不可达
GitHub CopilotcopilotCOPILOT_API_TOKEN若 TLS 代理拦握手,请设 insecureTls: true
DeepSeek 余额deepseekDEEPSEEK_API_KEY仅余额
Moonshot 余额moonshotMOONSHOT_API_KEY仅余额
OpenRouter 余额openrouterOPENROUTER_API_KEY仅余额
硅基流动余额siliconflowSILICONFLOW_API_KEY仅余额
阶跃星辰余额stepfunSTEPFUN_API_KEY仅余额
Novita 余额novitaNOVITA_API_KEY仅余额

没有凭据的来源只会说明它需要哪一个。厂商按 remaining 报的百分比会被反相成 used;当套餐按模型各报一个窗口时(GLM、Gemini),取最差的那个。

配置

apply(ctx, config) 会把配置合并到这些默认值之上:

键默认值含义
cacheMs60000每个来源的宿主侧缓存时长
timeoutMs12000上游请求超时
thresholds[50, 75, 90]绿 → 蓝 → 橙 → 红的分界
defaultProvider"opencode-go"还没选择时显示哪个
hideUnconfiguredfalse隐藏没有凭据的来源
insecureTlsfalse跳过证书校验
providers{}按 id 索引的单来源覆盖项

单来源覆盖项:

键含义
enabled设为 false 会把该来源从卡片里移除
endpoint替换内置地址(这也是启用 ark 的方式)
apiKey直接写字面量密钥,优先级高于其他所有凭据来源
apiKeyEnv改为从这个环境变量读取密钥
region"cn" 切换到该厂商的国内地址
insecureTls单来源覆盖全局开关
- insert:
    - id: coding-plan-quota
      name: dsh-coding-plan-quota
      config:
        thresholds: [50, 75, 90]
        defaultProvider: opencode-go
        providers:
          ark:
            endpoint: "https://<your-ark-quota-url>"

凭据

对每个来源,先命中者胜:providers.<id>.apiKey → providers.<id>.apiKeyEnv 指名的环境变量(或内置名称)→ DSH 的 credentials 服务 → $DSH_HOME/.credentials.yaml → 该厂商自己 CLI 的凭据文件(OpenCode、Claude、Codex、Gemini、Copilot 有)。

凭据只在宿主半边读取,绝不送到浏览器。

说明

  • 卡片跟随 DSH 当前 UI 语言(中 / 英)实时切换,自身没有语言设置。
  • 浏览器半边读取宿主半边的同源路由:/plugins/dsh-coding-plan-quota/usage.json(支持 ?refresh=1、?provider=<id>、?debug=1)。
  • 改 lib/host.js 需要重启 DSH;改 lib/client.js 只需刷新页面。
  • node scripts/verify.mjs 跑端到端检查。

目录结构

dsh-coding-plan-quota/
├── package.json          dsh.bundle.patch + dsh.client { platform: web }
├── cordis.patch.yml      - insert: [{ id, name }]
├── lib/
│   ├── host.js           宿主半边——来源、凭据、缓存、HTTP 路由
│   └── client.js        浏览器半边——圆环、卡片与来源选择
├── scripts/
│   └── verify.mjs        端到端检查
├── README.md             中文(默认)
└── README.en.md          English

许可

MIT