Skip to main content
Shannon supports Amazon Bedrock as an alternative to using Anthropic API keys directly.

Setup Instructions

1

Add AWS credentials to .env

Create or edit your .env file with the following configuration:
CLAUDE_CODE_USE_BEDROCK=1
AWS_REGION=us-east-1
AWS_BEARER_TOKEN_BEDROCK=your-bearer-token

# Set models with Bedrock-specific IDs for your region
ANTHROPIC_SMALL_MODEL=us.anthropic.claude-haiku-4-5-20251001-v1:0
ANTHROPIC_MEDIUM_MODEL=us.anthropic.claude-sonnet-4-6
ANTHROPIC_LARGE_MODEL=us.anthropic.claude-opus-4-6
2

Run Shannon

Run Shannon as usual — it will automatically use Bedrock:
./shannon start URL=https://example.com REPO=repo-name

Environment Variables

VariableRequiredDescription
CLAUDE_CODE_USE_BEDROCKYesSet to 1 to enable Bedrock mode
AWS_REGIONYesAWS region (e.g., us-east-1)
AWS_BEARER_TOKEN_BEDROCKYesYour AWS bearer token for Bedrock access
ANTHROPIC_SMALL_MODELYesBedrock model ID for small tasks (Haiku)
ANTHROPIC_MEDIUM_MODELYesBedrock model ID for medium tasks (Sonnet)
ANTHROPIC_LARGE_MODELYesBedrock model ID for large tasks (Opus)

Model Tiers

Shannon uses three model tiers optimized for different tasks:
  • Small (claude-haiku-4-5-20251001) — Used for summarization and lightweight tasks
  • Medium (claude-sonnet-4-6) — Used for security analysis and vulnerability detection
  • Large (claude-opus-4-6) — Used for deep reasoning and complex exploitation

Region-Specific Model IDs

Make sure to use the correct Bedrock model IDs for your AWS region. Model IDs vary by region and may include prefixes like us.anthropic. for US regions. Refer to the AWS Bedrock Model IDs documentation for the correct identifiers in your region.

Example Configuration

Here’s a complete .env example for AWS Bedrock in the us-east-1 region:
# AWS Bedrock Configuration
CLAUDE_CODE_USE_BEDROCK=1
AWS_REGION=us-east-1
AWS_BEARER_TOKEN_BEDROCK=your-bearer-token-here

# Model Configuration
ANTHROPIC_SMALL_MODEL=us.anthropic.claude-haiku-4-5-20251001-v1:0
ANTHROPIC_MEDIUM_MODEL=us.anthropic.claude-sonnet-4-6
ANTHROPIC_LARGE_MODEL=us.anthropic.claude-opus-4-6

# Optional: Increase output tokens for better results
CLAUDE_CODE_MAX_OUTPUT_TOKENS=64000

Build docs developers (and LLMs) love