Gemini CLI
5/20/26Less than 1 minute
Gemini CLI is Google's official command-line assistant for Gemini models.
Prerequisites
- Gemini CLI installed (
gemini --versionworks) - A key in a group containing Gemini models
Method A: environment variables
export GEMINI_API_KEY=sk-your-key
export GOOGLE_GEMINI_BASE_URL=https://bridge.pulseneko.com/geminiWarning
The suffix is /gemini, not /v1. This is the fixed prefix for Gemini-native routing on Bridge.
Open a new shell, run gemini.
Method B: settings.json
~/.gemini/settings.json:
{
"apiKey": "sk-your-key",
"baseUrl": "https://bridge.pulseneko.com/gemini"
}Recommended models
| Model | Best for |
|---|---|
gemini-3.1-pro | Daily driver |
gemini-3.1-flash | Fast / cheap |
gemini-3.0-pro-preview | Same price as 3.1-pro (legacy) |
OpenAI-compatible fallback
If your tool doesn't speak Gemini-native, use:
https://bridge.pulseneko.com/v1with the same model names. Chat completions is the entry point. Some Gemini-specific features (grounding, safety settings) don't pass through this path.
Verify
gemini "hello"Confirm in Usage Logs.