feiyang-dev/dsh-usage-plugin
C3DeepSeek Harness 用量与消耗插件(dsh-usage-plugin)—— 每次调用的 token 用量/缓存命中统计、峰谷计费、余额查询、CSV/JSON/PNG 导出,可经桌面端一键安装或命令行 dsh plugin add 安装。
★ 10+ · feiyang-dev/dsh-usage-plugin source on GitHub · this plugin in the registry
feiyang-dev/dsh-usage-plugin is a DeepSeek Harness plugin rated C3 — powerful capability combined with sensitive behavior. It patches the dsh runtime, can spawn subprocesses, executes system commands, decodes base64 payloads.
What it can do
| Capability | Flag | Evidence |
|---|---|---|
| patches the dsh runtime | runtime_patch | ./cordis.patch.yml |
| can spawn subprocesses | subprocess_service | inject: subprocess |
| executes system commands | exec | ×2 src, e.g. lib/index.js:491, lib/index.js:693 |
| decodes base64 payloads | base64_decode | ×1 src, e.g. lib/index.js:592 |
| reads credential-class env vars | token_env | BALANCE_API_KEY |
Services it injects
agents credentials fs sandboxPolicy slots subprocess webServer
Hooks it attaches
llm/stream
Outbound domains
api.deepseek.com
Environment variables it reads
DSH_HOME PNG_PATH OUT_PATH BALANCE_API_KEY MKDIR_PATH
How to read this
Levels measure capability surface and transparency, not maliciousness. A C3 plugin can be entirely legitimate — a desktop shell genuinely needs subprocesses. The point is that you can see this before installing. See the levels explained and how dsh plugins work.
Findings come from static analysis of shipped code; nothing is executed. Think a flag is wrong? Open an issue — every flag cites the file and line it came from.