P
dsh-plugin-subscription-usage
p4rthpat3l/dsh-plugin-subscription-usage
ChatGPT(Codex)、Claude、Grok、GitHub Copilot、Google Antigravity 订阅模型入口,含用量节奏仪表。
安装
dsh plugin --profile web add github:p4rthpat3l/dsh-plugin-subscription-usageREADME
dsh-plugin-subscription-usage
A DeepSeek Harness plugin that uses your ChatGPT (Codex), Claude, Grok, GitHub Copilot and Google Antigravity subscriptions as LLM providers, and shows how fast you are using each limit.
What you get
- Models page. Each subscription is a provider row where you sign in, manage accounts, choose models and enable tools.
- Usage page. Settings, Usage shows each limit with a pace forecast: how much is used, when it resets, and whether you will run out first. You can switch between Left and Used, turn pace warnings on or off, and pin providers to the composer.
- Composer gauge. The current model's provider, plus any you pinned, shows under the composer.
- API key usage. Z.ai, Ollama Cloud, Kimi Code, MiniMax, ClinePass, OpenRouter and NanoGPT usage is read with an API key you paste on the Usage page. OpenCode Go usage is read with the key DSH already holds for its
opencode-goroute, so there is nothing to paste. These providers are usage-only. The plugin does not route requests to them.
Screenshots
Usage page in Settings, with pace forecasts and pins:

Models page, where each subscription is a provider row:

Usage pop-up in the composer on a new session:

The same pop-up inside a chat:

Install
dsh plugin install dsh-plugin-subscription-usage
Restart DSH, then open Settings, Models.
Privacy
- OAuth sessions are stored in
~/.dsh/plugins/subscriptions/auth.json. - API keys are stored in
~/.dsh/plugins/subscriptions/usage-keys.json. - Both files are readable only by you. Keys are sent only to the provider's own host and never to the browser page, which sees the last four characters.
- OpenCode Go is different: the plugin stores no key for it and reads DSH's own credential for the
opencode-goroute each time it fetches usage.
Limits
- Copilot, Z.ai, Ollama Cloud, Kimi Code and OpenCode Go usage comes from endpoints the vendors do not document. They can change without notice, and the card then shows "Usage unavailable".
- A plain Moonshot key does not work for Kimi Code usage.
License
MIT