ANTHROPIC_CUSTOM_HEADERS not saved - Claude Code
Quick fix
Update to a version that includes PR #2929 and re-import; the Deep Link's config.env custom fields are preserved.
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 others are all lost.
In Claude Code's Provider Deep Link import, the preview could read the full env block from the config parameter, but saving previously only wrote the standard fields mapped from URL parameters, causing custom env fields to be lost.
PR #2929 implements the fix: the importer first preserves the extra env fields from the inline config, then lets URL parameters override the standard Provider fields.
Update cc-switch to a version that includes PR #2929.
Reopen and confirm the import of the original Deep Link; after importing, verify in the Provider editor that custom env fields such as `ANTHROPIC_CUSTOM_HEADERS` still exist.
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.