0x-0cd/dsh-opencode-go-status ↗★ 0
dsh-opencode-go-status
OpenCode Go 订阅状态面板(DSH Web):套餐用量额度、剩余额度、订阅到期时间与续费状态。 适合需要实时监控OpenCode Go套餐额度与到期时间的DSH Web用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:0x-0cd/dsh-opencode-go-statusREADME
Read the full README ↗配置
配置写在组合条目里(cordis.patch.yml 的 insert 行下加 config:):
| 字段 | 默认值 | 说明 |
|---|---|---|
apiKey | 无 | 直接写死 API key(不推荐,优先用凭证) |
apiKeyRef | OPENCODE_GO_API_KEY | DSH 凭证引用名,与 opencode-go provider 的 apiKeyEnv 一致 |
statusURL | https://opencode.ai/console/api/go/status | 上游状态接口 |
timeoutMs | 15000 | 请求超时 |
cacheSeconds | 30 | 宿主端缓存窗口,避免面板轮询反复打上游 |
enabled | true | 总开关 |
密钥解析顺序:apiKey → DSH 凭证服务(apiKeyRef,覆盖 $DSH_HOME/.credentials.yaml、
启动环境、.env 各层)→ 进程环境变量。密钥只在宿主进程内使用,不进入浏览器;浏览器
只访问同源路由 /api/dsh-opencode-go-status/status。