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
-
Install Gemini CLI:
npm install -g @google/gemini-cli -
Edit the
~/.envfile (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 -
Start using it:
gemini
You can set GEMINI_MODEL to any other Gemini-series model. See the pricing page for available models.