Gemini issues
Use the Gemini-native endpoint
Gemini CLI and Antigravity should use:
https://api.fhrouter.com/v1betaDo not use /v1 unless the client specifically asks for OpenAI compatibility.
Set the model explicitly
Gemini CLI often works best when the model is explicit:
gemini -m gemini-3.1-pro-previewOther model:
gemini -m gemini-2.5-proEnvironment variables override settings
Check for old values:
echo $GEMINI_API_KEY
echo $GOOGLE_API_KEY
echo $GOOGLE_GEMINI_BASE_URLWindows PowerShell:
$env:GEMINI_API_KEY
$env:GOOGLE_API_KEY
$env:GOOGLE_GEMINI_BASE_URLUnset or replace old values before retrying.
Request hangs or returns no text
Gemini tools can retry, stream, or make background requests. If a request hangs:
- Stop the current run.
- Start a fresh session.
- Send one short prompt.
- Check FHRouter usage before retrying a larger task.
IDE extensions
Some VS Code extensions support Gemini through either a Gemini-native mode or an OpenAI-compatible mode. For Gemini models, prefer Gemini-native mode and use /v1beta.

