AWS_BEARER_TOKEN_BEDROCK
Updated by Alex Sorokoletov
AWS_BEARER_TOKEN_BEDROCK is a Claude Code environment variable: Bearer token for Bedrock authentication. Its release history is not tracked here. It is listed in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Category | Cloud providers |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export AWS_BEARER_TOKEN_BEDROCK=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"AWS_BEARER_TOKEN_BEDROCK": "<value>"
}
}Release notes that mention it
- Claude Code v2.1.96 — No New Environment Variables: Bedrock Auth Hotfix
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
Related variables
ANTHROPIC_AWS_API_KEYANTHROPIC_AWS_BASE_URLANTHROPIC_AWS_WORKSPACE_IDANTHROPIC_BEDROCK_BASE_URL: Alternative Bedrock endpoint (alias).ANTHROPIC_BEDROCK_MANTLE_BASE_URLANTHROPIC_BEDROCK_REGION_PREFIXANTHROPIC_BEDROCK_SERVICE_TIERANTHROPIC_FOUNDRY_AUTH_TOKEN
Frequently asked questions
What does AWS_BEARER_TOKEN_BEDROCK do?
Bearer token for Bedrock authentication
Which Claude Code version has AWS_BEARER_TOKEN_BEDROCK?
Its release history is not tracked here.
How do I set AWS_BEARER_TOKEN_BEDROCK?
Export it before starting Claude Code (export AWS_BEARER_TOKEN_BEDROCK=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.