Skip to content

Conversation

@dylanbowman314
Copy link
Contributor

@dylanbowman314 dylanbowman314 commented Nov 24, 2025

Adds bedrock support to Claude Agent

agent = ClaudeAgent(
    model_client=AsyncAnthropicBedrock(
        aws_access_key=aws_access_key_id,
        aws_secret_key=aws_secret_access_key,
    ),
    model="arn:aws:bedrock:us-east-1:[AWS id]:inference-profile/global.anthropic.claude-sonnet-4-5-20250929-v1:0"
)

Not currently supported in CLI


Note

Adds AWS Bedrock support for Claude, auto-detects Bedrock ARNs in CLI, and introduces AWS credential settings with tests and optional dependency.

  • Claude Agent:
    • Support AsyncAnthropicBedrock via ClaudeConfig.model_client.
    • Bedrock path uses beta.messages.create(...) (non-stream); handles missing boto3 with clear error.
  • CLI (hud/cli/eval.py):
    • Auto-detect Bedrock by ARN (checkpoint_name/--model) and construct AsyncAnthropicBedrock client.
    • Validate required AWS env vars (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION).
  • Settings:
    • Add aws_access_key_id, aws_secret_access_key, aws_region fields.
  • Tests:
    • New Bedrock tests for agent and CLI; update tests to disable telemetry during runs.
  • Dependencies:
    • Add optional bedrock extra with anthropic[bedrock]>=0.75.

Written by Cursor Bugbot for commit 01fd115. This will update automatically on new commits. Configure here.

@jdchawla29 jdchawla29 merged commit eefc97a into main Dec 11, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants