How to use dsh-opencode-go-usage
Displays a floating dashboard showing OpenCode Go usage and spending, including quotas, per-request costs, and model/source distributions.
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
Displays a floating dashboard showing OpenCode Go usage and spending, including quotas, per-request costs, and model/source distributions.
— source: plugins.ai_summary
Install & verify
dsh plugin --profile web add dsh-opencode-go-usage
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
- 官方账户级用量:读取官网
usage.list,使用官方逐请求费用,支持跨设备数据。凭据通过本地配置提供。 - DSH 会话分析:按 DSH 会话、模型和日期统计 OpenCode Go 用量。
- 配额监控:显示滚动 5 小时、周、月配额、重置时间和消耗速度预测。
- 多 key 配额池:自动发现
.credentials.yaml中的OPENCODE_GO_KEY_*,支持切换和限流状态提示。 - 交互面板:FAB 拖动、标题栏拖动、边缘缩放、最大化、位置和大小持久化。
— source: plugin_wiki.readme_en (fallback readme_raw)
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule