Skip to content

Add a first-class Z AI Coding Plan provider (subscription endpoint api.z.ai/api/coding/paas/v4) #546

Description

@ruttybob

Problem

The stock zai provider (coworker/providers/registry.py, base_url https://api.z.ai/api/paas/v4, env ZAI_API_KEY) covers only pay-as-you-go API access. Z AI's Coding Plan is a separate subscription product with its own endpoint (https://api.z.ai/api/coding/paas/v4) and its own key. A plan subscriber has no first-class slot: today they would have to hand-edit the zai endpoint or abuse the "point OpenAI at another gateway" trick.

Proposal

Add a first-class registry entry following the existing plan-provider precedent (ark-agent-plan / ark-agent-plan-cn):

  • id: zai-coding, title: Z AI Coding Plan
  • base_url prefilled to https://api.z.ai/api/coding/paas/v4
  • env_key: ZAI_CODING_API_KEY
  • recommended model from the Coding Plan lineup (GLM coding models)
  • endpoint_help noting it requires a Coding Plan subscription and is separate from stock Z AI

Notes

  • Stock zai stays untouched; builtin-name collision rejection already guards routing ambiguity.
  • Composes with thinking controls like any other compat provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions