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-commandcode-quota

Commandcode Quota

DeepSeek Harness 的 Command Code 余额和配额面板:在编辑器下方显示余额以及 5 小时、每周和每月时间窗口。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-commandcode-quota@0.3.2
README兼容性版本

兼容性与来源证明

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

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

版本

0.3.2stable
2026/10/31
0.3.1stable
2026/10/29
0.3.0stable
2026/10/29
查看其余 5 个版本收起版本
0.2.3stable
2026/10/17
0.2.2stable
2026/10/10
0.2.1stable
2026/10/8
0.2.0stable
2026/10/8
0.1.0stable
2026/9/17

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

继续浏览 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-commandcode-quota

A Command Code balance and quota panel for DeepSeek Harness (DSH).

The plugin renders a compact status row directly underneath the DSH composer:

  • 5-hour, weekly and monthly usage windows as live percentages
  • Available balance
  • Click the row to expand the full breakdown: used / limit / remaining / reset time, total spend, tokens, daily spend, subscription and account information
  • Three status lights — normal / low balance / exhausted. The current one lights up and the others dim, driven by the official belowThreshold and exceeded fields; hover any light for an explanation
  • The bar color follows usage: cool while usage is low, warming up past 55%, red near the limit, with an internal gradient
  • Six bar palettes to choose from in the gear settings; the choice is remembered
  • Overrun warning: based on this period's daily average, the monthly card adds a line like “~N days until empty” when the remaining credit will not last until reset
  • A skeleton screen shows on first load so the layout does not jump when data arrives

It is single-account by design. There is no account switcher, and your API key never reaches the browser.

Requirements

  • DeepSeek Harness with the Web client (dsh web or the desktop app)
  • Node.js 20 or newer
  • A Command Code API key

Install

From npm (recommended)

dsh plugin add dsh-commandcode-quota

DSH expands the bundled cordis.patch.yml into your profile, so no manual patch editing is needed.

From a local checkout

dsh plugin add file:/path/to/dsh-commandcode-quota

Manual junction (desktop app)

The Electron desktop profile is managed by the application and does not run the dsh plugin add reconciliation, so register it yourself.

Link the package into the shared resolution pool:

New-Item -ItemType Junction `
  -Path "$env:USERPROFILE\.dsh\profiles\node_modules\dsh-commandcode-quota" `
  -Target "C:\path\to\dsh-commandcode-quota"

Then add this to ~/.dsh/profiles/<profile>/cordis.patch.yml:

- insert:
    - id: dsh-commandcode-quota
      name: 'dsh-commandcode-quota'
      config:
        apiKeyEnv: COMMANDCODE_API_KEY

The junction name must be exactly the package name, otherwise the host cannot resolve the import.

After installing or changing the plugin, reload the plugin tree (the plugin page's refresh action, or a client restart).

Configuration

KeyDefaultDescription
apiKeyEnvCOMMANDCODE_API_KEYCredential entry resolved through DSH's credentials service
fallbackEnv—Optional second entry, used only when the first one is missing
baseURLhttps://api.commandcode.aiCommand Code API origin
timeoutMs30000Per-request timeout in milliseconds

Credentials live in ~/.dsh/.credentials.yaml, or in DSH Settings → Credentials. Never commit them.

How it works

The package has two halves:

  • Host half (src/index.js) resolves the key through the DSH credentials service and registers a read-only HTTP endpoint that fans out to the Command Code API, then aggregates the responses into a single payload. The key is read on every request and never serialized to the client.
  • Client half (src/client.js) registers a status row into the composer dock slot, polls the host endpoint, and renders it with DSH theme tokens so light and dark themes both work.

Polling is tiered: balance every 3 minutes (cheap), usage and subscriptions every 30 minutes (expensive). Polling pauses while the page is hidden and refreshes fully when it comes back.

Data comes from four Command Code endpoints, each called with Authorization: Bearer <key>:

EndpointUsed for
GET /alpha/billing/creditsBalance and the 5-hour / weekly limits
GET /alpha/usage/summarySpend, tokens and the period start (for daily spend)
GET /alpha/billing/subscriptionsSubscription status and period boundaries
GET /alpha/whoamiAccount information

The monthly window is composed from the usage total plus the remaining credits, with the reset time taken from the subscription period.

Behaviour under failure

  • The four requests run in parallel, so total latency is the slowest one rather than the sum.
  • A connection-level failure is retried once; a deliberate timeout is not retried.
  • On failure the panel falls back to the last successful value (kept for 6 hours) and reports it as stale.
  • That snapshot is also written to $DSH_HOME/dsh-commandcode-quota-cache.json, so it survives a restart. It holds quota fields only — no account details, and never the key itself.
  • The snapshot is keyed by a fingerprint of the API key, so switching keys never reuses another account's data.
  • An HTTP 401 is never masked by cached data, because it means the credential itself is wrong.
  • When all four endpoints fail, the response carries a readable reason and the panel shows an error rather than a blank box.

Development

npm test                        # host and client unit tests; no network, no DSH process
node --check src/index.js       # host half syntax
node --check src/client.js      # client half syntax

The tests stub the credentials service, the web server, fetch and React, so they run offline and never touch a live DSH instance.

License

MIT