Qwen limits for Hermes
A Hermes desktop plugin that shows your Qwen Plus subscription quota in the status bar: the weekly agent allowance used, a countdown to the weekly reset, and any available reset cards.
The chip is live when the Qwen app (or a chat.qwen.ai tab) has been active recently — the plugin reads the access token the app already stored, read-only, and never refreshes your session.
Platform: Windows only. The plugin reads the local Qwen desktop app session under
%APPDATA%\Qwen. macOS/Linux are not supported by this version.
What it shows
Qwen 27% · 6d 21h— percent of the weekly quota used + time until reset.- Colour shifts green → yellow → red as you spend the allowance.
- Click the chip to force a refresh; otherwise it polls every 2 minutes.

Qwen Plus exposes a single weekly pool (one remainingPercent, one weekly resetAt) — there is no 5-hour sub-window like some other providers. The whole weekly allowance can be spent in a day.
Requirements
- Windows
- Hermes
>= 0.22.5(desktop app) - The Qwen desktop app installed and signed in with an active Qwen Plus subscription
No API key is needed — the plugin reuses the session you already have in the Qwen app.
Install
hermes plugins install degin/hermes-qwen-limits --enable
Then in the desktop app: Capabilities → Plugins, enable Qwen limits, and restart the gateway so the backend loads (hermes gateway restart). The status-bar chip appears once enabled.
Pin a specific commit with --ref <40-char SHA> if you prefer.
How it works
- Reads the most recent live access JWT from the Qwen app's Local Storage leveldb logs (
%APPDATA%\Qwen\Local Storage\leveldb), strictly read-only. Browser profiles are never touched, and the plugin never reads or refreshes the app'srefresh_tokencookie. - Queries
https://sg-entitlement.qwen.com/api/entitlement/agent/usagefor the weekly quota. - Sends only the used percentage and reset timestamps to the status-bar UI.
The access JWT lives ~15 minutes; when the app hasn't run recently there is no fresh token and the chip shows a no_token state — sign in / reopen the Qwen app to bring the chip back.
Privacy & security
This plugin touches your local Qwen session, so here is exactly what it does:
- Reads one local store only: the Qwen app's own Local Storage leveldb logs (
%APPDATA%\Qwen\Local Storage\leveldb), to pick up the access token the app already stored. Read-only; no browser profiles, no cookie databases. - The login session is never refreshed. The plugin does not touch
auth.qwen.aior the app'srefresh_tokencookie; it uses the stored access token until it expires. - Network calls go only to Qwen's quota endpoints (
sg-entitlement.qwen.com). No third-party servers, no analytics, no telemetry. Requests carry the Qwen web-client headers (Authorization: Bearer <access JWT>,Origin/Referer: https://chat.qwen.ai/, a desktop ChromeUser-Agent,source: web,Version: 0.3.54). - Tokens stay in the backend process memory. They are never written to disk by the plugin, never passed to the renderer, and never enter chat or logs. Only
used_percentand reset times leave the backend. - The plugin reads no
.envand requires no environment secrets (requires_env: []). - Requests bypass system proxy settings (the Qwen endpoints reject proxied/automated traffic with a WAF challenge).
Sign-in and any captcha are handled by you in the Qwen app — the plugin never automates login.
Limitations
- Windows only (Qwen app session paths are Windows-specific).
- Depends on Qwen's private web API (
sg-entitlement.qwen.com) and a pinned frontend version header; these may change and require an update. - Shows the weekly agent quota only.
License
MIT — see LICENSE.
README from the reviewed commit 5202954; it updates when the author re-pins.

degin