FIM Gate Docs
Integrations

Gemini CLI

Route Gemini CLI requests to FIM Gate via environment variables.

Gemini CLI is Google's official terminal AI tool. It supports customizing the endpoint and API key through environment variables.

Setup

  1. Install Gemini CLI:

    npm install -g @google/gemini-cli
  2. Edit the ~/.env file (Gemini CLI reads it on startup) and add the following:

    # FIM Gate's Gemini protocol endpoint
    GOOGLE_GEMINI_BASE_URL=https://api.gate.fim.ai
    # Key created in the Console at https://api.gate.fim.ai/dashboard
    GEMINI_API_KEY=$FIM_API_KEY
    # Default model
    GEMINI_MODEL=gemini-2.5-flash
  3. Start using it:

    gemini

You can set GEMINI_MODEL to any other Gemini-series model. See the pricing page for available models.

On this page