DeepSeek Harness plugin

opencode-usage

OpenCode Go 订阅额度徽章插件(dsh bundle) | OpenCode Go quota badge plugin for dsh

Jump to install

Source facts

Repository
AmaTsumeAkira/opencode-usage
Latest update
Aug 14, 2026
Category
Tools & Capabilities
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/AmaTsumeAkira/opencode-usage
Plugin: opencode-usage
Author: AmaTsumeAkira

Check the source files

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

File explorer4 files
README.mdSource · read only
README language

opencode-usage

English | 中文

OpenCode Go quota badge plugin (bundle) — shows rolling / weekly / monthly quota usage and reset times for OpenCode Go right in the dsh Web UI.

Screenshot

![OpenCode Go quota badge in the composer dock](docs/screenshot.png)

![OpenCode Go quota badge in the composer dock](docs/screenshot.en.png)

Features

  • Renders the three quota windows (rolling / weekly / monthly) as colored percentages (green → amber → red by usage) with reset countdowns in the composer dock
  • Shows the last fetch time ("updated M/D HH:mm"), switching to "updating…" while a refresh is in flight
  • Click the "OpenCode Go" label to refresh the quota manually
  • Auto-refreshes every 5 minutes
  • The API key lives only inside the harness process: resolved per request through the credentials service, passed to curl via an environment variable, never serialized to the browser or logs

Install

This package follows the official dsh bundle format: it ships prebuilt artifacts (lib/ is committed to the repo) and has no install scripts, so a git install needs no pnpm allowBuilds grant.

dsh plugin --profile web add github:AmaTsumeAkira/opencode-usage

Or install from a local directory:

dsh plugin --profile web add ./opencode-usage

Uninstall:

dsh plugin --profile web remove opencode-usage

Credentials

The plugin reads OPENCODE_GO_API_KEY through the official credentials service (either the environment or ~/.dsh/.credentials.yaml):

# ~/.dsh/.credentials.yaml
OPENCODE_GO_API_KEY: your-opencode-go-api-key

Without a configured key the badge shows "获取失败" (fetch failed).

Layout

opencode-usage/
├── package.json       # dsh.bundle + dsh.client(web) manifest
├── cordis.patch.yml   # plugin row insertion layer
├── lib/index.js       # host half: /opencode-usage route (ESM, zero deps)
└── lib/client.js      # browser half: composer-dock badge (__ModuleLoader__ format)

License

MIT