treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Tieboyh/dsh-usage-center
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 简体中文
A native usage and cost dashboard for DeepSeek Harness Web. It adds a dedicated Usage & Cost section to DSH Settings and keeps provider usage, subscription quotas, balances, API estimates, and annual activity in one place.


API estimates answer: “What would the same token usage cost at public API rates?” They are not invoices and are not treated as subscription charges.
DSH_USAGE_CENTER_CATALOG_URL points it at another source.src/pricing.js dated later than the catalog entry wins, so hand-verified rates (and DeepSeek’s off-peak figures, which bill double during peak hours) stay authoritative.>= 22.19.0.dsh plugin --profile web add dsh-usage-center
Restart DSH Web after installing:
dsh web
The npm package and repository include a prebuilt plugin bundle, so installation does not require pnpm allowBuilds configuration. To install directly from GitHub, use github:Tieboyh/dsh-usage-center as the package name.
git clone https://github.com/Tieboyh/dsh-usage-center.git
cd dsh-usage-center
npm install
npm run check
dsh plugin --profile web add "$PWD"
Use the source workflow when developing or modifying the plugin. Restart DSH Web after installing, upgrading, or removing it.
The plugin reuses DSH credentials. API keys are resolved only by the server process and are never returned to the browser or written into the snapshot.
| Credential | Purpose |
|---|---|
DEEPSEEK_API_KEY |
Reads the DeepSeek account balance. |
ZAI_CODING_CN_API_KEY |
Reads quota windows for a China-region Z.ai Coding Plan. |
ZAI_API_KEY |
Fallback credential for a Z.ai Coding Plan. |
ZAI_API_REGION |
Optional Z.ai region override. |
KIMI_CODING_API_KEY |
Reads the Kimi Code membership tier and subscription quota windows. |
Usage is derived locally from DSH session events. Repeated cumulative usage samples for the same turn and step replace earlier samples instead of being double-counted.
ctx.sessions snapshotEvents; stored sessions through sessionPersistence open/read, skipping any session whose revision and read cursor are unchanged.inheritedEventCount, so inherited parent history is never counted twice.<DSH_HOME>/storages/usage-center-snapshot.json.revision changes.<DSH_HOME>/storages/usage-center-catalog.json and not downloaded again within 12 hours.GET requests from loopback clients only.GET for public model rates; no local data is uploaded.npm install
npm run check
npm run build
npm run check performs syntax checks and runs the Node test suite. npm run build updates the committed DSH client and server bundle in lib/; the committed bundle makes the GitHub one-line install work without dependency build approval.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: api。