ANTHROPIC_CUSTOM_HEADERS lost after Deep Link import - CC Switch
Quick fix
Upgrade to v3.12.0 or later to fix a bug where custom environment variables are dropped during Deep Link import.
Symptom
Section titled “Symptom”ANTHROPIC_CUSTOM_HEADERS、ANTHROPIC_DEFAULT_HAIKU_MODEL、API_TIMEOUT_MS等均丢失。ANTHROPIC_CUSTOM_HEADERS, ANTHROPIC_DEFAULT_HAIKU_MODEL, API_TIMEOUT_MS, and similar values are all lost.
In cc-switch v3.15.0 and earlier, importing a Provider configuration through a Deep Link saves only standard fields mapped from URL query parameters, such as ANTHROPIC_AUTH_TOKEN. Non-standard custom env fields passed after base64 decoding of the config parameter, such as ANTHROPIC_CUSTOM_HEADERS, are discarded. v3.12.0 fixed a similar issue during Provider switching, but the Deep Link import logic was not fully corrected until a later version. This prevents users from persisting environment variables that carry extra request headers or timeout settings through Deep Link.
Note: Issue #6357 is a feature request for the standalone Claude Desktop app to support more general upstream header overrides. It is separate from the Deep Link import data-loss bug and is not covered by this fix.
Upgrade cc-switch to the latest version that fixes this issue (v3.12.0 or later).
Import the Provider again using the Deep Link and verify that the custom env fields in config are preserved.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
- Why did my ANTHROPIC_CUSTOM_HEADERS disappear after import?
- This is a bug in v3.15.0 and earlier. The Deep Link import logic did not merge the full env block from config. Upgrade the software version to resolve it.
- Is Issue #6357 about custom header support related to this?
- No. #6357 is a feature request to add native UI configuration of upstream request headers for the Claude Desktop app. This page covers the Deep Link import data-loss bug.
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.