Configure the endpoint
Set these variables in the terminal that will launch Gemini CLI:$env:NAME = "value" for each variable instead. Replace both placeholders. The base address has no /v1 or /v1beta suffix; the client supplies the protocol path.
Select API-key authentication when prompted. Newer releases may also expose a gateway authentication flow; use the configuration for your installed release. Upstream supports a custom Gemini base address and Bearer authentication, but Infistar has not tested every CLI release and model combination.
Verify and save
Start with: “Reply with configuration successful. Do not read or modify files or run commands.” Check the result before allowing project actions. After verification, the variables can be stored in your private~/.gemini/.env; do not commit the file.
For 401, check the key and Bearer setting. For 404, check the root address. For an unavailable model, select an exact Gemini-capable ID from your key’s model list.