DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Opencode Go Quota — DSH Plugin for DeepSeek Harness
← Plugins
O

@local/dsh-opencode-go-quota

Opencode Go Quota

Shows how much of the OpenCode Go usage allowance is left (5-hour, weekly, monthly) in the composer toolbar.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:tatudrag0n/dsh-opencode-go-quota#0e8aefddedc18e5a5f14a0bb775c5414055985f1
READMECompatibilityVersions

Compatibility and provenance

Opencode Go Quota is published as @local/dsh-opencode-go-quota and currently resolves to version 1.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/14/2026

Versions

1.0.0stable
10/14/2026

Related plugins

Loading related plugins…

Latest
1.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/16/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Cost Meterdsh-cost-meterDeepSeek Harness session cost statistics plugin: current session cost, today’s charges, historical records, and synchronization with official pricing; supports multi-provider, multi-model price calculation (built-in pricing catalog for 170+ model IDs with automatic matching); queries and displays su

README

OpenCode Go Quota — DSH Web plugin

OpenCode Go(月額プラン)の残り利用枠を、DeepSeek Harness の Web UI のコンポーザーに常時表示するプラグインです。

できること

  • コンポーザー左側のチップに、**いま最も厳しい枠の残り%**を表示(例: 週 72%)
  • クリックで詳細ポップオーバー: 5時間 / 週間 / 月間 の残り%・使用%・リセット時刻
  • 60秒ごとの自動更新(ポップオーバーの「更新」で即時更新も可能)
  • 残量に応じて緑 → 黄 → 赤に変化
  • 日本語 / 英語(DSH のロケールに追従)
  • 取得失敗時はエラーを表示しつつ、直前の値を「前回取得した値」として保持

仕組み

┌─ Browser ─────────────────────────────┐
│  client.js  … チップ + ポップオーバー  │
│      │ fetch("api/opencode-go.quota") │  認証付き・同一オリジン
└──────┼────────────────────────────────┘
       ▼
┌─ DSH Host ────────────────────────────┐
│  index.js   … /api/opencode-go.quota  │
│      │ 資格情報ストアから鍵を都度解決  │
└──────┼────────────────────────────────┘
       ▼
   GET https://opencode.ai/zen/go/v1/usage
   {"usage":{"rolling":{"percent":14,…}, "weekly":{…}, "monthly":{…}}}
  • 上流は使用率(percent)を返すので、プラグイン側で**残り%**に変換して表示します。
  • API キーは Host 側でのみ扱い、ブラウザには一切渡りません。
  • 鍵は毎リクエストごとに資格情報ストアから解決するため、ローテーション後も再起動不要です。

必要要件

  • DeepSeek Harness の Web プロファイル(connection サービスが必要)
  • OpenCode Go / Go Plus の API キー(oc_sk_...)

インストール

plugin_manager install_bundle  target: /path/to/dsh-opencode-go-quota

手動で入れる場合は、プロファイルの cordis.patch.yml に次を追加します。

- insert:
    - id: opencode-go-quota
      name: '@local/dsh-opencode-go-quota'

API キーは DSH の資格情報ストア($DSH_HOME/.credentials.yaml の refs)か、環境変数 OPENCODE_GO_API_KEY に設定してください。設定画面から Zen/Go を接続済みなら、その値がそのまま使われます。

設定

cordis.patch.yml の行に config を足すと変更できます(すべて任意)。

キー既定値説明
apiKeyEnvOPENCODE_GO_API_KEY解決する資格情報の参照名
baseUrlhttps://opencode.ai上流オリジン
refreshSeconds45上流レスポンスのキャッシュ秒数
timeoutMs15000上流リクエストのタイムアウト
- id: opencode-go-quota
  name: '@local/dsh-opencode-go-quota'
  config:
    refreshSeconds: 120

ファイル構成

ファイル役割
index.jsHost 半分。認証付きルートの登録と上流取得
client.jsClient 半分。チップとポップオーバーの描画
cordis.patch.ymlバンドルの行定義
package.jsonマニフェスト(dsh.bundle / dsh.client)
locale/{en,ja}.jsonPlugin Manager に出す表示名と説明
icon.svgプラグインのアイコン
test/smoke.mjsHost 半分のスモークテスト(依存パッケージ不要)

テスト

node test/smoke.mjs

資格情報ストアに鍵があれば実 API まで確認します(無い場合は「鍵なし」の挙動だけを検証します)。ネットワーク不要の経路(ルート登録・鍵なし応答)は常に検証されます。

注意

  • https://opencode.ai/zen/go/v1/usage は公式ドキュメントに記載のないエンドポイントです。予告なく変更・廃止される可能性があります。
  • 参照する DSH の内部 API(ctx.connection.fetch / スロット conversation.input.left / テーマトークン)は Harness のバージョンで変わることがあります。

License

MIT — LICENSE を参照してください。


English

A DeepSeek Harness Web plugin that shows the remaining OpenCode Go allowance (5-hour, weekly, monthly) as a compact chip in the conversation composer toolbar.

Remaining percentages come from GET https://opencode.ai/zen/go/v1/usage (undocumented), fetched by the Host half behind an authenticated same-origin route. The API key stays on the Host; the browser never receives it. The chip shows the tightest window and expands into a popover with all three windows and their reset times. Japanese and English are both supported via the DSH locale service.

Install with plugin_manager install_bundle pointing at this directory, and configure the credential reference with apiKeyEnv (default OPENCODE_GO_API_KEY).