rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lelens0/dsh-token-ledger
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Token 账本 —— 自动读取 DSH 现有供应商(provider)配置,监测多个 LLM 网关的 token 余额与用量,以简洁悬浮面板展示。
llm-pi-ai.providers,无需重复填写 baseURL / key。/api/user/self,quota → USD)/dashboard/billing/subscription)/user/balance,CNY)~/.dsh/token-ledger.json 读取凭据)127.0.0.1:7890)CONNECT 隧道重试。安全:API 密钥与登录凭据仅在 Host(Node)进程内取用,不暴露给浏览器端;代码中不含任何明文密钥。
需账号登录的网关(HC / SupXH / Vyce)需要配置账号密码才能查询余额。
创建 ~/.dsh/token-ledger.json(独立于 settings.yaml,避免 cordis settings 未注册 namespace 的问题):
{
"hcnsec": { "username": "你的用户名", "password": "你的密码" },
"vyce": { "email": "你的邮箱", "password": "你的密码" },
"supxh": { "username": "你的用户名", "password": "你的密码" }
}
支持字段:
username/password。凭据仅本地读取,不暴露给浏览器端。
| 网关 | 余额接口 | 认证方式 | 单位 |
|---|---|---|---|
HC (api.hcnsec.cn) |
/api/user/self |
账号登录 → session | $USD |
SupXH (speed.toter.me) |
/api/auth/login |
账号登录 | 当日额度 |
Vyce (vyceai.com) |
/user/login |
账号 + CSRF/PoW | $USD |
| DeepSeek 官方 | /user/balance |
API Key | ¥CNY |
| 任意 OpenAI 兼容 | /dashboard/billing/subscription |
API Key | $USD |
# 从 GitHub 安装
dsh plugin --profile desktop add github:lelens0/dsh-token-ledger
安装后完全退出并重新打开 DSH Desktop 生效。
credentials.resolve() 取用,用于调用余额接口,不暴露给浏览器端。~/.dsh/.dsh-token-ledger.json。MIT License - Copyright (c) 2026 lelens0
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。