Skip to content

opencode not picking up Google Vertex AI service account json #6280

@sandys

Description

@sandys

Description

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. it shows me the default models (anthropic, glm, etc).

Google actively blocks creating api keys if you have enterprise google cloud accounts. there are multiple layers of permission blocks that need to be unblocked before you can create api keys in Google AI studio. it strongly steers towards using service account json.

Opencode would make it so much better if it gave a slightly better experience with setting service account json from within the connect flow.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

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