What
A new environment variable, CLAUDE_CODE_CCR_REQUESTS_BY_FETCH, changes how Claude Code sends some network requests. An environment variable is a setting you give a program before it starts.
When it is set and the session type is hosted_worker, requests Claude Code makes through its usual HTTP library that do not go through a proxy are sent with Bun's built-in fetch instead. Bun is the runtime Claude Code runs on. The startup log says when this is in effect. Related changes:
- Claude Code's fetch wrapper skips its own redirect handling when the caller has already asked for redirects to be handled manually or treated as errors.
- The variable is passed through to remote sessions.
Why
This is an opt-in change to how hosted workers talk to the network, and it does nothing unless you set the variable.
Names in the bundleCLAUDE_CODE_CCR_REQUESTS_BY_FETCH
One source agreesOne thing we can check says the same as this entry.
The name it cites is new in this build
New in this build: CLAUDE_CODE_CCR_REQUESTS_BY_FETCH