其他
完整应用
deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
右下角悬浮的 DeepSeek API 余额监视器 —— 为 DeepSeek Harness (DSH) 实时显示账户余额与用量费用。
DEEPSEEK_API_KEY 凭证,无需手动填写余额数据来自官方接口 GET https://api.deepseek.com/user/balance;
用量数据来自本机 DSH 会话日志的真实 token 统计(按官方价格换算费用),
更早的历史因本地无账单记录以灰色示意柱展示。
dsh plugin --profile web add "github:<你的用户名>/dsh-deepseek-balance#main"
然后重启 dsh --profile web,右下角即可看到余额徽章。
在 ~/.dsh/.credentials.yaml 中配置:
DEEPSEEK_API_KEY: sk-xxxxxxxxxxxxxxxxxxxxxxxx
pnpm install
pnpm build # tsc 编译 Host + tsdown 打包 Client
产物结构:
lib/index.js — Host 半(RPC handler:余额/用量查询)lib/client.js — Client 半(悬浮徽章 UI,__ModuleLoader__ bundle)┌──────────────┐ connection.rpc.call ┌──────────────────────────┐
│ Browser UI │ ──────────────────────▶ │ Host (Node) │
│ shell.overlay│ /deepseek-balance │ ├─ credentials.resolve │
│ 悬浮徽章+图表 │ ◀────────────────────── │ ├─ shell curl 余额 API │
└──────────────┘ RpcResult │ └─ sessionQuery 用量统计 │
└──────────────────────────┘
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。