Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Yes—Claude Code can run through Amazon Bedrock. The current easiest setup is to start claude, choose 3rd-party platform → Amazon Bedrock, and complete the /setup-bedrock wizard. Bedrock supplies the model endpoint, AWS authentication, regional routing, IAM controls, and billing; Claude Code remains the local agent that reads your repository, runs commands, edits files, and executes tests.

Choose Bedrock primarily for AWS governance and centralized billing, not because it is automatically simpler or more private than the Anthropic API.

What changes when Claude Code uses Bedrock?

Layer Responsibility
Claude Code Local agent, repository access, shell commands, tools, permissions, edits, and tests.
Amazon Bedrock Claude model invocation and AWS service endpoint.
IAM, SSO, or API keys Authentication and authorization.
AWS account Billing, Organizations controls, CloudTrail, budgets, and service policies.
Region or inference profile Model availability and request routing.

Your source tree and development tools still run on the workstation. “Using AWS” does not mean every operation occurs inside your VPC. Review the boundaries between the local machine, Bedrock, cross-Region inference, optional gateways, CloudTrail, shell history, prompts, source files, and tool output with your security team.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Claude Code’s Bedrock integration uses the Bedrock Invoke API, not Converse. A gateway must preserve Bedrock’s event-stream response format. WebSearch is unavailable through the Bedrock path. See the Claude Code Bedrock documentation.

#1 Best Overall
Sale
ASUS ROG Zephyrus Duo Gaming Laptop, 16” OLED ROG Nebula HDR 16:10 3K 120Hz/0.2ms, the Intel Core Ultra 9 386H Processor, NVIDIA GeForce RTX 5070Ti Laptop GPU, 32GB LPDDR5X, 1TB PCIe 4.0 NVMe M.2 SSD
  • DUAL-SCREEN ADVANTAGE - Enjoy a spacious workflow with a two 16-inch touch screen, 3K OLED ROG Nebula Display HDR that keeps games, chats, streams, tools, calendars in view—giving you more room to game, create, and multitask.
  • 5 MODES THAT MATCH WHATEVER YOU DO - Switch between laptop, dual-screen, book, and sharing so you can game, work, stream, code, read, or present in any environment, whether you’re at home or on the go. Enjoy tent mode for a new take on two person gaming.
  • POWER TO GAME AND CREATE - An Intel Core Ultra 9 386H processor with 16 cores, an NPU of 50+ TOPs, and NVIDIA GeForce RTX 5070 Ti Laptop GPU deliver immersive graphics, smooth gameplay, and the performance needed for demanding high-level creative work and intensive gaming sessions. Experience the power and creativity of AI in a Copilot + PC.
  • BUILT FOR MULTI-WORKFLOW - With 32GB LPDDR5X 8533 Mhz memory and a 1TB PCIe 4.0 SSD, the Zephyrus Duo handles multiple windows, software, and applications at once—making multitasking smooth whether you're gaming, creating, coding, or presenting.
  • REFINED CRAFTSMANSHIP - The CNC-milled aluminum chassis is carved from a single solid piece of metal, giving the Duo a stronger build with a premium finish. Paired with the new Stellar Grey color and iconic slash lighting across the lid, it delivers both durability and standout style.

Bedrock or the Anthropic API?

Bedrock is a strong fit when

  • Your organization already manages developers through AWS IAM, IAM Identity Center, Organizations, SCPs, and CloudTrail.
  • Central AWS billing and Cost Explorer reporting are preferable to a separate Anthropic subscription.
  • You need account, Region, inference-profile, or gateway controls.
  • Your procurement and data-governance processes are already built around AWS.

Bedrock trade-offs

  • Model access varies by account, Region, inference profile, and permissions.
  • AWS identity and region configuration add setup and failure modes.
  • Cross-Region inference may affect data-residency decisions.
  • Agentic token usage is difficult to forecast, and Opus-class defaults can cost more than Sonnet-class models.
  • Feature parity is not guaranteed; WebSearch is specifically unavailable on Bedrock.
  • SSO expiration, API-key rotation, proxies, and streaming gateways require operational support.

The Anthropic API may be better when

Use the Anthropic API when an individual wants the shortest setup, AWS IAM would be unnecessary overhead, or Anthropic-native account and feature management matter more than AWS controls. Neither provider is universally more secure or private; the answer depends on your contracts, retention settings, Region, identity design, and network controls.

Prerequisites and model access

  • An AWS account with Amazon Bedrock enabled.
  • Claude Code installed locally.
  • An AWS Region where the intended Claude model or inference profile is available.
  • IAM permissions to invoke that model or profile.

Before the first invocation, open the Amazon Bedrock console, choose the target Region, open Model catalog, select an Anthropic model, and submit the use-case details. Current Claude Code documentation says access is granted immediately after submission when account and permissions are correctly configured; enabling one model does not enable every model or Region.

In AWS Organizations, an administrator can submit the use case from the management account with PutUseCaseForModelAccess and the required permission. The supported-models list is the authority for current regional availability.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Samsung 14" Galaxy Chromebook Go Laptop PC Computer, Intel Celeron N4500 Processor, 4GB RAM, 64GB Storage, ChromeOS, XE340XDA-KA2US, Student Laptop, Silver
  • SLIM. LIGHTWEIGHT. READY TO GO: The all-new slim design is perfect for busy lives on the go.
  • SKILLFULLY DESIGNED. MILITARY TOUGH: Built with premium craftsmanship to withstand the occasional drop or ding.
  • ALL-DAY, ALL-IN-ONE CHARGING: Power through your school day – and beyond – with a long-lasting 12-hour battery.¹
  • 3X FASTER THAN THE PREVIOUS GENERATION OF WIFI: Crush your schoolwork in record time with Wi-Fi that’s three times faster than the previous generation of Wi-Fi.
  • YOUR PHONE AND CHROMEBOOK WORK BETTER TOGETHER: Easily transfer files between devices, and control your phone right from your Chromebook.

Install Claude Code

Prefer the current native installer or supported package-manager instructions in the Claude Code documentation. Common commands documented in the AWS guide include:

# macOS, Linux, or WSL
curl -fsSL https://claude.ai/install.sh | bash

# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

# Homebrew
brew install --cask claude-code

# WinGet
winget install Anthropic.ClaudeCode

The older npm installation is deprecated in the referenced AWS article. For managed fleets, inspect installer scripts where policy requires it, control versions, and test updates before broad rollout. The AWS CLI is optional for the wizard but useful for profiles, SSO, region checks, and diagnostics.

Fastest setup: the Bedrock login wizard

  1. Run claude in a terminal.
  2. At the login prompt, select 3rd-party platform.
  3. Select Amazon Bedrock.
  4. Choose a supported credential method.
  5. Confirm the AWS Region.
  6. Select or pin the available Claude models, then finish the wizard.

If you are already at the Claude Code prompt, run:

/setup-bedrock

The wizard can discover an AWS profile under ~/.aws, use a Bedrock API key, use access-key credentials, or use credentials already present in the environment. It writes the result to the env block of the Claude Code settings file, normally ~/.claude/settings.json. If CLAUDE_CONFIG_DIR is set, use the settings directory specified there instead.

Rank #3
Acer Aspire Go 15 AI Ready Laptop | 15.6" FHD (1920 x 1080) IPS Display | AMD Ryzen 7 7730U | AMD Radeon Graphics | 16GB DDR4 | 512GB PCIe Gen4 SSD | Wi-Fi 6 | Windows 11 Home | AG15-42P-R9FW
  • Exceptional Performance and Productivity: Experience smooth and responsive performance powered by an AMD Ryzen 7 7730U processor and 16GB memory and 512GB SSD. Enjoy extended productivity thanks to exceptional battery life and the support of Copilot, your everyday AI companion.
  • Copilot in Windows - your AI Assistant: Do more, quicker than ever across multiple applications with the centralized generative AI assistance of Copilot in Windows Accessible with a single touch of the Copilot Key
  • Immersive Visuals: With its narrow bezel design the 15.6" 1080p Full HD IPS display is perfect for casual web browsing and watching movies or streaming, allowing for a sharp, detailed view of what's in front of you. And with Acer BluelightShield, lower the levels of blue light to lessen the negative effects of blue light exposure.
  • User-Friendly by Design: Seamlessly connect or charge your devices through a full-function USB Type-C port, while Wi-Fi 6 and HDMI 2.1 connectivity enhance your digital experiences to be faster, smoother, and more enjoyable.
  • Unlock More with AcerSense: Intuitive device control is available at the touch of a button with AcerSense, which manages battery life, storage, and apps for optimal performance. Acer TNR solution and Acer PurifiedVoice enhance your video calling experience to a new level of clarity and quality.

Choose a credential method

