Catalog npm
PACKAGE EXPLORERView in registry

@0rch1d/dsh-client-ui-opencode-go

npm

OpenCode Go usage meter for DeepSeek Harness: a live quota ring and hover card for the opencode-go provider.

Versions collected3
Direct dependencies12From release 1.0.2
Last observed20 Oct, 22:14 UTC

README

Current package documentation

@0rch1d/dsh-client-ui-opencode-go

OpenCode Go usage meter for the DeepSeek Harness Web GUI.

Shows a live quota badge in the session header — beside the title, in the same action row as the subagent / jobs / preset buttons — whenever the selected model provider is opencode-go:

  • an OpenCode mark beside a usage ring that starts as a dashed circle and fills with a solid arc as the rolling 5-hour window is consumed;
  • hovering opens a card with three progress bars — rolling / weekly / monthly usage, each with its reset countdown;
  • a rate-limited window renders in an amber warning color.

Install

dsh plugin --profile web add @0rch1d/dsh-client-ui-opencode-go

Configure

Add your OpenCode Go API key to the harness credential store ($DSH_HOME/.credentials.yaml, mode 0600):

OPENCODE_GO_API_KEY: sk-...

The key stays server-side: the host half reads it through the credential seam and serves only the usage summary to the browser. It never reaches the client bundle and is never hardcoded in this package.

How it works

  • Host half reads OPENCODE_GO_API_KEY from ctx.credentials, fetches GET https://opencode.ai/zen/go/v1/usage, caches it with a 60s TTL, and serves it on a same-origin route /opencode-go/usage.
  • Browser half polls that route every 60s and renders the ring + hover card.
  • The upstream API is hit at most once per minute regardless of how many sessions are open.

Notes

  • The badge only appears while the selected provider id is opencode-go.
  • The usage route is served on the DSH web server (127.0.0.1 by default) and returns usage percentages only, never the API key.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.2Registry latest13 Aug 202612
1.0.113 Aug 202612
1.0.013 Aug 202612

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:08fb032ce8c216274286fad0f609f3a332c06ee5f296bfa0da17d51546bf4cde