BigAdam-h/dsh-api-meter0

dsh-api-meter

多服务商 API 用量与余额监控插件,支持自动发现 DeepSeek、MiniMax、月之暗面及通用 OpenAI 兼容接口,提供余额仪表盘与 api_meter 代理工具。

AI 分析

核心用途是监控多服务商的 API 余额与用量。适合使用多模型 API 且需要实时掌握消费额度、避免因欠费导致服务中断的开发者和用户。

包名
dsh-api-meter
版本
0.1.0
最近更新
2026年8月22日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BigAdam-h/dsh-api-meter

配置

默认在 patch 层提供最小配置(provider 枚举 + 5 分钟刷新)。如需新增自定义通用 meter,编辑 ~/.dsh/profiles/web/cordis.patch.yml

- id: api-meter
  name: dsh-api-meter
  config:
    refreshIntervalMinutes: 5
    requestTimeoutMs: 15000
    backgroundRefresh: true
    genericMeters:
      - provider: my-gateway
        displayName: My Gateway
        balanceUrl: https://gateway.example.com/v1/balance
        balancePointer: data.balance
        apiKeyEnv: MY_GATEWAY_KEY