Skip to content

Releases: GHJIVHIDD/dsh-plugin-usage

dsh-plugin-usage v0.1.5

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 22:48

dsh-plugin-usage 0.1.5 (用量) — resolve key from the DSH credential store

The official quota card now reads your key from the DSH credential store — no environment setup needed.
官方配额卡片现在直接从 DSH 凭据库读取你的 Key——无需任何环境配置。

What changed

  • The key is resolved through the DSH credentials service (~/.dsh/.credentials.yaml → env → .env), the exact same chain the llm-pi-ai / deepseek providers use
  • Ref names probed: OPENCODE_GO_API_KEY (opencode-go provider), DEEPSEEK_API_KEY, plus the dedicated DSH_OPENCODE_GO_KEY env
  • New runtime dependency: @deepseek-ai/dsh-credentials

Upgrade

curl -L -o dsh-plugin-usage.tgz https://github.com/GHJIVHIDD/dsh-plugin-usage/releases/download/v0.1.5/deepseek-ai-dsh-plugin-usage-0.1.5.tgz
dsh plugin --profile web add ./dsh-plugin-usage.tgz

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

dsh-plugin-usage v0.1.4

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 22:42

dsh-plugin-usage 0.1.4 (用量) — auto-detect your OpenCode Go key env

The official quota card now picks up the key your DSH is already using.
官方配额卡片现在会自动复用你 DSH 正在使用的 OpenCode Go Key。

Changes

  • The plugin probes the API key from the environment in order:
    1. DSH_OPENCODE_GO_KEY (dedicated, recommended)
    2. OPENCODE_GO_API_KEY — the env used by the llm-pi-ai opencode-go provider config
    3. DEEPSEEK_API_KEY — deepseek provider default env
  • No manual configuration needed if your DSH already runs the opencode-go provider

Install / upgrade

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.4/deepseek-ai-dsh-plugin-usage-0.1.4.tgz
dsh plugin --profile web add ./dsh-plugin-usage.tgz

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

dsh-plugin-usage v0.1.3

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 22:36

dsh-plugin-usage 0.1.3 (用量) — fix double counting

Cache hit / input / output now match the local DSH trajectory view.
修复重复计数:Cache hit 等数字现已与 DSH 本地(轨迹视图)一致。

Root cause

  • The llm/stream wrapper marked a live record done the moment the stream ended, but the assistant/message commit arrives after that, so the reconcile step never matched and every call was recorded twice (input/output/cache-hit all doubled).

Fix

  • Reconcile now matches any live record of the same model in the 15s window (status no longer required) and overwrites with exact usage
  • Verified with an event-order simulation: 1 record, correct totals

Install / upgrade

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.3/deepseek-ai-dsh-plugin-usage-0.1.3.tgz
dsh plugin --profile web add ./dsh-plugin-usage.tgz

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

dsh-plugin-usage v0.1.2

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 22:33

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

dsh-plugin-usage v0.1.1

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 22:15

dsh-plugin-usage 0.1.1 (用量) — price update

OpenCode Go plan prices updated to the latest official card.
OpenCode Go 套餐价格已更新至最新官方价目。

Changes

  • DeepSeek V4 Pro: off-peak $0.66/$1.98/$0.022, peak $1.32/$3.96/$0.044, quota $15
  • DeepSeek V4 Flash: off-peak $0.22/$0.66/$0.007, peak $0.44/$1.32/$0.014, quota $15 (was $60)
  • Plan cards now support two-tier peak/off-peak billing for DeepSeek models
  • Price table & edit form show plan peak/off-peak fields; docs updated

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.1/deepseek-ai-dsh-plugin-usage-0.1.1.tgz
dsh plugin --profile web add ./dsh-plugin-usage.tgz

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

dsh-plugin-usage v0.1.0

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 16:09

dsh-plugin-usage 0.1.0 (用量)

Deployment-level real-time usage & cost dashboard plugin for DeepSeek Harness.
DSH 部署级用量插件:实时跟踪会话输入/输出/缓存命中 tokens 与费用。

Features

  • 用量 tab next to chat/trajectory (native UI)
  • Live streaming estimates refreshed every second
  • DeepSeek official peak/off-peak pricing + OpenCode Go plan pricing
  • Editable custom price table (persisted, dynamic re-pricing)
  • CSV/JSON export

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.0/deepseek-ai-dsh-plugin-usage-0.1.0.tgz
dsh plugin --profile web add ./dsh-plugin-usage.tgz

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