Installation
Make sure you have Python 3.9+ installed:Configuration & Launch
Gemini CLI can be configured via environment variables.Mac / Linux (zsh)
Mac / Linux (zsh)
Windows (PowerShell)
Windows (PowerShell)
Start Interactive Mode
Key Features
| Feature | Description |
|---|---|
| Interactive Chat | Enter questions directly in the terminal, and Gemini CLI will return real-time answers |
| Pipeline Input | Supports piping code or logs to Gemini CLI for analysis |
| File Reading | Can read local file contents as context |
Usage Examples
Analyze a Code File
Quick Query
Gemini CLI defaults to the Google official API. By setting the
OPENAI_API_BASE environment variable, it seamlessly switches to ePhone AI’s compatible interface.