Skip to content

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.

Error output
`ANTHROPIC_CUSTOM_HEADERS`、`ANTHROPIC_DEFAULT_HAIKU_MODEL`、`API_TIMEOUT_MS` 等均丢失。
English translation

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

  1. Update cc-switch to a version that includes PR #2929.

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

ToolClaude Code
Version3.14.1 - 3.15.0(受影响版本)
PlatformsmacOS

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