Skip to content

Support for environment variables for OpenCode #192

@ottosulin

Description

@ottosulin

Hi!

When using Google Vertex AI, the configuration requires currently use of environment variables. Relevant OpenCode documentation: https://opencode.ai/docs/providers#google-vertex-ai

The env variables are for most OpenCode users probably in .bashrc or .zshrc.

And because of this OpenWork with Vertex does work for me when I run: OpenWorkTest % open /Applications/OpenWork.app.

It would be great for less technical users to get it load the credentials automatically. OpenWork config does not currently support all of those as configuration options.

My suggestion: allow setting extra environment variables to use when starting opencode. Then a user can easily insert those as instructed in OpenCode docs.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions