Gemini Integration

Integrate Google Gemini 2.5 Pro and Flash models with OpenClaw.

Overview

Google Gemini provides multimodal AI models with strong reasoning capabilities.

Available Models

  • Gemini 2.5 Pro — Best for complex reasoning and long context
  • Gemini 2.5 Flash — Fast and cost-effective
  • Gemini 2.0 — Previous generation, stable

Configuration

{
  "agents": {
    "default": {
      "provider": "google",
      "model": "gemini-2.5-pro"
    }
  }
}

Environment Variables

export GOOGLE_API_KEY="AIza..."

Get API Key

  1. Visit aistudio.google.com
  2. Click Get API Key
  3. Create a key and set as GOOGLE_API_KEY

Next Steps