Configure Claude Code ACP to use Vertex or Bedrock #37468
Replies: 7 comments 1 reply
-
I haven’t been able to get Bedrock + Claude Code + Zed working either. When I type /login in the Claude Code panel, I see an “Authentication Required” message with a Log in with Claude Code button. It doesn’t seem to recognize that I’m already authenticated. Clicking the button opens a terminal with the prefilled command Any help would be appreciated! I'd love to be using Zed more! |
Beta Was this translation helpful? Give feedback.
-
I can't get vertex working either. Sending raw requests with my GCP auth token per the GCP documentation works fine, but Zed 404s on all models with the exact same endpoints as I sent requests to :/ |
Beta Was this translation helpful? Give feedback.
-
We're working on it! |
Beta Was this translation helpful? Give feedback.
-
For similar billing reasons I run both Anthropic and Bedrock, and have this function function claude_bedrock {
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1
export VISUAL=zed
# Optional: Override the region for the small/fast model (Haiku)
# export ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION=us-
claude
} which works nicely, was hoping putting those exports into the Zed settings env section would work but no luck. |
Beta Was this translation helpful? Give feedback.
-
I managed to get it to work with Bedrock by starting the app in shell after setting the env variables export AWS_PROFILE=your-aws-profile-name
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1
# if you use SSO or set keys here
aws sso login
# Run the app
/Applications/Zed.app/Contents/MacOS/zed |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
For Vertex AI, I was able to get this working by simply adding the correct environment variables to my i.e.
Then opening Zed in any way works fine. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How do I configure Claude Code and Zed to use Vertex or Bedrock instead of Anthropic's API?
This is important for billing reasons (at many orgs it's easier to add something to your existing GCP or AWS bill than to onboard a new vendor).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions