Unknown coding plan provider - Claude Code
Quick fix
Upgrade to v3.20.0 so the Agent Plan /api/plan endpoint is recognized correctly.
Symptom
Section titled “Symptom”测试失败: Unknown coding plan providerTest failed: Unknown coding plan provider
When Claude Code's `ANTHROPIC_BASE_URL` uses the Volcengine Ark Agent Plan `/api/plan` path, older `detect_provider` versions match only `/api/coding`. It therefore returns `None`, causing the usage query to fail and display this error.
Maintainers confirmed this was fixed in v3.20.0: `detect_provider` now matches both `volces.com/api/plan` and `volces.com/api/coding`. If the same account has both Coding Plan and Agent Plan, the quota may still return Agent Plan data. That is a separate detection-order issue and outside this fix.
After upgrading CC Switch to v3.20.0, recheck the usage query using the Agent Plan `/api/plan` Base URL.
Before upgrading, temporarily avoid the error by disabling “Enable usage query” on the card using `/api/plan`.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
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.