Skip to main content
Generaldvcrn

zai-usage

Monitor Z.AI GLM Coding Plan usage and quota limits. Track token consumption, view reset times, and check subscription status.

Stars
15
Source
dvcrn/openclaw-skills-marketplace
Updated
2026-05-29
Slug
dvcrn--openclaw-skills-marketplace--zai-usage
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/dvcrn/openclaw-skills-marketplace/HEAD/plugins/1vecera--zai-usage/skills/zai-usage/SKILL.md -o .claude/skills/zai-usage.md

Drops the SKILL.md into .claude/skills/zai-usage.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

Z.AI Usage Monitor

Track your Z.AI GLM Coding Plan usage in real-time.

Quick Start

# Check usage
~/.openclaw/skills/zai-usage/scripts/usage-summary.sh

# Quick status
~/.openclaw/skills/zai-usage/scripts/quick-check.sh

Setup

  1. Get your JWT token from https://z.ai/manage-apikey/subscription

    • Open DevTools (F12)
    • Application → Local Storage → z-ai-open-platform-token-production
  2. Store in ~/.openclaw/secrets/zai.env:

    ZAI_JWT_TOKEN=eyJhbGci...
    

What You See

  • 5-Hour Quota - Rolling token usage with reset countdown
  • Monthly Quota - Monthly token allocation
  • Web Tools - Search/reader/zread call limits
  • Plan Level - Lite/Pro subscription status

Status Icons

Icon Usage
< 50%
⚠️ 50-80%
🔴 > 80%

Commands

Ask me:

  • "How's our Z.AI usage?"
  • "Check credit usage"
  • "Are we running low on credits?"

Requirements

  • curl - HTTP requests
  • jq - JSON parsing
  • bc - Number formatting (optional)

Sources