treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:myname1234/dsh-deepseek-usage
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A persistent DSH Web UI plugin that adds a DeepSeek 用量 entry to the left sidebar and opens a visual dashboard in the main column.
dsh plugin --profile <profile> add github:myname1234/dsh-deepseek-usage
The package is plain JavaScript with no build step, so the GitHub install needs
no allowBuilds approval. In the Web UI, Plugins → Add plugin accepts the
same GitHub spec.
GET /user/balance endpoint
(total, topped-up, and granted amounts, plus the low-balance state).Token usage is folded from this Harness profile's durable Session logs (the
assistant/message usage records), so it survives restarts and does not
double-count inherited events in forked Sessions. Live Sessions appear through
the session/event feed without waiting for a refresh.
The bundle patch gives the Host row these optional values:
- id: deepseek-usage
name: '@local/deepseek-usage'
config:
credentialRef: DEEPSEEK_API_KEY # Harness credential reference
pollSeconds: 5 # browser poll interval
balanceTtlSeconds: 60 # Host-side balance cache
scanIntervalSeconds: 300 # new-Session discovery interval
credentialRef is resolved through ctx.credentials; the secret never reaches
the browser. If the key is absent, the Host falls back to the signed-in
deepseekAccount balance. Balance failures never hide token statistics.
deepseek is aggregated.The plugin is plain ESM + a plain JavaScript browser bundle; there is no build step. Validate with:
node --check index.js
node --check client.js
Install the directory through DSH's Plugin Manager. The Host half registers the
authenticated /api/deepseek-usage Fetch route; the Client half renders into
sidebar.panellist and main.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: api。