-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Claude Code and Vertex AI integration not working #284
Comments
i am trying the same thing. added the config valued in the project's
i can see in Anthropic billing console my credit decreasing after each request |
Can you double check that you're not setting |
@bcherny I don't have |
Are you sure you're setting the env vars correctly? What happens if you directly do: CLAUDE_CODE_USE_VERTEX=1 CLOUD_ML_REGION=us-east5 ANTHROPIC_VERTEX_PROJECT_ID=id claude |
@bcherny I've set the env variables properly, you can see the screenshot below ![]() However, I'm using zsh |
I've set the env variables for both bash and zsh, and now it works for me. |
I've enabled the APIs in Google Vertex AI studio and I'm able to make the following request:
and it gives back the appropriate response as per the input in request.json
I was trying to configure the Claude Code using 3rd party APIs
I have set the following env variables:
However, in Claude Code, I keep getting:
Credit balance too low · Add funds: https://console.anthropic.com/settings/billing
What can I do to configure Claude Code to use the Vertex API?
Note: I'm on
@anthropic-ai/[email protected]
The text was updated successfully, but these errors were encountered: