Skip to main content
This runbook connects Claude Code to Claude models on Amazon Bedrock through Bifrost. It covers the Bifrost and Claude Code configuration only.

Choose the model mappings

In this guide, a deployment name is the stable alias that you configure on a Bifrost provider key. Claude Code sends that name to Bifrost; Bifrost replaces it with the corresponding Bedrock model ID before inference. The following mappings are sample configurations based on the model IDs in the linked Amazon Bedrock model cards: Sources: Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, and Claude Haiku 4.5.
The recommended deployment names are Bifrost aliases and are required by claude code harness to make accurate inference calls. If you enable Claude Code gateway model discovery, however, each discovered name must begin with claude or anthropic.

1. Configure the Bedrock provider in Bifrost

In Bifrost, go to Models > Model Providers > AWS Bedrock, then add or edit the provider key that Claude Code will use.
Bifrost Deployments table showing deployment names mapped to provider model IDs

Map each Bifrost deployment name to its Bedrock model ID. Add only the models that you intend to expose to Claude Code.

Deployment mappings do not automatically expand a restricted provider key’s model allowlist. If models is not *, include every deployment name in models exactly as it appears in deployments.

Allow Claude Code headers

In Settings > Client Settings, set Allowed Headers to * or explicitly allow the headers Claude Code sends, including:
Keep anthropic-beta as an open value because Claude Code adds capability values over time.

2. Configure the virtual key

Create or edit the virtual key used by Claude Code:
  1. Allow the bedrock provider.
  2. Confirm the virtual key is active and has sufficient budget and rate limits.

3. Setup harness

Bifrost Edge provides the more seamless setup: it routes Claude Code traffic through Bifrost at the machine level, so you do not need to configure a gateway URL or virtual key in Claude Code.
  1. Install or deploy Bifrost Edge by following Deploy with MDM. If Edge is already installed, skip this step.
  2. Complete the one-time setup approval and sign in through your browser.
  3. Open Edge from the menu bar or system tray, select the virtual key configured in the previous step, and confirm that Edge is connected.
  4. Confirm that Claude Code is allowed by your organization’s AI app policy.
  5. Install Claude Code using Anthropic’s installation guide, then start it normally. No changes to .claude/settings.json, ANTHROPIC_BASE_URL, or ANTHROPIC_AUTH_TOKEN are required.
Edge now routes Claude Code requests through Bifrost in the background. For more detail about the user experience, see How Edge works.

4. Test Claude Code

Start Claude Code normally and run:
  • Discovery disabled: Select the built-in Claude tier that maps to the deployment you configured through ANTHROPIC_MODEL or the corresponding default tier variable.
  • Discovery enabled: Select either the configured claude-* deployment under From gateway or the matching built-in Claude tier.
  • With Edge: Select the desired model as you normally would.
After selecting the model, send:
Open Logs in Bifrost and confirm the request used bedrock and resolved the expected deployment to its Bedrock model ID.

Troubleshooting