Vertex AI location env vars not recognized (GOOGLE_VERTEX_LOCATION, VERTEX_LOCATION) #4881

Closed
opened 2026-02-16 17:46:07 -05:00 by yindo · 0 comments
Owner

Originally created by @wuqicyber on GitHub (Jan 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

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.

Plugins

No response

OpenCode version

1.0.220

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

macos

Terminal

No response

Originally created by @wuqicyber on GitHub (Jan 12, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 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. ### Plugins _No response_ ### OpenCode version 1.0.220 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="620" height="179" alt="Image" src="https://github.com/user-attachments/assets/ad36e3fe-c4fd-4660-8b75-4c099e073d61" /> ### Operating System macos ### Terminal _No response_
yindo added the bug label 2026-02-16 17:46:07 -05:00
yindo closed this issue 2026-02-16 17:46:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4881