Skip to main content
Context7 On-Premise can use Vertex AI for parsing, source-code documentation, reranking, and embeddings. It signs in with the Google Cloud identity of its deployment, so you store no API key.
The Google provider has two options. Google AI Studio uses a Gemini API key. Google Vertex AI uses a Google Cloud project, as this page describes.

Prerequisites

  • A Google Cloud project with the Vertex AI API (aiplatform.googleapis.com) turned on.
  • For Claude models, each model enabled for the project in Vertex AI Model Garden. Gemini models need no extra step.
  • Network access from Context7 to aiplatform.googleapis.com, or to a regional host such as europe-west4-aiplatform.googleapis.com.

Set up the identity

You set up the identity where Context7 runs, not in the Context7 dashboard. Give it the Vertex AI User role (roles/aiplatform.user) on the project.
Use Workload Identity. Context7 gets short-lived tokens from GKE, so no key is stored anywhere. Autopilot clusters have Workload Identity on. On a Standard cluster, turn it on first.
  1. Create a Kubernetes service account in the Context7 namespace:
  2. Give it the Vertex AI User role. Replace PROJECT_ID and PROJECT_NUMBER:
  3. Run the Context7 pods as that service account. With the Helm chart, add this value to the command you install or upgrade with:
    With your own manifests, set it in the pod spec of the Deployment or StatefulSet:

Configure Context7

1

Choose Google Vertex AI

In the setup wizard, select Google, then Google Vertex AI, and enter:Values in the dashboard take precedence over these variables.
The Google provider with Google Vertex AI selected, a Google Cloud project, the global location, and gemini-3.8-flash
2

Choose the embeddings

Select Same as LLM to use Vertex AI embeddings with gemini-embedding-001.
Same as LLM selected for embeddings, with gemini-embedding-001 from the Google Vertex AI project
3

Test

Select Test connection on each step, finish the wizard, and parse a small repository. Then query it to check that search works.

Change the settings

Open Workspace Settings in the top bar and select AI models under Indexing. Change the project, location, or model in the Language model card, select Test connection, then Save and apply.
Workspace Settings, AI models: the Language model card with Google Vertex AI, a Google Cloud project, the global location, and gemini-3.8-flash
To change the embedding model, run the setup wizard again. Vectors from different embedding models cannot be searched together, so refresh your libraries afterwards to rebuild their vectors. Until a library is refreshed, it may not appear in search.

Models

  • Reranking uses gemini-3.5-flash-lite unless you set a rerank model.
  • The global location has the newest models. Regional locations have fewer, so check that yours serves the model you pick.
  • gemini-embedding-2 is available only in global.
If your organization blocks structured outputs for partner models (constraints/vertexai.allowedPartnerModelFeatures), Context7 asks Claude for plain-text JSON instead. Parsing keeps working, and the log shows one warning for each model.

Egress proxy

If Context7 reaches Google only through a proxy, set HTTPS_PROXY. Context7 still connects directly to the GKE metadata server, so Workload Identity keeps working. See Egress proxy.
An offline Context7 license still needs network access to Google Cloud for Vertex AI. The selected Vertex AI models process the content that Context7 parses, embeds, and reranks.