In short.
Claude Code on Amazon Bedrock is a setup guide for developers and platform teams who want Claude Code to use AWS-hosted models, but account permissions and model availability determine which configurations work. It covers authentication, IAM permissions, model pinning and fallback, cross-region routing, and the alternative Mantle endpoint. Its most consequential details concern controlling model choice and billing, distinguishing endpoint permissions, and diagnosing enterprise network problems. Exact costs, coding performance and successful operation are not established; nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected documentation page at [https://code.claude.com/docs/en/amazon-bedrock.md], including authentication, credential behavior, IAM, model configuration and fallback, cross-region profiles, context windows, caching, service tiers, Guardrails, Mantle, troubleshooting and inline warnings and version notes. Linked Claude Code pages, AWS documentation and pricing, sales material, setup guides and GitHub monitoring files are excluded. No commands were executed, and account access, model availability, endpoint behavior, permissions, costs and deployment outcomes were not tested.
The overview
Identity
This is a Claude Code documentation page about connecting the coding assistant to Amazon Bedrock. It is a configuration and troubleshooting guide rather than a downloadable integration or a separate coding tool. The original page is [https://code.claude.com/docs/en/amazon-bedrock.md].
Its scope includes the standard Amazon Bedrock Invoke API and Mantle, an alternative Bedrock endpoint using the native Anthropic API request format. It also addresses team deployment through settings, model controls and AWS permissions.
Assessment
The guide is useful for AWS users who need concrete configuration details beyond a basic sign-in walkthrough. It explains credential precedence, model-access failures, inference-profile routing and proxy behavior, which helps developers and administrators understand why an apparently valid setup can still fail.
Beginners can start with the login wizard, while experienced teams get environment variables, settings examples and IAM actions for scripted deployment. Readers still need AWS access and permission knowledge; the page provides no measured evidence about coding quality, deployment reliability or performance.
Users
Individual developers with an enabled AWS account can use the wizard to choose credentials, a region and accessible models. Platform administrators can use the manual instructions to standardize configuration across a team or configure CI environments.
The advanced sections suit organizations using IAM Identity Center, cross-account credentials, application inference profiles, corporate proxies or centralized gateways. Someone without AWS account access or the ability to obtain the required permissions will need an administrator's help before these instructions become usable.
Capabilities
The guide explains interactive setup, manual configuration, several authentication methods, credential caching and refresh, model-version pinning, per-version inference-profile overrides, startup access checks and fallback behavior. It also describes running Mantle and the Invoke API within the same session.
Additional configuration topics include eligible models' one-million-token context windows, prompt caching, Bedrock service tiers and Guardrails content filtering. These features have model, region, endpoint or version conditions. The service-tier variable applies to Invoke API requests, excluding model-access checks, and has no effect on Mantle or Claude apps gateway requests.
Using it
Requirements
You need a working Claude Code installation, an AWS account with Amazon Bedrock access, access to the intended Claude models and appropriate IAM permissions. The page requires submitting Anthropic use-case details before first invocation, once per account; it also describes submission from an AWS Organizations management account.
The AWS CLI is optional when another credential mechanism is available. The browser-based aws login method specifically requires AWS CLI 2.32.0 or later. Individual Claude Code features have their own version requirements, so the page does not establish one minimum version covering every configuration.
The sample Invoke API policy permits model invocation, streaming and inference-profile discovery, plus conditional Marketplace subscription actions. Its resource patterns are broad; the page allows narrowing them to specific inference-profile ARNs. Mantle requires separate bedrock-mantle:CreateInference and bedrock-mantle:CountTokens permissions, which the standard Bedrock policy does not provide.
Mechanism
Standard authentication uses the AWS SDK's default credential chain, which can obtain credentials from profiles, environment variables or AWS workload identities. Setting AWS_BEARER_TOKEN_BEDROCK takes precedence and bypasses that chain. Chain-resolved credentials are cached in memory until five minutes before expiration, or for one hour when no expiration is present; credential errors clear the cache. The default chain-resolution timeout is 60 seconds.
Region selection follows AWS_REGION, AWS_DEFAULT_REGION, the active AWS profile and finally us-east-1. The Invoke API can resolve models through cross-region inference profiles. ANTHROPIC_BEDROCK_REGION_PREFIX sets a preferred prefix, but discovery can select another matching profile when the preferred one is unavailable. Explicit inference-profile IDs and ARNs are not rewritten.
With both Bedrock and Mantle enabled directly, Mantle-format model IDs route to Mantle and other IDs route to the Invoke API. Application inference profiles can also be mapped to individual model versions through modelOverrides.
Setup
For interactive setup, complete the AWS-side model-access requirements, start claude and choose 3rd-party platform followed by Amazon Bedrock. An existing session can open the wizard with /setup-bedrock. It checks credentials and model access, offers model pins, and saves configuration in the user settings file, normally ~/.claude/settings.json.
For manual setup, configure credentials, set CLAUDE_CODE_USE_BEDROCK=1, specify a region when necessary and pin the intended models. The page recommends explicit version pins before a team rollout. Mantle instead uses CLAUDE_CODE_USE_MANTLE=1 and its own model-ID format; /status displays the resolved provider.
For managed authentication, awsAuthRefresh runs when credentials are detected as expired, with an STS check before the refresh command. awsCredentialExport runs at session start and credential reload, supporting credentials that differ from the default chain. Refresh commands cannot receive interactive terminal input, although browser-based authentication flows are supported.
Example
For a developer with an existing AWS SSO profile, the documented ingredients are aws sso login --profile=your-profile-name, followed by export AWS_PROFILE=your-profile-name and export CLAUDE_CODE_USE_BEDROCK=1. Set AWS_REGION if needed, then choose an accessible model before starting claude. The page gives export ANTHROPIC_MODEL='us.anthropic.claude-sonnet-4-6' as one model-selection example.
That model ID assumes access to the corresponding us. inference profile. It is an example from the documentation, not confirmation of availability in a particular account. After configuration, /status can show the resolved region and provider. No successful sign-in, model response or output was demonstrated here.
Assessment & evidence
Limitations
The page states that Claude Code's WebSearch tool is unavailable on Amazon Bedrock. The /logout command is also unavailable because authentication is handled through AWS credentials. Model availability, context-window support, prompt caching and service tiers depend on the relevant account, model, region or endpoint.
Cross-region prefix preferences do not guarantee selection of that geography. Mantle has a separate model lineup and permission namespace, so Invoke API model IDs and permissions cannot simply be reused. Guardrails may block a response after streaming has begun, leaving already-streamed text visible.
Corporate TLS inspection, interrupted SSO flows and gateways that alter Bedrock's streaming format can cause failures. The guide describes remedies, but it provides no evidence that they work in any particular network or deployment. Accuracy, latency, reliability and coding outcomes remain unassessed.
Reasoning
Model pinning is especially consequential because it affects reproducibility, continuity and spending. The documented unpinned behavior can substitute an earlier or lower-tier model when access fails. Mid-session loss of access to a pinned model or explicitly selected version instead causes failure unless an applicable fallback chain is configured. Teams therefore need to decide explicitly whether model substitution is acceptable.
The guide also distinguishes visibility controls from enforcement: availableModels alone does not restrict startup access checks. Managed enforceAvailableModels makes those checks respect the permitted list on the Invoke API and requires Claude Code v2.1.287 or later.
A routing implication follows from the documented prefix behavior: organizations with geographic restrictions should verify the actual inference profiles and applicable access controls, rather than relying on a preferred-prefix setting alone.
Alternatives
The alternatives documented here are configuration paths within Claude Code: the wizard or manual settings, the AWS credential chain or a Bedrock bearer token, and the Invoke API or Mantle. The wizard handles interactive configuration; manual settings support CI and scripted team rollout.
Mantle uses the native Anthropic API request format and its own model IDs, while the Invoke API uses Bedrock-specific routing and inference profiles. Direct connections can enable both. For a gateway that accepts Anthropic Messages API requests and converts Bedrock streams to server-sent events, the page recommends connecting as an LLM gateway instead.
The page supplies no comparative evidence for ranking other coding assistants or model providers, and establishes no performance or cost advantage between its endpoint options.
Evidence
The evidence consists of the complete Claude Code documentation page at [https://code.claude.com/docs/en/amazon-bedrock.md]. It contains configuration examples, IAM actions, environment-variable behavior, troubleshooting instructions and version-specific notes.
This supports describing documented configuration and expected behavior. It supplies no execution traces, independent benchmarks or account-specific proof of a successful deployment. Linked documentation, pricing pages and monitoring material were not included. Nothing was executed.
Access & freshness
Costs
Exact token prices, total operating costs and any separate Claude Code plan requirements are unknown from this page. It links to Amazon Bedrock pricing at [https://aws.amazon.com/bedrock/pricing/], but those prices are outside the supplied evidence.
The captured page lists Opus 5.5 as the unpinned primary default and warns that Opus has a higher per-token price than Sonnet. Background requests normally use the default Sonnet model on Bedrock, but explicit primary-model selection can cause background work to use that model too. Pinning only the Opus family can also affect this behavior.
The optional one-hour prompt-cache lifetime costs more than the five-minute default. Service tiers offer cost-versus-latency choices, with availability varying by model and region. The evidence supplies no numerical comparison or workload estimate.
Rights
The supplied page states no explicit licence or redistribution grant for its text or examples. Documentation redistribution rights and the software's licence terms are therefore unknown from this evidence.
It also does not establish ownership terms for generated code, data-retention commitments, use of submitted material for training or contractual compliance guarantees. IAM permissions and Guardrails describe technical controls; they do not establish those legal or data-handling terms.
Freshness
The supplied page was captured on 24 November 2026. A publication or last-updated date is not established by its contents. Version notes include the default-model change at v2.1.280 and the managed-model-pin prompt fix at v2.1.314; neither identifies a reader's installed version.
Model defaults, available IDs, account access and regional support require current confirmation before deployment. The troubleshooting guidance is also version-sensitive: for example, the page identifies certificate-handling fixes at v2.1.260 and v2.1.261.
Actions
Before following the guide, confirm account-level model access, the intended region, authentication method and installed Claude Code version. Choose Invoke API, Mantle or both, then review the corresponding IAM permissions. For a team rollout, pin model versions and decide which fallback behavior and model allowlist enforcement are appropriate.
In a pilot, use /status to inspect provider and region, verify that the selected model is invoked, and check actual usage and charges. Verify cross-region routing and background-model selection where these affect organizational requirements.
If a corporate connection fails, compare the installed version with the relevant proxy and certificate fixes. A gateway serving the Invoke API should preserve Bedrock's binary streaming body and Content-Type header. Confirm pricing and applicable usage and data-handling terms before broader adoption.
