{"name":"CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD","slug":"claude-code-disable-bedrock-content-type-guard","family":"env","title":"Environment variables","noun":"environment variable","description":"Set to `1` to skip the check that an [Amazon Bedrock](\/docs\/en\/amazon-bedrock) streaming response carries the `application\/vnd.amazon.eventstream` content-type. Without this variable, when a response carries a different content-type, Claude Code fails the request with an error naming that type, which means a [gateway or proxy is transforming the response](\/docs\/en\/amazon-bedrock#streaming-errors-behind-a-gateway-or-proxy). Configure the gateway to forward the `Content-Type` header and body unmodified rather than setting this variable. Requires Claude Code v2.1.208 or later","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.208","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":90,"mined_builds":150,"first_cited":{"version":"2.1.285","released_at":"2026-09-29 17:32:09","spans":1}},"aliases":[],"entries":[{"version":"2.1.285","anchor":"bedrock-content-type-fixes-and-tc-helper-for-provider-stream","heading":"Streaming checks for Anthropic, gateway and AWS providers are shared","line":"Claude Code now handles streamed replies from Anthropic, gateways and Anthropic on AWS through one shared check, and the Bedrock guard is unchanged","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.208","anchor":"new-structured-error-types","heading":"New structured error types","line":null,"released_at":"2026-07-13 21:31:27","reason":"found in this entry's text"}],"entries_total":2,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"amazon-bedrock","title":"Claude Code on Amazon Bedrock","documented":false},{"source":"claude-code","path":"errors","title":"Error reference","documented":false}],"docs_total":3,"gates":[],"related":[{"name":"CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_DEFAULT","slug":"claude-code-disable-bedrock-content-type-default","description":"Set to `1` to stop Claude Code from treating an [Amazon Bedrock](\/docs\/en\/amazon-bedrock) streaming response with a missing or empty `Content-Type` header as Amazon Bedrock's binary event stream. By default, Claude Code assumes a gateway dropped the header from an otherwise unmodified response, so it decodes the body and streaming keeps working. Set this only for a gateway that also re-emits the stream as server-sent events; Claude Code then reads the header-less body as server-sent events instead. Requires Claude Code v2.1.239 or later"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-disable-bedrock-content-type-guard","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}