HugoOu/dsh-opencode-go-eta ↗★ 1

dsh-opencode-go-eta

采样并预测OpenCode Go额度消耗及到期时间 适合需要监控OpenCode Go套餐额度并预测耗尽时间的付费用户。

包名
dsh-opencode-go-eta
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年10月24日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HugoOu/dsh-opencode-go-eta

Configuration

Add to your profile's cordis.patch.yml to override the defaults:

- id: opencode-go-eta
  name: dsh-opencode-go-eta
  config:
    apiKeyRef: OPENCODE_GO_API_KEY   # credential reference, not the key itself
    anchors: [3, 9, 15, 21]          # local hours; [] disables timed sampling
    sampleIntervalMs: 1200000        # minimum gap between implicit samples
    staleAfterMs: 2700000            # a read this old triggers a fresh sample
    retentionDays: 45
    planName: Go                     # shown in the card
    planPriceUsd: 10                 # price of one period, used by the advice
    modelLabel: DeepSeek V4.1 Flash
    modelAllowancesUsd:
      deepseek-v4.1-flash: 80        # Go table; use 160 for Go Plus
    pricingModel: deepseek-v4.1-flash
    pricingUrl: https://models.dev/api.json
    pricingTtlMs: 43200000

The API key is resolved through the Harness credentials service (OPENCODE_GO_API_KEY); it never reaches the browser.