Gemini CLI
Gemini CLI Integration
Bring a Gemini terminal session to a compatible model endpoint.
Install
npm install -g @google/gemini-clibrew install gemini-cliConfigure
Sign in to GPTProto, open Dashboard → API Keys and create a key for this client. Copy the value into its provider credentials.
export GEMINI_API_KEY="YOUR_API_KEY"
export GOOGLE_GEMINI_BASE_URL="https://gptproto.com"$env:GEMINI_API_KEY = "YOUR_API_KEY"
$env:GOOGLE_GEMINI_BASE_URL = "https://gptproto.com"For future sessions, save the same variables in your user-level Gemini CLI environment file.
Pick a model
Check the Gemini model guide for native generateContent support. Configure the Gemini client base URL and API key for that protocol before opening a session.
gemini -m YOUR_GEMINI_MODEL -p "Reply with hello"Troubleshooting
If Gemini asks for a Google account, check its selected authentication mode and restart it from the configured shell.