Skip to content
BENIBIX Learn

CLAUDE_CODE_GZIP_REQUEST_BODIES

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_GZIP_REQUEST_BODIES=0

Set to 0, it stops Claude Code from squeezing its requests.

Think of it like

It is like you send a box flat, not squashed. Then the mail checker can read it.

Example

Lucy's office proxy reads all traffic and chokes on gzip. Her requests fail with odd errors until she sets this to 0.

Why it matters

It fixes a strange failure that only shows up on some company networks.

Definition

CLAUDE_CODE_GZIP_REQUEST_BODIES set to 0 stops Claude Code from squeezing big requests with gzip. By default it squeezes them on a direct link. It skips that through a proxy, or with a client certificate. Use 0 when a proxy reads traffic and breaks on them, but Claude Code cannot see it.

Example code

bash
export CLAUDE_CODE_GZIP_REQUEST_BODIES=0
claude
Send requests without gzip.

Common mistake

Turning it off with no reason. Squeezed requests are smaller and faster on a direct link.

Key takeaways

  1. 1
    0 turns it off. No gzip.
  2. 2
    On by default. Direct links only.
  3. 3
    For odd proxies. That break on gzip.