Skip to content

Unable to use vertex gemini 3 pro #5712

Closed

Description

@GrahamCampbell

Description

Opencode crashes when trying to use the vertex APIs.

OpenCode version

1.0.164

Steps to reproduce

  1. /connect Vertex and enter API obtained from https://docs.cloud.google.com/vertex-ai/generative-ai/docs/start/api-keys?usertype=standard.
  2. Type any prompt.

Screenshot and/or share link

Image

Operating System

MacOS 26.2

Terminal

No response

Activity

  1. github-actions commented on Dec 17, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. GrahamCampbell commented on Dec 17, 2025

    @GrahamCampbell
    ContributorAuthor

    /connect doesn't work for vertex. probably not a bug as such, but not so good UX that it's offered, when I need to set 3 env variables instead.

  3. sandys commented on Dec 28, 2025

    @sandys

    @GrahamCampbell can you explain how did you use opencode with vertex ? im setting

    GOOGLE_APPLICATION_CREDENTIALS=/home/1.json
    GOOGLE_CLOUD_PROJECT=abc
    VERTEX_LOCATION=global

    but when i open opencode, it is just not picking it up
    ~

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