Core Features

Usage Stats

Usage Stats shows how you use ZCode. The tabs at the top switch between App usage and your connected coding plans: App usage covers ZCode sessions on this computer, and Individual Plan reads the remaining quota and consumption of your Z.ai / BigModel Coding Plan. If your account is also connected to a team plan, it appears as a separate tab named after the organization.

Usage stats → App usage: summary metrics, token activity heatmap, and daily token trend

1Summary metrics2Token activity views3Time range

Entry point: open Settings → Usage stats.

The two tabs use different data sources, so their numbers are not directly comparable:

App usage
  • From the ZCode session history on this computer
  • Token counts estimated from local records
  • Heatmap, daily trend, and model share
Review your own usage pattern
Individual / team plan
  • From the Z.ai / BigModel statistics API
  • Counts actual tokens and tool calls
  • Requires a connected Coding Plan account
Check remaining quota and plan consumption
Billing and quota follow the plan tab; app usage only reflects sessions on this computer

App Usage

App usage is calculated from the session history on this computer and helps you review how you have been using ZCode. The page includes:

SectionContent
Summary metricsTotal tokens, peak tokens, longest session, current streak, and longest streak
Token activityA heatmap of daily usage over the past year, with Daily / Weekly / Cumulative views. Hover over a day to see its tokens and message count
Daily token trend chartDaily token usage by model. Hover over a day to see the breakdown by model
Model usageToken usage and share for each model

Use Time range to switch between Last 7 days and Last 30 days. Refresh at the bottom of the page reloads the local session history.

Token activity heatmap: daily usage over the past year, with a tooltip showing the tokens and messages for one day
Daily token trend · hover for each modelDaily token trend chart: usage by model over the last 30 days, with a tooltip showing each model's tokens for one dayModel usage · share by modelModel usage: a ring chart with total tokens, the usage and share of each model on the right, and Refresh at the bottom right

Coding Plan

After you connect a Z.ai or BigModel account with an active Coding Plan, Individual Plan shows your plan quota and consumption. The data comes from the provider's statistics API. The page shows when it was last refreshed, and you can click the refresh icon next to it to update manually. If the current workspace does not connect through a Coding Plan, the page asks you to switch to an individual or team plan first.

Individual Plan: quota remaining, activity, and token activity

1Available resets2Remaining quota and reset times

SectionContent
Quota remainingThe remaining percentage and next reset time for 5-hour remaining, Weekly remaining, Tool calls, and ZCode MCP; only the quotas your plan provides are shown. Reset appears when a reset is available
ActivityTotal tokens, peak tokens, total usage duration, current streak, and longest streak, plus the token activity heatmap
Usage trendsCache hit rate, credits total, and average daily credits, plus a daily consumption bar chart
System healthAverage decode speed during peak hours over the last 7 days, shown as separate Max&Pro and Lite lines

Usage trends can show Last 7 days or Last 30 days, with two sets of views:

  • Credits / Usage: measure consumption in credits or by actual usage.
  • Models / Tools: view consumption by model, or by tool calls such as Web Search MCP and Web Reader MCP.
By modelUsage trends by model: daily credits for GLM-5.4, GLM-4.6V, and GLM-5.3-FlashBy toolUsage trends by tool: daily credits for Web Search MCP and Web Reader MCP

System Health

System health shows the average decode speed during peak hours over the last 7 days, so you can tell whether response speed fluctuates noticeably at busy times.

System health: peak-hour average decode speed for Max&Pro and Lite over the last 7 days

Quota Reset Cards

When your 5-hour or weekly quota runs out, you can use a quota reset card to restore it immediately instead of waiting for the next cycle. Reset cards issued by GLM Coding Plan campaigns also appear in the app.

  1. Get a reset cardSign in with a Coding Plan; 5-hour cards are also issued off-peak
  2. Click ResetReset appears on the quota card
  3. ConfirmConfirm in Resettable quota; the earliest card is used first
  4. Quota restoredUses 1 reset and cannot be undone
Each reset card has an expiry date and becomes invalid once it expires
  • View and use: the number of resets you have received appears next to Quota remaining (for example, "Get 8 reset quotas"). When a reset is available, Reset appears on the corresponding quota card. Click it and confirm in the Resettable quota panel; the quota is then restored and the card is marked as reset. Each reset uses 1 reset opportunity and cannot be undone. The plan panel in Model settings offers the same option.
  • Eligibility: reset cards are only issued to users who are signed in to ZCode with a connected Coding Plan account. You will not receive reset cards if you are not signed in, connect only with an API key, or your signed-in account has no Coding Plan.
  • Off-peak issuance: during off-peak hours, ZCode issues 5-hour quota reset cards to Coding Plan users when all of the following are true: it is within the off-peak window, 5-hour usage exceeds a threshold, and the daily issuance limit has not been reached. This off-peak window is different from the one used by Idle-time Tasks. The exact window and threshold are adjusted dynamically; refer to what the app shows. Once a card is issued, a reset prompt appears at the bottom right of the input box on the new task page.
  • Validity: each reset card has an expiry date and becomes invalid once it expires. Clicking reset opens the Resettable quota panel, which lists the expiry of each card; when you have several, the earliest one you received is used first.

Next Steps