편집자 노트

OpenCode Go 徽章

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

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.

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

OpenCode Go quota badge in the composer dock

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

REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

저장소가 MIT 라이선스를 선언했습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.