Method Best for Main drawback
IAM Identity Center / SSO Teams needing individual identity, central revocation, and auditability. Sessions expire and browser authentication can be awkward on remote or restricted networks.
aws login Local browser-based AWS authentication. Behavior depends on AWS CLI version and identity configuration.
AWS profile Existing multi-account or SSO workflows. The selected profile and Region must be correct.
Short-term Bedrock API key Temporary or simplified access. Expires after up to 12 hours or the remaining session duration, whichever is shorter.
Long-term Bedrock API key Exploration only. IAM-user credentials, rotation, exposure, and attribution risks.
Static access keys Legacy compatibility. Inferior lifecycle and security posture compared with short-lived roles.

For API keys, set:

export AWS_BEARER_TOKEN_BEDROCK="your-bedrock-api-key"

AWS recommends short-term keys for production. Long-term keys are intended for exploration. Bedrock API calls are logged in CloudTrail, but the API key itself is not. Do not share one key when per-user attribution matters, and never place credentials in committed dotfiles, shell history, CI logs, or shared settings. See AWS Bedrock API keys.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

SSO and remote login

aws sso login --profile my-profile
export AWS_PROFILE=my-profile
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1
claude

With the AWS CLI login flow:

aws login
# For a remote SSH session
aws login --remote

The IAM Identity Center sso_region need not match the Bedrock runtime Region. Exact aws login behavior depends on the installed CLI and local identity setup; consult the CLI reference.

Manual configuration for CI and managed environments

Enable Bedrock and select a Region

export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1

Region resolution checks AWS_REGION, then AWS_DEFAULT_REGION, then the active profile’s Region, and finally us-east-1. The active profile is AWS_PROFILE when set, otherwise default.

Rank #4
Apple 2026 MacBook Neo 13-inch Laptop with A18 Pro chip: Built for AI and Apple Intelligence, Liquid Retina Display, 8GB Unified Memory, 256GB SSD Storage, 1080p FaceTime HD Camera; Blush
  • AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
  • FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
  • FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
  • UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
  • A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.

Access-key variables

export AWS_ACCESS_KEY_ID="your-access-key-id"
export AWS_SECRET_ACCESS_KEY="your-secret-access-key"
export AWS_SESSION_TOKEN="your-session-token" # temporary credentials only

Automatic SSO refresh

{
  "awsAuthRefresh": "aws sso login --profile my-profile",
  "env": {
    "AWS_PROFILE": "my-profile",
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-east-1"
  }
}

awsAuthRefresh runs when Claude Code detects expired credentials or an AWS credential error. It must invoke a command that updates AWS credential files or the SSO cache; interactive input is not supported. Complete browser flows through the displayed URL or code. If a VPN, TLS inspection, or proxy causes an SSO loop, remove awsAuthRefresh, run aws sso login --profile my-profile manually, and restart Claude Code.

IAM policy and enterprise hardening

The core actions documented for Claude Code are:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "AllowModelAndInferenceProfileAccess",
    "Effect": "Allow",
    "Action": [
      "bedrock:InvokeModel",
      "bedrock:InvokeModelWithResponseStream",
      "bedrock:ListInferenceProfiles",
      "bedrock:GetInferenceProfile"
    ],
    "Resource": [
      "arn:aws:bedrock:*:*:inference-profile/*",
      "arn:aws:bedrock:*:*:application-inference-profile/*",
      "arn:aws:bedrock:*:*:foundation-model/*"
    ]
  }]
}

Some model-subscription flows also need aws-marketplace:ViewSubscriptions and aws-marketplace:Subscribe, conditionally limited to calls made through Bedrock as shown in the official policy example.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Use a dedicated role or account for Claude Code.
  • Restrict resources, models, and Regions where practical.
  • Separate developer, CI, and production permissions.
  • Use explicit denies for unwanted models or Regions.
  • Enable CloudTrail and cost monitoring instead of granting administrator access to solve setup errors.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Model selection and pinning

The current documentation lists Opus 5 as the built-in Bedrock primary-model default, with Sonnet 4.5 as the small/fast default unless your deployment pins another model. Defaults can change after a Claude Code update, so production deployments should pin deliberately.

Best Value
Sale
ASUS Zenbook Duo Laptop (2026), Dual 14” OLED 3K 144Hz Touch Display, Intel Core Ultra 9 Processor 386H, Intel Graphics, 32GB RAM, 1TB SSD, Sleeve and Stylus Included, WiFi 7, Windows 11, Moher Gray
  • High-Performance DUO Take your productivity further in Windows 11 with the 16-core Intel Core Ultra 9 Processor 386H, delivering responsive multitasking and enhanced graphics performance. Paired with 32 GB RAM and 1 TB storage, demanding workloads stay smooth and efficient.
  • AI That Works Supercharge your productivity with 50 TOPS on Copilot, giving you instant file retrieval, quick summaries, faster searches, and more without the waits that break your flow.
  • Transforms in Seconds Switch modes fast with a magnetic keyboard and integrated kickstand. Move from dual-screen productivity to laptop or sharing mode in just a few seconds, keeping your workflow fluid wherever you are.
  • Immerse Your Senses Dual 3K 144 Hz ASUS Lumina OLED touchscreens with 100% DCI-P3 color deliver vivid clarity and up to 1000 nits HDR brightness, while the anti reflection coating and E Reading mode help reduce eye strain during extended use. Six speakers with Dolby Atmos support add rich, spacious sound.
  • All-Day Power A 99Wh battery setup keeps you moving through busy days, and fast-charge technology brings you to 60% in just 49 minutes.

Current documentation examples include:

export ANTHROPIC_MODEL="us.anthropic.claude-sonnet-4-6"
export ANTHROPIC_DEFAULT_OPUS_MODEL="us.anthropic.claude-opus-4-8"
export ANTHROPIC_DEFAULT_SONNET_MODEL="us.anthropic.claude-sonnet-4-6"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="us.anthropic.claude-haiku-4-5-20251001-v1:0"

These are dated examples, not universal guarantees. Verify each ID in your account, Region, and Claude Code release. Cross-Region prefixes can include us., eu., apac., jp., au., global., or us-gov. when supported. Application inference-profile ARNs can centralize routing and cost controls.

Aliases such as opus are not permanent pins. Claude Code may fall back when a preferred model is unavailable, sometimes only for the current session. Run:

/status

To inspect profiles:

aws bedrock list-inference-profiles --region us-east-1

Your first safe agentic coding session

  1. Start read-only: Explain this repository without modifying files. Identify the test command, the main application entry point, and three areas that may need attention.
  2. Discover tests: Run the existing test suite. Do not change files yet. Summarize failures and propose the smallest fixes.
  3. Approve a narrow edit: Fix only the failing test-related issues, show the diff, and rerun the tests. Do not modify dependencies or configuration without asking first.

Use a branch or clean working tree, inspect every proposed diff, and keep a rollback path. Claude Code may request permission for files and tools; permission is not proof that a change is correct or architecturally appropriate.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Context, caching, and cost control

Bedrock pricing is usage-based and varies by model, Region, inference mode, input and output tokens, and caching tier. Check the live Bedrock pricing page rather than relying on old per-million-token examples.

Claude Code exposes:

export DISABLE_PROMPT_CACHING=1
export ENABLE_PROMPT_CACHING_1H=1

The one-hour cache is billed at a higher rate than the five-minute default, and caching is not available for every model or Region. Savings depend on repeated eligible context, workload, model, and cache tier; no fixed percentage is guaranteed.

  • Begin with one service or module rather than an entire monorepo.
  • Exclude generated artifacts, dependencies, binaries, secrets, and production data.
  • Use repository instructions and narrowly scoped tasks.
  • Pin expensive models for tasks that genuinely need them.
  • Create AWS Budgets alerts and review Bedrock usage in Cost Explorer.
  • Use CloudTrail for API activity and security review.

Troubleshooting

Symptom Checks and remedy
Access denied or model unavailable Confirm use-case submission, account, Region, profile, model ID, and both invocation actions. Run aws bedrock list-inference-profiles --region us-east-1.
“On-demand throughput isn’t supported” Use a supported inference-profile ID instead of a foundation-model ID.
SSO repeatedly opens browser tabs Remove awsAuthRefresh, run aws sso login --profile my-profile manually, then relaunch Claude Code.
Credential resolution timeout For diagnosis, try CLAUDE_CODE_SKIP_AWS_CRED_CACHE=1 or CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS=120000. Disabling caching can add latency and load.
Streaming error or truncated event Ensure the proxy preserves application/vnd.amazon.eventstream and the response body. CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD=1 is a temporary diagnostic, not a gateway fix.
Wrong model or unexpected cost Run /status; inspect ANTHROPIC_MODEL, family defaults, ANTHROPIC_BEDROCK_REGION_PREFIX, inference-profile mappings, and account availability.

Decision checklist

  • Choose Bedrock for AWS-native identity, centralized billing, CloudTrail, account and Region controls, and existing enterprise cloud governance.
  • Choose the Anthropic API for the shortest individual setup, Anthropic-native management, or features not available through Bedrock.
  • Consider a gateway when several model providers need common budgets, routing, logging, or policy enforcement—but verify that it handles Bedrock authentication and event-stream responses correctly.

For current setup details, use Claude Code’s Amazon Bedrock guide, the Amazon Bedrock service page, and the relevant AWS identity and cost-management documentation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.