Skip to content

Moonshot and Z.ai providers: stale default model, kimi code door address, missing GLM-5.4 #2893

Backlog

Description

@santoshkumarradha

Found while writing the Kimi and GLM guides for agentfield.ai on 2026-11-23. All three are in internal/modelsource/modelsource.go.

  1. Moonshot default model is closed to new accounts. moonshotPreferredModel = "kimi-k2.7-code" is both the preferred model and the key probe (ProbeModel). Moonshot's models page says K2.7 Code and K2.6 are unavailable to new users and expected to be deprecated in late December 2026; the flagship is K3.1 Pro (https://platform.kimi.ai/docs/models.md). The Moonshot row has Listing: ListingNone, so a new user has no model list to fall back on. A new account's key may fail the probe.
  2. The kimi code door points at the China address. The door uses https://api.kimi.com/coding/v1. Kimi Code's docs give api.kimi.ai/coding/v1 for overseas and api.kimi.com/coding/v1 for mainland China (https://www.kimi.com/code/docs/en/). The door also probes with kimi-k2.7-code, which is not among the plan's model IDs. Untested: we have no Kimi Code membership.
  3. Z.ai coding-plan door lacks GLM-5.4. The door's Models lists glm-5.3, glm-5.3-flash and their [1m] variants. Z.ai now includes GLM-5.4 in all plans (https://docs.z.ai/devpack/overview.md).

Replication. In a throwaway home: CODEAF_HOME=$(mktemp -d) codeaf connect moonshot --region intl with a key from a Moonshot account created after K2.7 Code closed, and check whether the probe accepts it.

Acceptance.

  • codeaf connect moonshot --region intl accepts a new account's key and prints moonshot is connected.
  • /model offers kimi-k3.1-pro.
  • The coding-plan door lists GLM-5.4.
  • The manual page internal/manual/chat/services.md names the same models.

Through OpenRouter both families work today: v0.8.2 fixed a failing pytest test on moonshotai/kimi-k3.1-pro and z-ai/glm-5.3.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions