Hongcheng-LI/dsh-magpie-quota ↗★ 0

dsh-magpie-quota

All provider quotas and prepaid balances from your local Magpie AI gateway (auto-discovers its port) inside the DSH composer: per-window usage bars, remaining percent, reset countdowns, and money-balance accounts.

パッケージ
dsh-magpie-quota
互換性
未検証
バージョン
0.4.2
ライセンス
MIT
最終更新
2026/11/04

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hongcheng-LI/dsh-magpie-quota

ドキュメント

README 全文を読む ↗

让「第三方中转站 / 自定义充值」也显示余额(在 Magpie 侧配置)

插件本身只读 Magpie,因此能不能显示某家的余额,取决于 Magpie 有没有给它配余额探测。 Magpie 的 provider 支持这几个键(CLI 就是同一个 magpie.exe):

键含义
balance=余额查询地址
balance.path=金额在响应里的位置,可用 + - * / 和括号组合;$ 或 .. 前缀取带符号值;末尾 % 表示按 1 的比例显示成百分比
balance.method=GET|POST只回答 POST 的端点用这个
balance.token=余额端点要的令牌(与聊天 key 不同时用)
header.X-Foo=附加请求头(如 new-api 的 New-Api-User)

常见写法:


# OpenAI 兼容中转站(/dashboard/billing/credit_grants、/v1/usage 之类)
magpie provider add "My Relay" url=https://relay.example.com/v1 key=sk-... `
  balance=https://relay.example.com/api/usage/token balance.path='$data.total_available / 500000'