Gemini CLI Guide
This page explains how to install Gemini CLI and configure .env under ~/.gemini (or %USERPROFILE%\\.gemini on Windows) for Let AI Run.
1. Install Gemini CLI
Use the official installation guide:
https://github.com/google-gemini/gemini-cli
2. Configure .env
Create a .env file in your system-specific Gemini directory and paste:
GOOGLE_GEMINI_BASE_URL="https://api.letai.run"
GEMINI_API_KEY=your-key
GEMINI_MODEL=gemini-3-pro-preview
3. macOS Directory
Open the Gemini config directory:
open "$HOME/.gemini"
If it does not exist yet, create it first:
mkdir -p "$HOME/.gemini"
open "$HOME/.gemini"
4. Windows Directory
Open the Gemini config directory:
start "" "%USERPROFILE%\.gemini"
If it does not exist yet, create it first:
mkdir "%USERPROFILE%\.gemini"
start "" "%USERPROFILE%\.gemini"
5. Usage
After installation and configuration, run:
gemini
6. Troubleshooting
- Config is not picked up:
- Verify
.envis in the correct directory. - Make sure the file name is
.env, not.env.txt.
- Verify
- Authentication failed:
- Check whether
GEMINI_API_KEYis a valid key.
- Check whether
- Traffic is not routed to Let AI Run:
- Confirm
GOOGLE_GEMINI_BASE_URLishttps://api.letai.run.
- Confirm