t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Claude code doesn't support AWS Bedrock usage

Open super-original opened this issue 8 months ago • 9 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Have your claude code set up to use AWS Bedrock
  2. Double check that claude code works in the CLI
  3. Attempt to prompt in T3 Chat with a claude model
  4. You will get "Credit balance is too low" response

Expected behavior

The model responds normally.

Actual behavior

The only response is "Credit balance is too low"

Impact

Blocks work completely

Version or commit

0.0.13

Environment

MacOS 26.3.1, T3 Code 0.0.13, Any anthropic model

Logs or stack traces


Screenshots, recordings, or supporting files

CleanShot 2026-03-21 at 00.30.05.png CleanShot 2026-03-21 at 00.29.53.png

Workaround

Use Claude code in the CLI until this is fixed

super-original avatar Mar 20 '26 23:03 super-original

@super-original I will have a look at this now!

How are you setting up Claude Code to use bedrock?

Noojuno avatar Mar 21 '26 04:03 Noojuno

@Noojuno I have the following environment variables set in ~/.claude/settings.json under the "env" key:

{
  "env": {
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-east-1",
    "AWS_DEFAULT_REGION": "us-east-1",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "us.anthropic.claude-opus-4-6-v1"
  }
}

For AWS auth, I'm using IAM credentials from the root account configured in ~/.aws/config with the default profile (not SSO). Claude Code in the CLI works perfectly with this setup, it's only T3 Code that returns "Credit balance is too low", which makes me think T3 Code might be checking for an Anthropic API key/credits instead of passing through the Bedrock configuration.

super-original avatar Mar 21 '26 06:03 super-original

Same issue here. I found that you can force T3 to pick those settings up by explicitly adding them to the environment variables and then run T3 from terminal using the full binary path /Applications/T3 Code (Alpha).app/Contents/MacOS/T3 Code (Alpha).

rkarimpour-diligent avatar Mar 23 '26 01:03 rkarimpour-diligent

@rkarimpour-diligent @super-original @Noojuno hey folks, can you look at the change in my PR? If you've got the time, run it locally and see if it fixes things for you. It makes Claude work for me across the board with different types of auth modes, but it would be awesome to get more data points from you guys.

harshit97 avatar Mar 23 '26 16:03 harshit97

Same bug here

wagnersza avatar Mar 24 '26 22:03 wagnersza

In my case, my work uses AWS SSO to authenticate the with the bedrock ARN's. If these are within the harness then should trigger as it would inside Claude Code?

dafzthomas avatar Mar 25 '26 18:03 dafzthomas

So if the Bedrock settings are set inside ~/.claude/settings.json, and you add custom Claude models pointing to your model arns in the settings - it works.

dafzthomas avatar Mar 27 '26 10:03 dafzthomas

Worked for me (AWS SSO setup):

Two things needed:

1. Add Bedrock env vars to ~/.claude/settings.json:

"env": {
  "CLAUDE_CODE_USE_BEDROCK": "1",
  "AWS_REGION": "us-east-1",
  "AWS_DEFAULT_REGION": "us-east-1",
  "AWS_PROFILE": "your-sso-profile-name"
}

AWS_PROFILE is required if you use SSO with named profiles and no default profile — without it T3 can't resolve credentials.

2. Set the model in T3's instance Launch arguments:

--model us.anthropic.claude-sonnet-4-5-20250929-v1:0

T3 defaults to the us.anthropic.claude-sonnet-4-6 format which is invalid for Bedrock. Adding --model with the correct versioned Bedrock ID in the instance config fixes the "model identifier is invalid" error.

tijmenvangurp avatar Jun 08 '26 11:06 tijmenvangurp

@tijmenvangurp - Can you only use this for Anthropic models? In Bedrock, I have access to 155 endpoints. I am desiring to bring in 5-6-7, different models as council members to hill climb ideas.

sudo-tmoney29 avatar Nov 04 '26 16:11 sudo-tmoney29