Skip to main content

Overview

Gemini CLI is Google’s command-line AI assistant. With configuration, you can connect it to Crazyrouter to use Gemini series models.

Configuration

Environment Variables

export GEMINI_API_KEY=sk-xxx
export GEMINI_BASE_URL=https://crazyrouter.com

Configuration File

Edit ~/.gemini/settings.json:
{
  "apiKey": "sk-xxx",
  "baseUrl": "https://crazyrouter.com",
  "model": "gemini-2.5-pro"
}

Launch

gemini

Available Models

ModelDescription
gemini-2.5-proStrongest reasoning capability
gemini-2.5-flashFast response
gemini-2.0-flashPrevious generation fast model
Crazyrouter supports both the Gemini native API format and the OpenAI-compatible format. Gemini CLI uses the native format.