You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vertex AI location env vars not recognized (GOOGLE_VERTEX_LOCATION, VERTEX_LOCATION) #7996
When using opencode with Vertex AI, I consistently get the following error:
AI_LoadSettingError: Google Vertex location setting is missing.
Pass it using the 'location' parameter or the GOOGLE_VERTEX_LOCATION environment variable
However, I have explicitly set the environment variables, and verified they are present in the same shell session where opencode is executed.
Activity
github-actions commentedon Jan 12, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if this doesn't address your specific case.
wuqicyber commentedon Jan 12, 2026
I found the reason, I used GOOGLE_CLOUD_PROJECT_ID instead of GOOGLE_CLOUD_PROJECT. Now it works.