5777-wq/dsh-opencode-go-quota ↗★ 0
dsh-opencode-go-quota
Query OpenCode Go subscription usage (rolling 5h / weekly / monthly) from the DSH Web UI and as an agent tool.
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/5777-wq/dsh-opencode-go-quota/releases/latest/download/dsh-opencode-go-quota.tgz說明文件
閱讀完整 README ↗配置(可选)
在 cordis.patch.yml 的插件行 config 中覆盖任意字段:
- id: dsh-opencode-go-quota
name: dsh-opencode-go-quota
config:
apiKey: oc_sk_xxx # 直接指定密钥(默认空)
apiKeyEnv: OPENCODE_GO_API_KEY
baseUrl: https://opencode.ai
cacheTtlMs: 30000 # 路由/工具的缓存时长
timeoutMs: 10000
sessionsRoot: D:/DeepseekHarness/home/sessions # 默认 $DSH_HOME/sessions
insightsTtlMs: 300000 # 用量洞察的扫描缓存
insightsProvider: opencode-go # 只统计这个 provider 的调用
# prices: # 覆盖/补充价目表(USD / 百万 token)
# deepseek-v4.1-flash: { input: 0.15, output: 0.6, cacheRead: 0.003, cacheWrite: 0 }
价目表来自 DSH pi-ai 集成自带的 opencode-go.json 快照(2026-10-15);不在表里的模型只统计 token、金额显示「—」,不会瞎猜。长上下文的阶梯加价(tiers)没建模,按基础价算。