Skip to content

dsh-plugin-usage v0.1.2

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 22:33
· 6 commits to main since this release

dsh-plugin-usage 0.1.2 (用量) — official account quota

Plan quota now matches the OpenCode Go console.
套餐配额现已与 OpenCode 官方控制台一致。

Changes

  • New "OpenCode Go official quota" card: account-level rolling (5h) / weekly / monthly usage percentages and reset times, fetched from the official GET https://opencode.ai/zen/go/v1/usage API (Bearer key)
  • API key read from env only: DSH_OPENCODE_GO_KEY (recommended) or DEEPSEEK_API_KEY (auto when the deepseek provider uses the OpenCode Go gateway); never stored or logged
  • Per-model plan cost/quota accounting in the session overview (no more misleading single quota bar)

Install

dsh plugin --profile web add github:GHJIVHIDD/dsh-plugin-usage
# or from this release tarball:
curl -L -o dsh-plugin-usage.tgz https://github.com/GHJIVHIDD/dsh-plugin-usage/releases/download/v0.1.2/deepseek-ai-dsh-plugin-usage-0.1.2.tgz
dsh plugin --profile web add ./dsh-plugin-usage.tgz
# set the OpenCode Go API key before starting dsh:
export DSH_OPENCODE_GO_KEY=sk-...

Docs: README.md (EN) / README.zh.md (中文) · MIT License