Skip to content

zquota documentation · v0.1.4

No quota guesswork.
Exact reset times.

zquota asks Z.ai for your plan’s quota and shows how much of each window you’ve used and the exact time it resets, in your own timezone. The default view is for people. --compact, --json and --jsonl are for scripts, and --threshold exits with code 2 when a window crosses the line you set.

$ brew tap netspeedy/zquota && brew install zquota
$ zquota

  Z.ai plan: pro

  │  5-Hour Rolling Token Quota
  │
  │  [██████████████░░░░░░░░░░] 62% used
  │  Remaining:  38%
  │  Limit:      1.0M
  │  Used:       620.0k
  │  Remaining:  380.0k
  │  Resets in:  2h 13m 6s
  │  Resets at:  2026-11-05 09:25:00 GMT
  ──────────────────────────────────
  │  Weekly Token Quota
  │
  │  [███████░░░░░░░░░░░░░░░░░] 31% used
  │  Remaining:  69%
  │  Limit:      8.0M
  │  Used:       2.5M
  │  Remaining:  5.5M
  │  Resets in:  4d 6h 11m
  │  Resets at:  2026-11-09 13:23:00 GMT
  ──────────────────────────────────

Browse the docs

From a first check to every JSON field.

Getting started

Install it and check your quota.

Quota windows

What each window is and when it resets.

Guides

Set it up, watch it and script it.

Reference

Look something up.