Skip to content
PluginStats

@v1nvn/zai weekly downloads statistics

By v1nvn · npm · Claude Code

Query GLM Coding Plan quota and usage — the zai-usage CLI behind the zai plugin.

View on npm Fresh · Oct 17, 2026

@v1nvn/zai has 1,621 recorded weekly downloads on npm, an increase of 2847% over the past 30 days.

It ranks #1310 of 2,251 tracked npm listings by weekly downloads.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
1,621
Official API · Oct 17, 2026
7-day growth
-62.6%
-2.7K weekly downloads
30-day growth
+2847%
+1.6K weekly downloads
90-day growth
—
Insufficient history
Rank
#1310
Among tracked npm listings

About @v1nvn/zai

@v1nvn/zai

The home of the zai plugin — and its plugin root: the zai-usage CLI in src/, the mod's hooks module at hooks/register.tsx (.ts/.tsx the engine loads directly, no build), engine tests at tests/. It reports GLM Coding Plan quota and usage for the current account — models, tools, limits — straight to the terminal; no browser, nothing written.

User-facing docs: root README.

Quickstart

In Claude Code, the plugin is the way in — a mod serves the one surface the model never reads: /zai-usage execs the shipped CLI and opens its report as a pane (nothing execs until the command runs).

In a terminal, bare:

Usage

| Invocation | Does |

| /zai-usage | the account's usage report, as a pane | | npx -y @v1nvn/zai@0.50.3 usage | the same report, printed bare | | npx -y @v1nvn/zai@0.50.3 usage --auth-token TOKEN | same, key on the command line (visible in ps) | | npx -y @v1nvn/zai@0.50.3 usage --auth-token=TOKEN | = form — zsh quoting-safe | | npx -y @v1nvn/zai@0.50.3 usage --base-url URL | another GLM endpoint (default api.z.ai) |

Each setting takes the first source that provides it:

| Setting | Flag | zai env | Claude Code env | Default |

| API key | --auth-token | ZAI_AUTH_TOKEN | ANTHROPIC_AUTH_TOKEN ¹ | — required | | Base URL | --base-url | ZAI_BASE_URL | ANTHROPIC_BASE_URL ¹ | https://api.z.ai |

¹ Inherited only when the resolved base URL names a GLM host (api.z.ai, open.bigmodel.cn, dev.bigmodel.cn) — that is what proves the token belongs to a GLM Coding Plan. Claude Code routed elsewhere (plain Anthropic, another proxy) is not a zai configuration; set ZAI_AUTH_TOKEN. Bigmodel accounts point the base URL at their host; the monitor paths are identical (ZAI_BASE_URL=https://open.bigmodel.cn). The mod's exec runs inside the session's shell, so it inherits the same environment npx zai-usage reads.

The API labels every bucket in Beijing time (UTC+8); the report shifts each timestamp to your local zone for display.

Develop

The mod API is early access and moves between Claude Code releases — a build that refuses the module loads nothing, so validate after every engine update and re-vendor types/claude-code.d.ts (repo root) from the engine-laid .claude-plugin/types/ when it changes. Read references/mods.md first.

Modules

| File | Role |

| src/index.ts | bin entry (zai-usage) — dispatch, exit codes | | src/usage.ts | the GLM API call and the report input it assembles | | src/resolve.ts | auth-token resolution chain | | src/format.ts | the report's lines — printed by the CLI, drawn by the pane | | hooks/register.tsx | the mod: registers /zai-usage, execs the CLI, opens its report as a pane | | src/index.ts | the CLI source the mod execs — node runs it directly, nothing built |

Contracts

• One job: print the report, exit 0. Nothing is written anywhere. • /zai-usage is one node /src/index.ts usage --json exec through the session's Bash tool — the same query npx zai-usage runs, awaited as-is. The one allow rule it needs is Bash(node /src/index.ts usage --json); the first run asks for it once, then it is remembered. Its report is a pane the model never reads.

Description from the npm listing.

  • glm
  • zhipu
  • claude-code

Where @v1nvn/zai sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 66, #11 (overall #1311)
All npm: every listing in weekly downloads order
PNG SVG
Claude Code233 listings · 12 pages · page 7, #6 (overall #126)
Claude Code: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@v1nvn/zai weekly downloads on npm, last 90 days: 1,621 weekly downloads as of Oct 17, 2026.@v1nvn/zaiWeekly downloads on npm · Last 90 days1,621downloads / week01K2K3K4K5K6KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@v1nvn/zai weekly downloads on npm, last 90 days: 1,621 weekly downloads as of Oct 17, 2026.
PNG SVG

7/30/90-day growth

@v1nvn/zai weekly downloads growth on npm: -62.6% over 7 days, +2847% over 30 days, 90-day growth unavailable.@v1nvn/zaiWeekly downloads growth on npm1,621downloads / week now7-day growth-2,717 weekly downloads-62.6%30-day growth+1,566 weekly downloads+2847%90-day growth+1,621 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@v1nvn/zai weekly downloads growth on npm: -62.6% over 7 days, +2847% over 30 days, 90-day growth unavailable.
PNG SVG

Ranking history

@v1nvn/zai npm ranking history: currently #1310 (by weekly downloads).@v1nvn/zainpm ranking · by weekly downloads · Last 90 days#1310current rank#400#600#800#1000#1200#1400Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@v1nvn/zai npm ranking history: currently #1310 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (543)
Recent weekly downloads observations for @v1nvn/zai
Date (UTC)Weekly downloadsChange vs. previous
1,621-270
1,891+171
1,720-541
2,261-1.4K
3,6240
3,624-323
3,947-391
4,338-198
4,536-189
4,725-724
5,449+725
4,724-534
5,258+394
4,864—

Similar npm Claude Code plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@v1nvn/zai. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.