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 界面监控用量与余额的用户,需配置端点。

Package
dsh-deepview
Compatibility
Unverified
Harness peer range
^0.1.0-rc.3
Cordis peer range
^4.0.1
Version
0.2.0
License
MIT
Last updated
Aug 15, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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
KeyDefaultMeaning
baseUrlhttps://opencode.ai/zen/go/v1/usageThe OpenCode Go usage endpoint.
deepseekBaseUrlhttps://api.deepseek.com/user/balanceThe DeepSeek balance endpoint.
timeoutMs15000Fetch 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"
    }
  ]
}