Skip to content

ZCode: missing pricing for built-in Z.ai plans #1831

Closed

Description

@omeraltinova

What happened?

I'm seeing missing-pricing warnings for GLM-5.3 and GLM-5.3-Flash
when using ZCode's built-in Z.ai plans. The models and token counts
appear correctly, but their cost estimates stay at $0.00 despite
the rates already being available in the embedded pricing data.

The affected records use provider IDs such as
account:zai-individual-coding-plan and account:zai-start-plan.
The adapter recognizes older built-in IDs but does not recognize
these current plan IDs.

Steps to reproduce

  1. Complete a turn using GLM-5.3 or GLM-5.3-Flash in ZCode
    with a built-in Z.ai plan.
  2. Run ccusage zcode daily --mode calculate --offline.
  3. Observe the missing-pricing warnings and zero cost estimates.

Expected behavior

ccusage should recognize these shared Z.ai plan IDs and calculate
cost estimates using the existing pricing data.

I have a fix ready that covers the four Z.ai account plan IDs.
If broader support is wanted, I can also work on the equivalent
BigModel plans.

I'd also be happy to investigate usage and pricing support for
providers configured through ZCode's OpenRouter or OpenCode Go
templates. I haven't yet verified what usage records those
integrations persist or how their provider IDs map to pricing.

Version

20.0.26

Activity

  1. pullfrog commented on Oct 7, 2026

    @pullfrog
    Contributor
  2. added
    priority:mediumA normal bug or meaningful improvement.
    triage:maintainableFits the repository's maintainable scope and needs review.
    on Oct 7, 2026
  3. added
    priority:highHigh user impact or an important regression.
    and removed
    priority:mediumA normal bug or meaningful improvement.
    on Oct 7, 2026
  4. github-actions commented on Oct 7, 2026

    @github-actions
    Contributor

    Pullfrog triage: priority:high
    Kind: bug
    Maintenance fit: maintainable
    Confidence: high

    ZCode shows $0 cost and missing-pricing warnings for GLM-5.3 models with account:zai-* plan IDs. Parser only recognizes older builtin Z.ai IDs, so existing pricing is not applied. Adding the current plan IDs restores cost reporting with bounded scope.

    Decision: kept open; Pullfrog will attempt a focused implementation PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:highHigh user impact or an important regression.triage:maintainableFits the repository's maintainable scope and needs review.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions