{"version":"2.1.331","anchor":"new-env-var-claude-code-disable-response-compression-control","canonical_anchor":"new-env-var-claude-code-disable-response-compression-control","heading":"New CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION setting turns off compressed responses","tier":"use","area":"Internals","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/new-env-var-claude-code-disable-response-compression-control","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### New CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION setting turns off compressed responses\n\n`CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION` asks the API for uncompressed responses, with a server switch for first-party requests\n\n**Unclear.** It is not clear whether an empty value or `0` also counts as setting the variable, so it may switch compression off unexpectedly.\n\n**What**\n\nClaude 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.\n\n- Setting the environment variable `CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION` turns this on. An environment variable is a named value set in your shell\n\n- 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_duckling` is on. That switch falls back to off, so by default nothing changes. Nothing has been read about it\n\n- The variable joins the list of proxy and network variables passed through, next to `CLAUDE_CODE_PROXY_RESOLVES_HOSTS`\n\n**Why**\n\nIf 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.\n\n- Flag `tengu_velvety_duckling`: Not enough to say (read for one account on one subscription tier against v2.1.331; this account: no value returned, anonymous baseline: no value returned, compiled default: 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.\n- Area: Internals\n- Names: `CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}