weijianguizhou/dsh-opencode-go-quota ↗★ 0

dsh-opencode-go-quota

DeepSeek Harness (DSH) plugin bundle showing your OpenCode Go remaining quota (5h / weekly / monthly) as a HUD beside the conversation and in the plugin settings. 适合需监控 OpenCode Go 配额的用户,需提供 workspaceId 与 Cookie。

패키지
dsh-opencode-go-quota
호환성
미검증
Cordis peer 범위
>=4.0.0
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 19.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:weijianguizhou/dsh-opencode-go-quota

2. 在 profile 配置里填上你的凭据(见下方「配置」)

配置

凭据只停留在本机,两种来源按优先级(高 → 低):

1. 配置文件(推荐)

在你 profile 的 cordis.patch.yml 里覆盖默认行:

- insert:
    - id: opencode-go-quota
      name: dsh-opencode-go-quota
      config:
        workspaceId: '你的workspaceId'
        authCookie: '你的browser-auth-cookie'   # 不是 sk- API key!
        timeoutMs: 10000        # 可选,抓取超时(毫秒)
        refreshMinutes: 5       # 可选,自动刷新间隔(分钟)

2. 环境变量(配置文件缺省时回退)

export OPENCODE_GO_WORKSPACE_ID=...
export OPENCODE_GO_AUTH_COOKIE=...

authCookie 在 schema 里标记为 role('secret'),永不进入任何响应或日志。


1. 配置文件(推荐)

在你 profile 的 cordis.patch.yml 里覆盖默认行:

- insert:
    - id: opencode-go-quota
      name: dsh-opencode-go-quota
      config:
        workspaceId: '你的workspaceId'
        authCookie: '你的browser-auth-cookie'   # 不是 sk- API key!
        timeoutMs: 10000        # 可选,抓取超时(毫秒)
        refreshMinutes: 5       # 可选,自动刷新间隔(分钟)

2. 环境变量(配置文件缺省时回退)

export OPENCODE_GO_WORKSPACE_ID=...
export OPENCODE_GO_AUTH_COOKIE=...

authCookie 在 schema 里标记为 role('secret'),永不进入任何响应或日志。