Repository navigation
Show Z.ai GLM token usage and cost on the Usage page #32173
ben-w-smith
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Since #19958, T3 stores per-turn token usage for Z.ai GLM (
glm-acp-agent) turns, but the Usage page never reads it, so GLM is missing from Tokens and Cost.Proposal
glm-acp-agentinstances only, through a read-only service likeCodexUsageHistory.zaiusage provider. Each turn's model comes from its run and is priced aszai/<model>.Why GLM only
Some registry agents front CLIs that T3 already reads natively. For example,
claude-acpwrites the~/.claudehistory the Claude reader counts. Reading every ACP agent's stored turns would count those twice. GLM has no native reader and is the only registry agent with verified per-turn usage (#20010). A generic reader, as proposed in #32083, could follow as other agents are verified.Question
Is a GLM-specific
zaiprovider acceptable for now, or would you rather start generic?Working implementation: #32175.
All reactions