dsh-commandcode-usage-inline
Manifest validInline Command Code plan usage badge in the DSH composer toolbar beside the model selector: 5h and weekly window usage plus remaining credits, clicking the badge opens an upward detail popover with re
dsh-commandcode-usage-inline
Inline Command Code plan usage badge for the DSH composer toolbar — a one-line readout right beside the model selector, zero screen space beyond a compact pill.
![示意] composer 工具栏: CC 5h 12% | 周 34% | 剩 1826
功能
- 跟随当前模型: 当前会话 provider 是
commandcode时显示徽章;切到其它 provider 自动隐藏。 - 一行概览(composer 内联,紧邻 model select):
CC 5h X% | 周 Y% | 剩 N5h X%— 5 小时窗口已用百分比(超限时变红)周 Y%— 周窗口已用百分比(超限时变红)剩 N— 剩余 credits(购买 + 免费)
- 点击展开详情浮层(向上弹出,样式与模型选择浮窗一致):
- 当前账户(多账户轮换时绿点标注)、套餐名
- 5h / 周窗口的重置倒计时
- 剩余 credits 构成(订阅月包 + 购买 + 免费)
- 其它已配置账户的分窗口占用
- 刷新 / 关闭按钮
- 60s 自动轮询; 失败时徽章变黄
CC ⚠, 点击查看错误并可重试。 - 悬停徽章有胶囊背景反馈。
与 sidebar 版 (zouxiaoyang/dsh-commandcode-usage) 的区别
已收录的 zouxiaoyang/dsh-commandcode-usage 是一个侧边栏 footer 面板。本插件是不同的形态:composer 输入栏内的内联薄徽章(conversation.input.right slot,紧贴 model select),不占侧边栏空间、不打断对话流,打开浮层才展示明细。两者定位互补。
数据来源
纯客户端插件。复用 @mars-sea/dsh-commandcode-provider 已 mount 在浏览器 remote 服务上的 commandcode/report Remote(accounts[].report.credits.fiveHour / .weekly + .plan + .account),不自己直连 Command Code API,不接触你的 API key。
前置依赖: 已安装并启用 @mars-sea/dsh-commandcode-provider。
安装
dsh plugin add github:345420242/dsh-commandcode-usage-inline
然后重启 DSH 即可。
卸载
dsh plugin remove dsh-commandcode-usage-inline
与 dsh-musage 的关系
dsh-musage 支持 MiniMax / DeepSeek / Kimi / OpenRouter / Zhipu 五家,遇到 commandcode 时无法显示数据。本插件补上这块:commandcode 激活时显示真实用量,其它 provider 时自己隐藏,两者共存不冲突。
License
MIT
Similar plugins
CommandCode usage & balance panel for DeepSeek Harness: API usage, credit balance, 5-hour/weekly windows from the sidebar footer.
★ 0
↓ 263/wk
dsh plugin --profile web add dsh-commandcode-usageDSH Usage Monitor: auto-query provider credit balances and time-window limits from configured API keys, with input capsule and custom provider support.
★ 0
↓ 53/wk
dsh plugin --profile web add @lcthe/dsh-usage-monitorShows OpenCode Go subscription usage (rolling, weekly and monthly used and remaining percentage with reset times) in a floating panel anchored to the bottom-left of the session window.
★ 0
dsh plugin --profile web add dsh-plugin-opencode-usageby CHplus0
DeepSeek Harness (DSH) plugin: a /! command trigger (run one command, analyze output, inspired by Claude Code's ! gesture) and a /terminal command (interactive PTY popup with on-demand history referen
★ 4
↓ 96/wk
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-shell-commandby vinyumao
DSH plugin: OpenCode Go 套餐用量显示(滚动/每周/每月用量百分比与重置倒计时 + Agent 工具 opencode_go_usage)。官方 bundle 插件,安装: dsh plugin --profile web add github:vinyumao/dsh-opencode-usage#<ref>
★ 3
MIT
JavaScript
Aug 15, 2026
dsh plugin --profile web add @chen-001/dsh-opencode-usageCommand Code LLM provider plugin adapted for DSH-Desktop 0.7.1: registers a commandcode route, with a live model catalog, reasoning-effort support, and real-time plan usage display.
★ 0
dsh plugin --profile web add dsh-commandcode