rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:reoanrudo/dsh-usage-panel
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
All your AI coding subscriptions in one popup — for DeepSeek Harness (DSH).
GLM (Z.AI) / opencode go / Codex (ChatGPT) / Claude / DeepSeek / Command Code usage, shown as clean cards in a sidebar popup. Quota-reset credits (GLM / Codex) can be spent from the panel. No dependencies — Node.js 18+ only.


localStorage; the header button resets it.node usage.mjs prints the same data in your terminal (--json for scripting).bundle folder of this repository.Web profile: dsh plugin --profile web add <path-to>/dsh-usage-panel/bundle.
The panel mounts a small usage-server on 127.0.0.1:50071 when DSH loads the plugin — no manual steps, no background daemon. Open it from the Usage button at the bottom of the sidebar.
The server reads tokens locally only — nothing is sent anywhere except the official endpoints of each service. Tokens never reach the browser side.
| Service | Source |
|---|---|
| GLM resets | ~/.zcode/v2/credentials.json (ZCode's encrypted store, decrypted in-process) |
| Codex / Claude | ~/.dsh/plugins/subscriptions/auth.json (DSH subscription logins) |
| DeepSeek | balance snapshot from @linxin666/dsh-usage if installed |
| opencode go | ~/.local/share/opencode/account.json + official usage API |
| GLM usage | ZAI_API_KEY env or ~/.config/opencode/opencode.json |
| Command Code | COMMANDCODE_API_KEY env or ~/.dsh/.env |
Services without credentials are simply not shown.
Resets are irreversible, so the local server requires:
x-sup-reset: 1) + JSON content-type — plain cross-site POSTs cannot reach itOrigin (dsh-app://app, 127.0.0.1, localhost, [::1])Codex / Claude usage numbers come from unofficial endpoints and may break when those services change. Everything else uses official APIs.
node usage.mjs # GLM + opencode go
node usage.mjs glm # GLM only
node usage.mjs --json # JSON output
node server.mjs # standalone usage server (usually unnecessary)
See docs/add-provider.md for a 3-step guide: write a fetcher, register it in fetchAllSubscriptions, and drop a 64px icon. The server contract is one small JSON object — see the table there.
node verify.mjs # bundle syntax / module contract / boundary checks
This panel calls non-official endpoints for two services. Know before you use:
chatgpt.com/backend-api/wham/* endpoints. OpenAI's Terms of Use prohibit programmatically extracting data and circumventing rate limits; spending a reset credit is an action ChatGPT itself offers in its UI, but automated consumption is your judgement call.zcode.z.ai API the official ZCode app calls with the same account tokens. Z.AI's Usage Policy limits the plan to officially supported tools — a third-party panel may fall outside that wording.Everything else (opencode go, Command Code) uses documented official APIs with your own API keys. If any of this is not acceptable to you, remove the corresponding card by not connecting that service — the panel simply hides services without credentials.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。