Gemini CLI is Google's terminal-based AI coding assistant powered by Gemini models.
- Up to 50% cheaper than official Google pricing
- Access Gemini 2.5 Pro & Flash
- Combined billing with Claude and GPT models
- No Google Cloud setup required
export GEMINI_API_BASE=https://texapi.dev/v1
export GEMINI_API_KEY=tex-YOUR_API_KEYAdd to ~/.bashrc or ~/.zshrc for persistence.
$env:GEMINI_API_BASE = "https://texapi.dev/v1"
$env:GEMINI_API_KEY = "tex-YOUR_API_KEY"gemini| Model | Best For | Cost |
|---|---|---|
gemini-2.5-pro |
Complex reasoning | 1.25 / 10.0 credits per 1M tokens |
gemini-2.5-flash |
Fast responses | 0.15 / 0.6 credits per 1M tokens |
- Make sure you're using a TexAPI key (
tex-...), not a Google AI Studio key - Verify the key is active in your dashboard
- Check that
GEMINI_API_BASEis set tohttps://texapi.dev/v1