CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR
Updated by Alex Sorokoletov
CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR is a Claude Code environment variable. Added between v2.1.324 and v2.1.331 and still present in v2.1.331. It is listed in the official reference.
| Status | Present in v2.1.331 |
|---|---|
| Added | Added between v2.1.324 and v2.1.331 |
| Category | Network and proxy |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR": "<value>"
}
}Related variables
CLAUDE_CODE_AGENT_PROXY_GH_SHIM: When set, installs a gh CLI shim so GitHub CLI calls route through the agent proxy's governed git.CLAUDE_CODE_AGENT_PROXY_GIT_CONFIG: When set, appends a governed git config so git operations route through the agent proxy.CLAUDE_CODE_AGENT_PROXY_GIT_HOSTS: Comma-separated list of git hosts routed through the agent proxy's governed git; invalid entries are dropped and an empty value falls back to the default host.CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUTCLAUDE_CODE_DISABLE_MEMORY_STREAM_LIST: Turns off the incremental metadata-streaming path inside multi-store memory sync.CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTIONCLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK: Disables the fallback path that retries failed streaming requests as non-streaming calls.CLAUDE_CODE_DISABLE_REFUSAL_RETRY: When set, disables the automatic retry of a response that stopped with a refusal.
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR?
Added between v2.1.324 and v2.1.331 and still present in v2.1.331.
How do I set CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR?
Export it before starting Claude Code (export CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.