Skip to content

Provider add failed: Claude Desktop direct provider missing ANTHROPIC_BASE_URL, Claude Code

Quick fix

The original post only reports this error. A comment suggests proxy environment variables, but this is unverified; continue monitoring the source Issue.

Error output
添加供应商失败:Claude Desktop 直连供应商缺少 ANTHROPIC_BASE_URL (Claude Desktop direct provider is missing ANTHROPIC_BASE_URL)
English translation

Provider add failed: Claude Desktop direct provider is missing ANTHROPIC_BASE_URL (Claude Desktop direct provider is missing ANTHROPIC_BASE_URL)

In this report on Windows with cc-switch v3.16.0, adding `Claude Code Official` for Claude Code failed and reported that `ANTHROPIC_BASE_URL` was missing. The original post does not explain why the variable was missing, and no maintainer confirmed the root cause or fix status; the closed Issue alone does not prove the problem was fixed.

One comment suggested setting `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`, but did not state that this resolved the issue. Treat it only as an unverified temporary suggestion. The original post does not provide a verifiable solution.

  1. The original post does not provide a verifiable solution. You may refer to the proxy environment variable suggestion in the source Issue comments, but do not treat it as a verified fix until confirmed.

  2. Continue monitoring follow-up discussion in the source Issue to confirm whether a maintainer provides a root cause or official fix.

ToolClaude Code
Versionv3.16.0(报告受影响)
PlatformsWindows

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