dsh-third-party-api-balance-wallet
Compact DSH wallet panel for any Sub2API-compatible third-party balance site. Uses /v1/usage with a long-lived API Key, auto-discovers configured providers, and shows balance plus daily usage.
通用 Sub2API 第三方余额面板:使用 /v1/usage 和长期 API Key,自动发现 DSH provider,显示余额及今日用量。
How to install
dsh plugin add github:Mengshang-spec/dsh-third-party-api-balance-wallet About
dsh-wallet-switcher 当前版本:0.2.4 这是一个“第三方 API 接入 DSH 查询余额插件”,按原来 CC Switch 的用量脚本方式查询账户余额。 它默认发送的请求为(其他站点可以在设置里改地址): text GET https://hgapi.dieqiyun.top/api/v1/auth/me?timezone=Asia%2FShanghai Authorization: Bearer <网页登录令牌> User-Agent: cc-switch/1.0 插件读取返回里的 data.balance,显示单位为 CNY,同时兼容顶层 balance。/api/v1/subscriptions/active 只返回订阅列表,不是余额接口。 安装后怎么用(最简单) 1. 重启 Harness,让它重新加载插件。 2. 在 Harness 输入框底部找到“钱包余额”,点右侧的设置图标(齿轮)。 3. “余额接口地址”已经自动填好。使用楪祈云时不要改这一栏。 4. 只填写“网页登录令牌”这一栏,然后点“保存”。 5. 从 F12 复制令牌时,复制以下任一种都可以: 只复制 Bearer eyJ...; 或复制整行 Authorization: Bearer eyJ...。 6. 插件会自动查询;需要再次查询时点刷新图标(↻)。成功后显示 余额 CNY。 注意…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 1
- mo. downloads
- –
- Last push
- 2026-09-22
- Created
- 2026-08-27
Links
Basic safety check
- Findings
- curated 收录但无 npm 包/安装命令
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- balance, deepseek-harness, dsh-plugin
Related plugins
TokenLedger
zh667/TokenLedger
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
dsh-context
bowenliang123/dsh-context
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
dsh-usage-statistics-panel
HaoyueQin/dsh-usage-statistics-panel
Usage statistics settings panel: 26-week activity heatmap, daily token trend with a cache hit-rate curve, per-model donut and breakdown, time-range filters, summary cards, one-time historical backfill and lossless rebuild.
dsh-all-usage
ParticleLight/dsh-all-usage
Analyze usage across models, providers, workspaces, and time ranges — including custom start/end dates over the full retained history — with live cache-hit visibility and separate model and provider breakdowns. Includes hourly single-day trends, daily cross-day trends, a 53-week GitHub-style heatmap, usage streaks, model and workspace Token-share donut charts with Token, cost, and percentage details, independent combinable filters, cache-efficiency trends, DeepSeek account balance, workspace aliases, CSV export, and a durable ledger that preserves successfully flushed usage after session deletion — and after a workspace is deleted, where its recorded usage is summed into one Deleted row — and rebuilds incrementally — on restart, unchanged sessions are applied from the ledger without re-reading their logs (a per-session log revision is the change signal), and only changed/new events are folded. The workspace registry is kept fresh automatically through the DSH domain/changed probe: only added/removed workspaces are reprocessed incrementally, unchanged workspaces reuse their computed aggregates and ledger with zero rescan, and usage is strictly limited to DSH-registered workspaces (unregistered cwds are ignored). After a scan, lightweight revision status fetches full history only when the Host/data state changes and exposes non-sensitive sync health (revision reuse, rereads, ledger recovery, and failures). Token accounting is explicit: input is fresh (cache read/write and reasoning are separate buckets) and zero-usage replays never overwrite recorded usage. Chinese uses local time, English uses UTC; API access is loopback-only.