Skip to content

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

Closed

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

Activity

  1. github-actions commented on Dec 28, 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. rsbmk commented on Jan 21, 2026

    @rsbmk

    I have the same issue. I identify GOOGLE_CLOUD_PROJECT="abc" have " only Anthropic model work well, and Google model not. And without " like GOOGLE_CLOUD_PROJECT=abc google model work but Anthropic not. AJAJ f

  3. sandys commented on Jan 21, 2026

    @sandys
    Author
  4. github-actions commented on Mar 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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