xiaomao66666/dsh-deepview ↗★ 0
dsh-deepview
DeepSeek Harness plugin: watch your OpenCode Go plan quota and DeepSeek API balance right inside the web GUI settings 适合需在 DSH 界面监控用量与余额的用户,需配置端点。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
Configuration
Host-side tunables live on the plugin row in cordis.yml:
- id: deepview
name: dsh-deepview
config:
baseUrl: https://opencode.ai/zen/go/v1/usage # default
deepseekBaseUrl: https://api.deepseek.com/user/balance # default
timeoutMs: 15000 # default
| Key | Default | Meaning |
|---|---|---|
baseUrl | https://opencode.ai/zen/go/v1/usage | The OpenCode Go usage endpoint. |
deepseekBaseUrl | https://api.deepseek.com/user/balance | The DeepSeek balance endpoint. |
timeoutMs | 15000 | Fetch timeout in milliseconds. |
The usage endpoints
OpenCode Go quota
GET https://opencode.ai/zen/go/v1/usage
Authorization: Bearer
`` is the Anthropic-compatible OpenCode Go key (sk-opencode-…). The endpoint returns:
{
"usage": {
"rolling": { "status": "ok", "percent": 9, "resetsAt": "2026-08-14T07:20:04.810Z" },
"weekly": { "status": "ok", "percent": 12, "resetsAt": "2026-08-17T00:00:00.810Z" },
"monthly": { "status": "ok", "percent": 6, "resetsAt": "2026-09-09T00:41:03.810Z" }
}
}
percent is 0–100; resetsAt is ISO-8601. The endpoint is not yet in OpenCode's public docs.
DeepSeek platform balance
GET https://api.deepseek.com/user/balance
Authorization: Bearer
`` is your DeepSeek platform key (sk-…). This is an official, documented endpoint (Get User Balance). It returns:
{
"is_available": true,
"balance_infos": [
{
"currency": "CNY",
"total_balance": "110.00",
"granted_balance": "10.00",
"topped_up_balance": "100.00"
}
]
}