{"version":"2.1.321","anchor":"claude-code-ccr-requests-by-fetch-routes-axios-through-bun-f","canonical_anchor":"claude-code-ccr-requests-by-fetch-routes-axios-through-bun-f","heading":"New CLAUDE_CODE_CCR_REQUESTS_BY_FETCH setting changes how hosted workers send requests","tier":"use","area":"Cloud Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321\/e\/claude-code-ccr-requests-by-fetch-routes-axios-through-bun-f","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321","markdown":"### New CLAUDE_CODE_CCR_REQUESTS_BY_FETCH setting changes how hosted workers send requests\n\nSetting CLAUDE_CODE_CCR_REQUESTS_BY_FETCH on a hosted worker sends unproxied network requests through Bun's built-in fetch\n\n**What**\n\nA 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.\n\nWhen 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:\n\n- 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.\n\n- The variable is passed through to remote sessions.\n\n**Why**\n\nThis is an opt-in change to how hosted workers talk to the network, and it does nothing unless you set the variable.\n\n- Area: Cloud Sessions\n- Names: `CLAUDE_CODE_CCR_REQUESTS_BY_FETCH`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}