Configure AI Proxy for Claude Code with Google Vertex AI

v3.13+Set up the AI Proxy plugin to work with Claude Code, using Google Vertex AI with Gemini 2.5 Flash model. For a detailed guide on how to use Google Vertex AI with Claude Code see this guide

Prerequisites

  • Google Cloud Platform account

  • Vertex AI API enabled

  • Service account with Vertex AI permissions

Environment variables

  • GCP_SERVICE_ACCOUNT_JSON: The GCP service account JSON credentials for authentication.

  • VERTEX_API_ENDPOINT: The Vertex AI API endpoint (for example, us-east5-aiplatform.googleapis.com).

  • GCP_PROJECT_ID: The GCP project ID.

  • GCP_LOCATION_ID: The GCP location/region ID (for example, us-east5).

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!