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.
Symptom
Section titled “Symptom”添加供应商失败:Claude Desktop 直连供应商缺少 ANTHROPIC_BASE_URL (Claude Desktop direct provider is missing ANTHROPIC_BASE_URL)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.
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.
Continue monitoring follow-up discussion in the source Issue to confirm whether a maintainer provides a root cause or official fix.
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.