Skip to content

Unkonw coding plan provider Claude Code usage query failure

Quick fix

Upgrade to v3.20.0+ and recreate the old Agent Plan provider, or change its Base URL to /api/plan.

Error output
Unkonw coding plan provider

In cc-switch 3.19.1, `detect_provider` recognizes only `volces.com/api/coding`, not `/api/plan` used by Agent Plan, so Agent Plan is identified as an unknown provider. Meanwhile, usage queries probe endpoints in order; when one account has both plans, the Coding Plan configuration may return Agent Plan usage first.

  1. Upgrade to v3.20.0 or later, which includes the fix.

  2. If an old Agent Plan provider is saved, recreate it or change its Base URL to `/api/plan`.

  3. Use the corresponding entry for Agent Plan and Coding Plan to query usage separately. The official fix routes `/api/plan` to `GetAFPUsage` and `/api/coding` to `GetCodingPlanUsage`.

ToolClaude Code
Version3.19.1 - 3.20.2(reported affected)
PlatformsWindows

This page is distilled from 1 real issues

I am on v3.20.2. Both plans use the same AK/SK, but both still query Agent Plan usage; Coding Plan usage can never be queried.
A user reported this in the issue after upgrading to v3.20.2. The official explanation is that the old Agent Plan provider must be recreated or its Base URL changed.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.