Skip to content
PluginStats

@v1nvn/zai weekly downloads statistics

By v1nvn (5 listings) · npm · Claude Code

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

View on npm Outdated · Nov 6, 2026

@v1nvn/zai has 1,114 recorded weekly downloads on npm, a decrease of 2.8% over the past 30 days, ranking #2047 of 3,247 tracked listings.

Weekly downloads
1,114
Official API · Dec 5, 2026
7-day growth
-29.9%
-475 weekly downloads
30-day growth
-2.8%
-32 weekly downloads
90-day growth
+86.3%
+516 weekly downloads
Rank
#2047
▼ 190 in 7 days

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).

claude plugin marketplace add v1nvn/agentic
claude plugin install zai@agentic

In a terminal, bare:

npx -y @v1nvn/zai@0.55.2 usage

Usage

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

Each setting takes the first source that provides it:

SettingFlagzai envClaude Code envDefault
API key--auth-tokenZAI_AUTH_TOKENANTHROPIC_AUTH_TOKEN ¹— required
Base URL--base-urlZAI_BASE_URLANTHROPIC_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

yarn workspace @v1nvn/zai test       # the CLI side (vitest)
claude plugin validate packages/zai  # the mod, as the engine reads it
claude plugin test packages/zai      # the mod, through the engine
yarn lint && yarn typecheck         # from the repo root (typecheck
                                    #   covers tsconfig.mods.json too)

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

FileRole
src/index.tsbin entry (zai-usage) — dispatch, exit codes
src/usage.tsthe GLM API call and the report input it assembles
src/resolve.tsauth-token resolution chain
src/format.tsthe report's lines — printed by the CLI, drawn by the pane
hooks/register.tsxthe mod: registers /zai-usage, execs the CLI, opens its report as a pane
src/index.tsthe 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 <plugin root>/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 <plugin root>/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
  • glm-coding-plan
  • zai
  • quota
  • usage
  • claude-code

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

@v1nvn/zai weekly downloads on npm, last 90 days: 1,114 weekly downloads as of Dec 5, 2026, +86.3% over 90 days.@v1nvn/zaiWeekly downloads on npm · Last 90 days1,114downloads / week+86.3% over 90 days01K2K3K4K5K6KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@v1nvn/zai weekly downloads on npm, last 90 days: 1,114 weekly downloads as of Dec 5, 2026, +86.3% over 90 days.

7/30/90-day growth

@v1nvn/zai weekly downloads growth on npm: -29.9% over 7 days, -2.8% over 30 days, +86.3% over 90 days.@v1nvn/zaiWeekly downloads growth on npm1,114downloads / week now7-day growth-475 weekly downloads-29.9%30-day growth-32 weekly downloads-2.8%90-day growth+516 weekly downloads+86.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@v1nvn/zai weekly downloads growth on npm: -29.9% over 7 days, -2.8% over 30 days, +86.3% over 90 days.

Ranking history

@v1nvn/zai npm ranking history: currently #2047 (by weekly downloads).@v1nvn/zainpm ranking · by weekly downloads · Last 90 days#2047current rank#400#600#800#1000#1200#1400#1600#1800#2000#2200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 28 observations · Updated Dec 5, 2026pluginstats.com
@v1nvn/zai npm ranking history: currently #2047 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 103, #7 (overall #2,047)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 21, #20 (overall #420)
Claude Code: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (592)
Recent weekly downloads observations for @v1nvn/zai
Date (UTC)Weekly downloadsChange vs. previous
1,114-292
1,406-8
1,414-47
1,461-45
1,506-197
1,703+30
1,673+84
1,589-274
1,863-31
1,894-23
1,917+1
1,916+14
1,902-12
1,914—

Similar npm Claude Code plugins

All 20 @v1nvn/zai alternatives

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 Nov 6, 2026. See the methodology.