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.
Symptom
Section titled “Symptom”Unkonw coding plan providerIn 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.
Upgrade to v3.20.0 or later, which includes the fix.
If an old Agent Plan provider is saved, recreate it or change its Base URL to `/api/plan`.
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`.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”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.
Related problems
Section titled “Related problems”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.