All plugins

qwen-limits

Read-only Hermes Desktop status-bar chip showing the Qwen Plus weekly agent quota used and a countdown to the weekly reset. No API key required. Disclosure — Windows only: reads the access token the Qwen desktop app stored in %APPDATA%\Qwen\Local Storage (read-only, never refreshed) and sends it, with chat.qwen.ai web-client headers (browser User-Agent, Origin and Referer https://chat.qwen.ai), only to Qwen's sg-entitlement.qwen.com quota endpoints, bypassing system proxy settings; only usage percentages and reset times reach the UI.

deginDesktopv1.0.0Updated 1 hour ago

About

Read-only Hermes Desktop status-bar chip showing the Qwen Plus weekly agent quota used and a countdown to the weekly reset. No API key required. Disclosure — Windows only: reads the access token the Qwen desktop app stored in %APPDATA%\Qwen\Local Storage (read-only, never refreshed) and sends it, with chat.qwen.ai web-client headers (browser User-Agent, Origin and Referer https://chat.qwen.ai), only to Qwen's sg-entitlement.qwen.com quota endpoints, bypassing system proxy settings; only usage percentages and reset times reach the UI.

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 limits in the Hermes status bar

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

  1. 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's refresh_token cookie.
  2. Queries https://sg-entitlement.qwen.com/api/entitlement/agent/usage for the weekly quota.
  3. 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.ai or the app's refresh_token cookie; 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 Chrome User-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_percent and reset times leave the backend.
  • The plugin reads no .env and 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.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section