Unable to use vertex gemini 3 pro #3631

Closed
opened 2026-02-16 17:40:57 -05:00 by yindo · 3 comments
Owner

Originally created by @GrahamCampbell on GitHub (Dec 17, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @GrahamCampbell on GitHub (Dec 17, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="975" height="672" alt="Image" src="https://github.com/user-attachments/assets/2c1e0bce-cbf3-465b-ab91-a563001e10ca" /> ### Operating System MacOS 26.2 ### Terminal _No response_
yindo added the bug label 2026-02-16 17:40:57 -05:00
yindo closed this issue 2026-02-16 17:40:57 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 17, 2025):

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

  • #5711: How to configure google vertex with desktop app? (discusses Vertex authentication and API key configuration issues)
  • #4282: Vertex AI integration causing crashes with invalid parameters

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

@github-actions[bot] commented on GitHub (Dec 17, 2025): This issue might be a duplicate of existing issues. Please check: - #5711: How to configure google vertex with desktop app? (discusses Vertex authentication and API key configuration issues) - #4282: Vertex AI integration causing crashes with invalid parameters Feel free to ignore if none of these address your specific case.
Author
Owner

@GrahamCampbell commented on GitHub (Dec 17, 2025):

/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.

@GrahamCampbell commented on GitHub (Dec 17, 2025): /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.
Author
Owner

@sandys commented on GitHub (Dec 28, 2025):

@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
~

@sandys commented on GitHub (Dec 28, 2025): @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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3631