BigAdam-h/dsh-api-meter0

dsh-api-meter

Multi-provider API usage & balance monitor for DeepSeek Harness: dynamic provider discovery (DeepSeek / MiniMax / Moonshot / generic OpenAI-compatible), balance & quota dashboard, and an api_meter agent tool.

AI 分析

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

パッケージ
dsh-api-meter
バージョン
0.1.0
最終更新
2026/08/22

インストール

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

ドキュメント

README 全文を読む ↗

配置

默认在 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