Skip to content

Support Amazon Bedrock model IDs and authentication #122

@that-github-user

Description

@that-github-user

Summary

thinktank should support Amazon Bedrock as a Claude provider. Users with Bedrock access use different model IDs (e.g., anthropic.claude-opus-4-6-v1) and authenticate via AWS credentials rather than Anthropic API keys.

Bedrock model IDs

From https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html:

  • anthropic.claude-opus-4-6-v1
  • anthropic.claude-sonnet-4-6-v1
  • anthropic.claude-haiku-4-5-v1
  • etc.

What needs to change

Model validation (src/cli.ts)

Currently warns for unknown models but accepts claude-* prefixed IDs. Should also accept anthropic.* prefixed IDs without warning.

Runner (src/runners/claude-code.ts)

Claude Code CLI already supports Bedrock via:

  • ANTHROPIC_MODEL env var
  • --model flag with Bedrock model IDs
  • AWS credential env vars (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION)

The runner may need to pass through AWS env vars to the spawned claude processes.

Config (src/utils/config.ts)

Allow model config to accept Bedrock model IDs.

Documentation

  • Update README Models section to mention Bedrock IDs
  • Update .env.example with AWS credential placeholders

Acceptance criteria

  • --model anthropic.claude-opus-4-6-v1 accepted without warning
  • AWS env vars passed through to agent processes
  • Documentation updated
  • Test with Bedrock model ID validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions