Unclear It is not clear whether an empty value or 0 also counts as setting the variable, so it may switch compression off unexpectedly.
What
Claude Code can now ask for API responses to be sent without compression. It does this by setting the accept-encoding: identity header on https requests that do not already set it.
- Setting the environment variable
CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSIONturns this on. An environment variable is a named value set in your shell - When the variable is not set, it can still apply to first-party requests, meaning ones sent straight to Anthropic, if the server-controlled switch
tengu_velvety_ducklingis on. That switch falls back to off, so by default nothing changes. Nothing has been read about it - The variable joins the list of proxy and network variables passed through, next to
CLAUDE_CODE_PROXY_RESOLVES_HOSTS
Why
If a proxy between you and the API mishandles compressed responses, this setting gives you a way around it. It changes how responses travel over the network, which can affect bandwidth.
tengu_velvety_duckling Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.331: off
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.331. It isn't a statement about your account. What a flag value here can and cannot tell you
It is not clear whether an empty value or `0` also counts as setting the variable, so it may switch compression off unexpectedly.