# CLAUDE_CODE_GZIP_REQUEST_BODIES

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_GZIP_REQUEST_BODIES=0

## Think of it like

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

## 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

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

## Example code

```bash
export CLAUDE_CODE_GZIP_REQUEST_BODIES=0
claude
```

Send requests without gzip.

## Why it matters

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

## Common mistake

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

## Three principles

- **0 turns it off.** No gzip.
- **On by default.** Direct links only.
- **For odd proxies.** That break on gzip.

## Related terms

- [CLAUDE_CODE_CERT_STORE](https://learn.benibix.com/term/ai/claude-code-cert-store-variable)
- [ANTHROPIC_BASE_URL](https://learn.benibix.com/term/ai/anthropic-base-url-variable)

---

Source: https://learn.benibix.com/term/ai/claude-code-gzip-request-bodies-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
