Introduction¶
DeepSeek Harness (dsh) already records session usage, but OpenCode Go’s pricing, billing scope, and simple analysis of the bill usually require separate handling. Below is a DSH community plugin, hiro-nikaitou/dsh-ocg-billing, which provides a persistent bill line below dsh’s web composer and performs OpenCode Go billing calculations based on cached official prices.
What is it¶
hiro-nikaitou/dsh-ocg-billing is a DSH plugin positioned as OpenCode Go billing layer for DeepSeek Harness (dsh).
It is maintained by hiro-nikaitou and uses the MIT license. The documentation states that this is a community plugin and has no official affiliation with DeepSeek AI or OpenCode.
It solves the problem of viewing OpenCode Go’s estimated bill directly in the dsh web interface and performing bill calculations using a cached price list.
Core Features¶
The following are verified capabilities:
- Display a persistent bill line below the web composer.
- Cache official prices and perform active update checks.
- Support global or single-session scope billing calculations.
- Analyze the bill using the default model.
Installation and Usage¶
- Add the plugin path via profile:
dsh plugin --profile web add <path-to-this-repo>
- Or write an overlay-style configuration in
~/.dsh/config.yaml:
# - insert:
# - id: ocg-billing
# name: '@hiro-nikaitou/dsh-ocg-billing'
- Restart
dsh web. After the plugin loads, the billing row will appear below the composer.
Typical Usage¶
After enabling, you can use these tools:
ocg_pricing_statusocg_pricing_checkocg_billocg_bill_analyze
Among them, ocg_pricing_check can be used to refresh the price cache; ocg_bill is used for calculating the bill; ocg_bill_analyze is used to analyze the bill in conjunction with the default model.
Applicable Scenarios and Notes¶
Suitable for developers using OpenCode Go in DSH web who need to view estimated costs. Pay attention before use:
- The plugin runs with the permissions of the current
dshprocess; you should check the source code and MIT license before installing. - Prices are estimated values calculated according to the official documentation; actual fees are based on your OpenCode Go subscription bill.
- The subscription fee
$10/monthis only for display as a reference and will not be added to the usage cost. - If upstream layout changes cause price lag or parsing anomalies, you can run
ocg_pricing_checkto refresh. - Verified materials indicate that DeepSeek Harness is in developer preview, and peer ranges follow the installed
0.1.0-rc.6mainline.
Links¶
- Directory page: https://www.skillhub.cn/plugins/hiro-nikaitou/dsh-ocg-billing
- GitHub: https://github.com/hiro-nikaitou/dsh-ocg-billing