Tools & IDEs

Configure Gemini CLI

Install and configure Gemini CLI to use cheapkeyai.com via GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL.

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

macOS / Linux
curl -fsSL https://cheapkeyai.com/cdn/gemini-cli/setup.sh | bash
Windows PowerShell
irm https://cheapkeyai.com/cdn/gemini-cli/setup.ps1 | iex

Manual Installation

Options
npx @google/gemini-cli
npm install -g @google/gemini-cli
brew install gemini-cli

Configure .env

.env
GEMINI_API_KEY=sk-your-token-here
GOOGLE_GEMINI_BASE_URL=https://cheapkeyai.com

Environment Variables

macOS / Linux
export GEMINI_API_KEY="sk-your-token-here"
export GOOGLE_GEMINI_BASE_URL="https://cheapkeyai.com"
Windows PowerShell
$env:GEMINI_API_KEY = "sk-your-token-here"
$env:GOOGLE_GEMINI_BASE_URL = "https://cheapkeyai.com"

Usage

Sample Commands
gemini
gemini "Summarize modified files in the project"
gemini -m gemini-2.5-flash "Write a short test plan"