[Bug]: Claude code doesn't support AWS Bedrock usage #1257
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- Have your claude code set up to use AWS Bedrock
- Double check that claude code works in the CLI
- Attempt to prompt in T3 Chat with a claude model
- 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(GitHub profile, opens in a new tab) added labelsbug
super-original(GitHub profile, opens in a new tab) added labelsneeds-triage
@Noojuno I have the following environment variables set in
~/.claude/settings.jsonunder 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/configwith 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.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 @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.
Same bug here
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?
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.maria-rcks closed this
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_PROFILEis required if you use SSO with named profiles and nodefaultprofile — 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:0T3 defaults to the
us.anthropic.claude-sonnet-4-6format which is invalid for Bedrock. Adding--modelwith the correct versioned Bedrock ID in the instance config fixes the "model identifier is invalid" error.@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.
Sign in to join this conversation.
@super-original I will have a look at this now!
How are you setting up Claude Code to use bedrock?