Skip to content
BENIBIX Learn

CLAUDE_CODE_SKIP_BEDROCK_AUTH

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_SKIP_VERTEX_AUTH, CLAUDE_CODE_SKIP_FOUNDRY_AUTH, CLAUDE_CODE_SKIP_MANTLE_AUTH, CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH, CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH

It skips the cloud sign-in when a gateway signs in for you.

Think of it like

It is like a guard at the gate who checks you, so the door does not.

Example

Emma's gateway holds the company's AWS keys. Laptops set this, so Claude Code sends plain requests and the gateway signs them.

Why it matters

No laptop has to hold cloud keys. The gateway keeps them in one safe place.

Definition

CLAUDE_CODE_SKIP_BEDROCK_AUTH stops Claude Code from signing in to AWS before it calls Bedrock. Each cloud has its own form, such as _VERTEX and _FOUNDRY. Use it when your requests go through a gateway that signs in for you. Then Claude Code sends requests with no cloud keys of its own.

Example code

bash
export CLAUDE_CODE_USE_BEDROCK=1
export CLAUDE_CODE_SKIP_BEDROCK_AUTH=1
export ANTHROPIC_BEDROCK_BASE_URL=https://llm.example.com/bedrock
claude
Reach Bedrock through a gateway that holds the keys.

Common mistake

Setting it with no gateway in the path. The cloud then gets requests with no keys and turns them away.

Key takeaways

  1. 1
    One per cloud. Same pattern.
  2. 2
    Gateway signs in. Not Claude Code.
  3. 3
    No keys on laptops. Safer.