[BUG] VSCode extension 2.0.0 doesn't allow using Bedrock token
Resolved 💬 17 comments Opened Sep 29, 2025 by justanotheranonymoususer Closed Sep 30, 2025
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator)
responded on this thread — see the highlighted reply below.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After updating to 2.0.0, the extension asks me to login by selecting one of two methods, neither of which apply to me. I have a Bedrock token which worked fine before the update. Is there a workaround to make it work?
What Should Happen?
Work as before.
Error Messages/Logs
Steps to Reproduce
- Open Claude via the button in VSCode.
- Be stuck without a way to login.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
1.x
Claude Code Version
Not relevant
Platform
AWS Bedrock
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
17 Comments
I am seeing this as well on my Mac - it opens the standard AWS SSO but any chat gets stuck:
<img width="797" height="149" alt="Image" src="https://github.com/user-attachments/assets/252c492c-dba0-4876-8bc0-45b155a601c4" />
Also getting the same JSON error
<img width="1508" height="422" alt="Image" src="https://github.com/user-attachments/assets/87f62db2-92d6-4d98-bf65-4f9610d6f129" />
Well I don't see this token error. I just can't login, I want to use the token but it asks to login.
On a related note, it does not seem to respect the
settings.jsoncompletely. It does detect the model I set there, but it does not seem to use Bedrock even though my file contains"CLAUDE_CODE_USE_BEDROCK": "1". I also don't think it is executing the script inawsCredentialExport.These are working good with Claude Code from the terminal, on the same machine with the same settings.
Have the same issue, unable to login. Tried setting up the environment variables in VSCode settings, didn't work either:
Works well in terminal, just the extension wants either Anthropic or Claude subscription.
<img width="643" height="558" alt="Image" src="https://github.com/user-attachments/assets/10a34834-3ace-483d-a21f-724e89759f2c" />
It's broken.
Find your arn here:
This one works for me, I'm using Bedrock with profile login. It seems the extension doesn't respect the CLAUDE_CODE_USE_BEDROCK env var from
~/.claude/settings.jsonI got the same error when I have "awsAuthRefresh" command, but disabling it then I manually login and it could work.
@vuon9 you are a genius, thank you, confirmed it works for me!
Thanks for the reports (and the excellent investigation, @vuon9!) !
We've added documentation on how to use the new native VSCode extension with vertex and bedrock (and we're working on linking to it from the login page as well):
https://docs.claude.com/en/docs/claude-code/vs-code#using-third-party-providers-vertex-and-bedrock
@hackyon-anthropic thank you for the update.
So it is only environment variables ?
awsCredentialExportandawsAuthRefreshare not supported ? In my company we need this refresh script because we have some additional authentication to take care ofThink it could be that the anthropic_small_fast_model using Haiku for the auth refresh is not supported in the extension if people are still using that. It still works in the CLI, but the docs recommend using the anthropic_default_haiku_model env var as the small_fast_model is deprecated. If you use the anthropic_default_haiku_model var, the extension and awsAuthRefresh works . Check https://docs.claude.com/en/docs/claude-code/model-config#environment-variables
I just tested, and it doesn't work like that. Still forces me to login.
<img width="1905" height="339" alt="Image" src="https://github.com/user-attachments/assets/6157cea6-66a4-461a-aafb-e65356f1f15f" />
Here's a part of log output
what if you remove both the SMALL_FAST_MODEL and the SMALL_FAST_MODEL_AWS_REGION entirely, and just keep the Haiku? Because that works for me when I just have the DEFAULT_HAIKU_MODEL, DEFAULT_SONNET_MODEL, and DEFAULT_OPUS_MODEL. And when i add the SMALL_FAST_MODEL it gives me that error.
[edit: scratch that, i thought i reproduced the error by adding small_fast model var but wasnt that. I was able to get it to work with those default model vars and with the awsAuthRefresh.]
Ok was able to narrow it further with that. I tried removing the default_sonnet var and just kept the default_haiku but it was hanging after hitting the prompt, while not showing that error. It does retrieve the aws credentials successfully. But works once i added both, so my guess is it needs a default haiku and sonnet at the least in your .claude/settings.json if you don't specify it in your vscode settings
@hackyon-anthropic
There is an issue where the extension ignores
ANTHROPIC_BASE_URLandANTHROPIC_AUTH_TOKENand force you to either login or use API (not using Bedrock or Vertex). But this does not happen when using CC CLI.e.g. this runs fine:
``
ANTHROPIC_BASE_URL=my_url ANTHROPIC_AUTH_TOKEN=my_token npx @anthropic-ai/claude-code@latest``But setting those in the shell env and/or extension env
claude-code.environmentVariablesdoes not work.The extension asks me to log in through Claude or Anthropic. It works via terminal.
Is this going to be fixed? @hackyon-anthropic
<img width="576" height="184" alt="Image" src="https://github.com/user-attachments/assets/314282e4-9218-4f47-bc6e-589c45df6e57" />
<img width="672" height="787" alt="Image" src="https://github.com/user-attachments/assets/cf824919-31ec-4b2d-a207-e5b85281e6e0" />
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.