Settings > AI Providers > Connect provider and choose Google. For a team on Google Cloud, an OpenWork admin connects Vertex AI (now called Gemini Enterprise Agent Platform) once through OpenWork AI Gateway, and each member signs in with their own Google account.
Choose your path
Option 1: Gemini API key
- Create an API key in Google AI Studio. Copy it once and keep it private.
- In OpenWork, open
Settingsand chooseAI Providers. - Click
Connect provider. - Type
googleinFilter providers by name or IDand selectGoogle. - Paste the key into the
API keyfield and save. - Open the chat model picker and choose a Gemini model.
Option 2: Vertex AI for a team
Use this when your organization already pays for Google Cloud and wants members to use Gemini (and Claude on Google Cloud) without handing out API keys.- An OpenWork organization admin follows Google Agent Platform (Vertex AI) to enable the API, grant IAM access, and create a Google OAuth app.
- In OpenWork AI Gateway, the admin adds the
google-vertexprovider for Gemini (orgoogle-vertex-anthropicfor Claude), enters the Google Cloud project ID and region, and picks which models members can use. - Each member signs in with their own Google account from the provider’s connection page.
- Members pick the assigned models in the OpenWork model picker.
Option 3: Your own gateway in front of Vertex AI
If your team already runs an OpenAI-compatible gateway (for example, LiteLLM) that forwards requests to Vertex AI, connect the gateway instead of Google directly:- Get the gateway’s base URL, the model names it exposes for Gemini, and a key.
- For yourself, add it as a custom provider in the workspace
opencode.jsonc. For the team, an admin adds it once as a custom LLM provider in OpenWork Cloud. - If the gateway issues a separate key per person, use per-member LLM credentials.
FAQ
Can I use Gemini in OpenWork for free?
Can I use Gemini in OpenWork for free?
OpenWork itself is free. Gemini usage is billed, or rate-limited, by Google according to the plan on your API key or Google Cloud project.
Is Vertex AI the same as Gemini Enterprise Agent Platform?
Is Vertex AI the same as Gemini Enterprise Agent Platform?
Yes. Google renamed Vertex AI to Gemini Enterprise Agent Platform. OpenWork still uses the provider IDs
google-vertex and google-vertex-anthropic.Do members need gcloud or a service-account key?
Do members need gcloud or a service-account key?
Not with Option 2. Each member signs in with Google through OpenWork, and Google IAM controls access.
Can I use Claude through Google Cloud?
Can I use Claude through Google Cloud?
Yes. Add
google-vertex-anthropic in Option 2 after enabling the Claude model in Model Garden.Does connecting Gemini also connect Gmail or Drive?
Does connecting Gemini also connect Gmail or Drive?
No. Model access and Google Workspace data are separate. To let the agent read Gmail, Calendar, or Drive, follow Connect your services.