Skip to main content

Gemini CLI

The Gemini CLI source does not confirm a third-party Base URL. Only the CC Switch route is documented as an implemented compatibility entry.

Official source and verification

This page was verified on 2026-07-13 against the official source for Gemini CLI 0.50.0. Official source. Compatibility is partial; unconfirmed direct environment variables are not presented as official capabilities.

One-click setup

Sign in to the PopGo API keys page and open the action menu on the target Key row. Public documentation never creates or displays a link containing a Key. Choose CC Switch, then Gemini. After CC Switch imports the Gemini setup, do not look for direct variables that are not documented here.

Manual setup

There is no officially confirmed manual third-party Base URL setup. This page does not invent environment variables.

Success check

After CC Switch imports the setup, start Gemini CLI from a new terminal. A request with YOUR_MODEL must complete to count as success. Start a new test request with YOUR_MODEL. A normal response without authentication or address errors confirms the connection.

Common errors and recovery

  • If CC Switch import fails, follow its recovery guide instead of trying an unverified variable name.
  • For a 401, paste YOUR_API_KEY again and remove surrounding whitespace.
  • For a 404, verify the Base URL level and make sure the client is not appending /v1 twice.