Configure AI Proxy for Claude Code with Google Geminiv3.6+

v3.13+Set up the AI Proxy plugin to work with Claude Code, using Google Gemini 2.0 Flash with GCP service account authentication. For a detailed guide on how to use Google Gemini with Claude Code see this guide

Prerequisites

  • Google Cloud Platform account

  • Vertex AI API enabled

  • Service account with appropriate permissions

Environment variables

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

  • GEMINI_API_ENDPOINT: The Gemini API endpoint (for example, us-central1-aiplatform.googleapis.com).

  • GCP_PROJECT_ID: The GCP project ID.

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

Set up the plugin

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!