xraywu/dsh-service-monitor ↗★ 0

dsh-service-monitor

定时监控并展示第三方服务 API 余额的看板 适合使用 Tavily、博查等第三方服务并需监控额度的用户。

包名
dsh-service-monitor
兼容性
待验证
版本
1.0.0
最近更新
2026年10月6日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xraywu/dsh-service-monitor

使用

  1. 打开看板(侧边栏图标,或「设置 → 服务余额监控」)。
  2. 在卡片上点「填写密钥」,粘贴对应服务的 API Key,回车或点保存。
  3. 用卡片右上角的开关启用 / 停用服务,用看板顶部的分段控件选择刷新间隔。
  4. 点「立即刷新」可随时查询;卡片会显示剩余额度、总量、进度条、套餐、耗时。

额度低于 15% 转黄、为 0 转红,并在侧边栏图标的角标上体现。

配置

插件的 cordis.patch.yml 只提供首次启动的默认值;之后用户在面板里的改动写在上面那个状态文件里,不会回写 profile,因此升级插件不会丢配置。

- insert:
    - id: service-monitor
      name: dsh-service-monitor
      config:
        intervalMinutes: 10          # 1 | 5 | 10 | 30,其它值回落 10
        services: [tavily, bocha, firecrawl, serpapi, tinyfish]
        autoRefresh: true
        trustedHosts: []             # 额外允许的 Host 头(反代场景)