Z.AI Usage Monitor for Openclaw

A specialized tool for real-time monitoring of Z.AI GLM Coding Plan token consumption and subscription limits.

1vecera
v1.1.0
Feb 27, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install zai-usage

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install zai-usage using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Z.AI Usage Monitor?

This skill provides a streamlined way to track Z.AI GLM Coding Plan quotas directly within your local environment. By integrating with Openclaw Skills, users can keep a close eye on their 5-hour rolling windows and monthly token allocations to ensure uninterrupted development workflows. It bridges the gap between complex usage data and your terminal, making it an essential utility for developers who rely on Z.AI models for their daily coding tasks.

Z.AI Usage Monitor Use Cases

  • Monitoring token consumption during intensive AI-assisted coding sessions.
  • Checking the countdown for the 5-hour rolling quota reset to plan large tasks.
  • Verifying subscription status and monthly credit balances via Openclaw Skills.
  • Getting quick visual status indicators for current resource usage levels.

How Z.AI Usage Monitor Works

  1. The skill retrieves the stored JWT token from your secure environment configuration file.
  2. It executes shell scripts that perform authenticated API requests to the Z.AI backend infrastructure.
  3. The raw JSON response is processed using utility tools like jq to extract specific quota metrics.
  4. Data is synthesized into a readable summary showing percentage usage and estimated reset times.
  5. Visual status icons are displayed based on usage thresholds to provide immediate feedback within Openclaw Skills.

Z.AI Usage Monitor Setup

  1. Obtain your JWT token from the Z.AI manage-apikey subscription page by inspecting Local Storage for the z-ai-open-platform-token-production key.
  2. Store the token in your secrets directory:
echo "ZAI_JWT_TOKEN=your_jwt_token_here" > ~/.openclaw/secrets/zai.env
  1. Ensure you have the required dependencies installed (curl, jq, and optionally bc).
  2. Run the summary script to verify connectivity:
~/.openclaw/skills/zai-usage/scripts/usage-summary.sh

Z.AI Usage Monitor Data Schema & Taxonomy

The skill organizes usage data into several key metrics for clear visibility:

Metric Description
5-Hour Quota Rolling usage window showing current token count and reset countdown.
Monthly Quota Total token allocation for the current billing cycle.
Web Tools Usage limits and counts for search, reader, and zread functionality.
Plan Level Current subscription tier such as Lite or Pro status.

Z.AI Usage Monitor Advanced Features

  • Natural language support for asking about credit status and usage limits through Openclaw Skills.
  • Real-time status indicators using color-coded icons for usage under 50%, 50-80%, and over 80%.
  • Dual-script architecture providing both comprehensive usage summaries and lightweight quick-checks.
  • Secure integration with local environment files to keep sensitive JWT tokens out of command history.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*