[BUG] Claude keeps asking to log in, when using GCP Vertex AI model
Resolved 💬 5 comments Opened Dec 11, 2025 by marcopellegrino-devoteam Closed Feb 28, 2026
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?
When opening Claude, it keeps welcoming me to:
1) set up theme
2) login:
Claude Code can be used with your Claude subscription or billed based on API usage through your Console account. Select login method: ❯ 1. Claude account with subscription · Pro, Max, Team, or Enterprise 2. Anthropic Console account · API usage billing
I have already setup and loaded an .env var file:
CLAUDE_CODE_USE_VERTEX=1
PROJECT_ID=my-project
CLOUD_ML_REGION=global
ANTHROPIC_VERTEX_PROJECT_ID=my-project
ANTHROPIC_VERTEXAI_REGION=europe-west1
and authenticated in GCP:
gcloud auth login
gcloud auth application-default login
it used to work till 2 days ago, then I upgrade to 2.0.64 and now 2.0.65 and this error shows up.
The problem happens both on MacOs terminal and VSCode terminal.
What Should Happen?
When running claude I should be able to bypass the login using the .env credentials.
Error Messages/Logs
> Claude Code can be used with your Claude subscription or billed based on API usage through your Console account.
>
> Select login method:
>
> ❯ 1. Claude account with subscription · Pro, Max, Team, or Enterprise
>
> 2. Anthropic Console account · API usage billing
Steps to Reproduce
Run claude
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.65
Platform
Google Vertex AI
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