Skip to content

feat: support zcode (智谱 AI coding CLI) as a data source #1382

Description

@lengmodkx

Feature Request

Please add support for zcode (智谱 AI coding CLI) as a data source.

Background

智谱 AI (https://open.bigmodel.cn/) provides a Claude Code-compatible CLI called zcode that uses their own models (GLM-4.6, GLM-4.7, etc.) via the Anthropic-compatible API. zcode generates conversation transcripts and token usage data locally, similar to Claude Code.

Expected Behavior

ccusage should be able to read zcode usage data:

npx ccusage zcode daily
npx ccusage zcode weekly
npx ccusage zcode monthly

And ideally auto-detect it in combined reports.

Use Case

Users in China increasingly use 智谱 AI models through the zcode CLI. Tracking token usage and costs across both Claude Code and zcode in one tool would be very valuable.

Additional Context

  • 智谱 AI API: https://open.bigmodel.cn/
  • zcode follows the same usage data format as Claude Code (Anthropic-compatible API)

Activity

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

    triage:resolvedResolved by a later change or current implementation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions