This is optional. An AI Studio key from aistudio.google.com/apikey works fine for trying OpenCompany. Use this page when you want Gemini usage on your Google Cloud bill: trial credits, committed spend, one invoice, and the paid-tier data terms.
Two kinds of Gemini key
OpenCompany’s Gemini provider accepts both, and tells them apart by prefix.
With an
AQ. key the model list shows Vertex-supported versions only (no -latest aliases). Re-validate the provider after switching key types so the list refreshes.
What you need
- The gcloud CLI, logged in:
gcloud auth login - A Google Cloud project with billing enabled
- That project must be inside an organisation (a Google Workspace or Cloud Identity domain). A default policy blocks the kind of key Vertex needs, and only an organisation can relax it. A personal project created outside any organisation cannot be used; create one under your domain instead.
Create the key
Run the script from the OpenCompany repository. It enables the APIs, relaxes the policy for this one project, creates a service account with the Vertex AI User role, creates a key bound to it and restricted to Vertex AI, and proves the key works with one Gemini request.Add it to OpenCompany
1
Open API Credentials
In OpenCompany, click the key icon in the top toolbar.
2
Choose Gemini
Under AI Providers, click Gemini.
3
Paste and validate
Paste the
AQ. key and click Validate. The badge turns green and the model list switches to Vertex-supported models.If something is refused
project ... is not inside an organisation
project ... is not inside an organisation
The managed policy
iam.managed.disableServiceAccountApiKeyCreation cannot be overridden on a project that has no organisation. Create a project under your Workspace or Cloud Identity organisation, or move this one there with gcloud projects move PROJECT --organization ORG_ID, then re-run. Moving a project into an organisation is permanent.could not set the policy
could not set the policy
Relaxing the policy needs the Organization Policy Administrator role on the organisation. The script tries to grant it to you if you are an Organization Administrator; otherwise it prints the exact command for whoever is.
policy not propagated yet
policy not propagated yet
Normal. A freshly set policy takes about a minute to reach the API Keys service; the script waits and retries.
Vertex rejected the request
Vertex rejected the request
Almost always billing. Vertex AI needs billing enabled on the project. Check with
gcloud billing projects describe PROJECT.