GLM Plan Usage for Openclaw

A monitoring skill for tracking GLM coding plan quotas, token consumption, and MCP tool usage statistics.

orientluna
v1.0.1
Feb 13, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install openclaw-glm-plan-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 openclaw-glm-plan-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 GLM Plan Usage?

GLM Plan Usage is a dedicated utility within the Openclaw Skills ecosystem designed to provide developers with real-time insights into their Zhipu AI coding plan. It bridges the gap between coding activities and resource management by surfacing critical metrics such as token quotas and tool execution counts directly in the terminal.

This skill is essential for developers who need to stay within their plan limits while leveraging high-performance models. By synthesizing data from multiple monitoring endpoints, it offers a comprehensive view of resource health, supporting both English and Chinese environments for global accessibility.

GLM Plan Usage Use Cases

  • Monitoring token consumption to prevent hitting the 5-hour rate limit during intensive coding sessions.
  • Tracking monthly MCP tool usage to manage usage tiers and avoid service interruptions.
  • Analyzing 24-hour model call frequency to optimize AI agent interaction patterns.
  • Identifying the most frequently used MCP tools, such as bash or web-search, to audit workflow efficiency.

How GLM Plan Usage Works

  1. The skill parses the local configuration file to identify GLM providers based on specific baseUrl patterns.
  2. It initiates authenticated HTTP requests to Zhipu's quota, model-usage, and tool-usage monitoring endpoints.
  3. Raw JSON data is filtered and processed using jq to extract relevant metrics like token percentages and seconds used.
  4. The processed data is formatted into a bilingual terminal report showing current usage levels and limits.

GLM Plan Usage Setup

Prerequisites

Ensure you have curl and jq installed on your system.

# Install jq
sudo apt-get install jq # Linux
brew install jq # macOS

Installation

Clone the repository and move the files to your local Openclaw Skills directory:

git clone https://github.com/OrientLuna/openclaw-glm-plan-usage.git
cd openclaw-glm-plan-usage
cp -r . ~/.openclaw/skills/glm-plan-usage/
chmod +x ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh

GLM Plan Usage Data Schema & Taxonomy

The skill organizes usage data into three primary categories based on the API response structure:

Category Metrics Tracked Time Window
Quota Limits Token Usage %, MCP Usage % 5-hour (Tokens) / 1-month (MCP)
Model Usage Total Tokens, Total Call Counts 24 Hours
Tool Usage Call counts per specific MCP tool 24 Hours

GLM Plan Usage Advanced Features

  • Intelligent provider detection that scans for bigmodel.cn or coding-specific base URLs in your configuration.
  • Environment-based language switching using the OPENCLAW_LANGUAGE variable for custom reporting.
  • Detailed error diagnostic system that identifies missing dependencies, authentication failures, or network timeouts.
  • Seamless CLI integration allowing execution via the standard Openclaw Skills command syntax.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*