Buying with Gemini CLI
Point Gemini CLI at Asale through its dotenv file, and what that means for shells that already export the variables.
Turning it on
Buy → switch on Gemini CLI, pick the models, restart the terminal window.
What changes on disk
| File | Keys |
|---|---|
~/.gemini/.env | GOOGLE_GEMINI_BASE_URL, GEMINI_API_KEY |
A dotenv file, not JSON or TOML. Only those two keys are written, and switching off strips exactly those two back out.
A real environment variable wins
Because this is a dotenv file, anything your shell already exports takes precedence. If GEMINI_API_KEY is set in your .zshrc or CI environment, Gemini CLI uses that and ignores what Asale wrote — the switch will look on while nothing routes through it.
Unset it in the shell you launch Gemini CLI from.
Models
The model is named in the request, so your selection is enforced locally: an untick model is refused on 127.0.0.1, at no cost.
Things to watch
- Restart the terminal window — the file is read at process start.
- While this switch is on, the Gemini account imported from this machine stops being offered for sale.