Skip to content

Unknown coding plan provider - Claude Code

Quick fix

Upgrade to v3.20.0 so the Agent Plan /api/plan endpoint is recognized correctly.

Error output
测试失败: Unknown coding plan provider
English translation

Test 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.

  1. After upgrading CC Switch to v3.20.0, recheck the usage query using the Agent Plan `/api/plan` Base URL.

  2. Before upgrading, temporarily avoid the error by disabling “Enable usage query” on the card using `/api/plan`.

ToolClaude Code
Versionv3.17.0(已在 v3.20.0 修复)
PlatformsWindowsLinux

(No FAQ yet)

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.