Gemini CLI works with cheapkeyai.com via Google-compatible endpoint. The simplest way to configure is setting `GEMINI_API_KEY` and `GOOGLE_GEMINI_BASE_URL`.
Automatic Installation
curl -fsSL https://cheapkeyai.com/cdn/gemini-cli/setup.sh | bash
irm https://cheapkeyai.com/cdn/gemini-cli/setup.ps1 | iex
Manual Installation
npx @google/gemini-cli
npm install -g @google/gemini-cli
brew install gemini-cli
Configure .env
GEMINI_API_KEY=sk-your-token-here
GOOGLE_GEMINI_BASE_URL=https://cheapkeyai.com
Environment Variables
export GEMINI_API_KEY="sk-your-token-here"
export GOOGLE_GEMINI_BASE_URL="https://cheapkeyai.com"
$env:GEMINI_API_KEY = "sk-your-token-here"
$env:GOOGLE_GEMINI_BASE_URL = "https://cheapkeyai.com"
Usage
gemini
gemini "Summarize modified files in the project"
gemini -m gemini-2.5-flash "Write a short test plan"