Gemini CLI Setup Guide
Gemini CLI is Google's terminal agent. Its configuration lives in ~/.gemini/, so you don't need to change shell environment variables.
Before you start, get an LLMoxy token. A token from the auto group is recommended.
Install
Connect to LLMoxy
Create the configuration directory and write .env:
Optional: choose API Key sign-in explicitly:
Save the content above as ~/.gemini/settings.json (%USERPROFILE%\.gemini\settings.json on Windows).
TIP Gemini CLI's URL does not include
/v1. Replaceyour LLMoxy API Keywith your real token from the console.
Launch
FAQ
gemini: command not found
Make sure node -v works, then reopen your terminal. The package name is @google/gemini-cli.
Calls fail
Check that .env has no extra spaces, the token's group is auto, and the account has a balance.
Can't connect on Linux
Run curl -I https://llmoxy.com; if you need a proxy, add HTTPS_PROXY=http://your-proxy:port to .env.
