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

dsh-opencode-go-eta

OpenCode Go quota widget for DeepSeek Harness: samples the plan a few times a day, projects when the monthly allowance runs out, and compares that ETA with the renewal date. 适合需要监控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.