Skip to content

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

Closed

Description

@wuqicyber

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

Activity

  1. github-actions commented on Jan 12, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if this doesn't address your specific case.

  2. wuqicyber commented on Jan 12, 2026

    @wuqicyber
    Author

    I found the reason, I used GOOGLE_CLOUD_PROJECT_ID instead of GOOGLE_CLOUD_PROJECT. Now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions