TopRank Skills

Home / Claw Skills / Git / GitHub / zai-usage
Official OpenClaw rules 54%

zai-usage

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

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 zai-usage 技能。 若已安装,则直接安装 zai-usage 技能。

Overview

Skill Key
1vecera/zai-usage
Author
openclaw
Source Repo
openclaw/skills
Version
1.1.0
Source Path
skills/1vecera/zai-usage
Latest Commit SHA
a98bce0c5f78ccd0e7861ee89a97d34b054a91d4

Extracted Content

SKILL.md excerpt

# Z.AI Usage Monitor

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

## Quick Start

```bash
# 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

- https://github.com/zereraz/tokensight
- https://www.reddit.com/r/ZaiGLM/comments/1pmb7fj/how_to_check_zai_coding_usage/

README excerpt

# Z.AI Usage Monitor

Monitor your Z.AI GLM Coding Plan usage and quota limits directly from OpenClaw.

## Features

- ✅ **Real-time quota tracking** - 5-hour and monthly token quotas
- ✅ **Web tool monitoring** - Track search/reader/zread usage
- ✅ **Visual progress bars** - Easy-to-read usage indicators
- ✅ **Reset countdown** - Know when quotas refresh
- ✅ **Quick status** - One-line summary for fast checks

## Screenshot

```
╔════════════════════════════════════════════════════════════╗
║           Z.AI GLM Coding Plan Usage                       ║
╚════════════════════════════════════════════════════════════╝

Subscription: GLM Coding Pro

5-Hour Token Quota:
   8M / 200M tokens (4%)
   [█░░░░░░░░░░░░░░░░░░░░]
   192M remaining
   Resets in: 4h 47m

Monthly Quota:
   19% used
   Resets: 2026-03-04

Web Tools (Monthly):
   1000 / 2000 calls (0%)
   1000 remaining

Status: ✅ Good
```

## Installation

### Option 1: ClawHub (Recommended)

```bash
cd ~/.openclaw
clawhub install zai-usage
```

### Option 2: Manual

```bash
cd ~/.openclaw/skills
git clone https://github.com/openclaw/skills.git temp
mv temp/zai-usage .
rm -rf temp
```

## Setup

### Step 1: Get Your Token

You need a JWT token from your Z.AI browser session (not an API key).

1. Go to: https://z.ai/manage-apikey/subscription
2. Open DevTools (`F12` or `Cmd+Option+I`)
3. Navigate to: **Application** → **Local Storage** → `https://z.ai`
4. Find: `z-ai-open-platform-token-production`
5. Copy the value (starts with `eyJhbGci...`)

**Reference:** https://github.com/zereraz/tokensight

### Step 2: Store Your Token

Add your token to OpenClaw secrets:

```bash
mkdir -p ~/.openclaw/secrets
echo "ZAI_JWT_TOKEN=eyJhbGci..." > ~/.openclaw/secrets/zai.env
```

Or add to your shell environment:

```bash
export ZAI_JWT_TOKEN="eyJhbGci..."
```

## Usage

### Command Line

```bash
# Full usage report
~/.openclaw/skills/zai-usage/scripts/usage-summary.sh

# Quick one-line status
~/.openclaw/skills/zai-usage/scr...

Related Claw Skills

0xnyk

xint

★ 49

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

jackculpan

flightclaw

★ 32

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

openclaw-trade

openclaw-trading-assistant

★ 24

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime monitoring and news research, gather info from private insiders and many other! Using Hyperliquid API.

xquik-dev

x-twitter-scraper

★ 16

X (Twitter) automation skill for AI coding agents. Tweet search, user lookup, follower/following extraction, media download, reply/retweet/quote extraction, 40+ tools, account monitoring & trending topics. REST API, MCP server, HMAC webhooks. Works with Claude Code, Cursor, Codex, Copilot, Windsurf & 40+ agents.

mohsinkhadim59

Openclaw-Setup

★ 8

Step-by-step guides for installing and running OpenClaw, an open-source AI agent, on Mac, Linux VPS, and AWS covering setup, security, messaging channels, Google integration, skills, and monitoring.