Gemini CLI is Google's open-source AI coding CLI tool, supporting code generation, debugging, file operations, multimodal input, and more.
~/.bashrc or ~/.zshrc and restart your terminal.Note: Do not append /v1or any path suffix to the Base URL. Gemini CLI handles path construction automatically.
| Model | Description |
|---|---|
gemini-2.5-flash | Fastest, large context (1M) |
gemini-2.5-pro | Google's strongest, multimodal |
gemini-2.0-flash | Previous-gen fast model |
gemini-3.1-flash-lite-preview | Latest lightweight preview |
gemini-2.5-flash. To switch models, specify at launch:For the full model list and real-time pricing, visit Model Market.
Hello, please introduce yourself| Problem | Solution |
|---|---|
| Connection failed | Confirm GOOGLE_GEMINI_BASE_URL is set to https://api.ccapi.ai (no path suffix) |
| Invalid token | Check token status at Console |
| Insufficient balance | Top up at Console > Top Up |
| Model not found | Check model name spelling. View available models at Model Market |
https://api.ccapi.ai (no path suffix)GEMINI_API_KEYGOOGLE_GEMINI_BASE_URL