DeepSeek Harness plugin

dsh-opencode-go-usage-kkishapppy

OpenCode Go 订阅用量小部件:滚动/周/月用量百分比与重置倒计时,右下偏中悬浮显示(服务端代理 opencode.ai/zen/go/v1/usage + 浏览器小部件,key 不落浏览器)

Jump to install

Source facts

Repository
kkishapppy/dsh-opencode-go-usage
Latest update
Aug 14, 2026
Category
Usage & Billing
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/kkishapppy/dsh-opencode-go-usage
Plugin: dsh-opencode-go-usage-kkishapppy
Author: kkishapppy

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-opencode-go-usage

OpenCode Go 订阅用量悬浮小部件:在 DSH Web GUI 右下角实时显示滚动/周/月用量百分比与重置倒计时

功能

  • 右下角悬浮胶囊:ⓖ 滚动 0% · 周 2% (2天13时) · 月 1% (30天18时)
  • 每 60 秒自动刷新 + 窗口切回前台即刷新
  • 样式跟随 DSH 主题(--dsw-alias-* token,深浅主题/皮肤自动适配)
  • API key 只存在服务端(经 dsh 凭据服务解析),不落浏览器

原理

  • 服务端代理 GET https://opencode.ai/zen/go/v1/usage(Bearer sk-,OpenAI 兼容端点实测 200)→ 暴露为 /plugins/dsh-opencode-go-usage/usage(60s 缓存)
  • 浏览器 half 挂 document.body 顶层(position: fixed 不受容器 transform/backdrop-filter 影响)

安装

dsh plugin --profile web add dsh-opencode-go-usage

配置(profiles/<profile>/cordis.patch.yml):

- id: opencode-go-usage
  config:
    apiKeyEnv: OPENCODE_GO_API_KEY   # 凭据名(默认 OPENCODE_GO_API_KEY)
    cacheMs: 60000                   # 服务端代理缓存毫秒

key 通过 dsh 凭据服务解析(.credentials.yaml 或 GUI Models 页配置),与 llm-pi-ai 同源。

开发

npm i
npx -y tsdown@0.22.2 --config ./tsdown.config.ts
# 服务端改动需重启 DSH;client 改动硬刷新页面即生效

License

MIT