Updated:
Gemini CLI FAQ
Here are common questions and solutions when using Gemini CLI.
For help, choose a channel under pre-sales and after-sales support.
Base URL and routes
The examples use the Mainland China route, https://api-lb.cubence.ai. For global use, set the Base URL to https://api.cubence.ai; outside Mainland China, you can use https://api.cubence.com. Keep any request path when switching routes. See API endpoints and Base URL configuration.
Usage Tips
What to do if Gemini CLI usage experience is poor?
Gemini CLI currently has some usage issues, such as inability to properly call models or paste images. If you encounter problems, suggestions:
- Use third-party VSCode extensions like Roo Code as an alternative
- If using Roo Code, select
OpenAI Responserequest format
Which Gemini models are supported?
Cubence supports these Gemini models:
gemini-3-pro-previewgemini-2.5-progemini-3-flash-preview
For specific available models, check the model list in Cubence console.
Configuration Issues
What to do if model doesn't exist error appears?
- Check if
GEMINI_MODELin.envfile is correct - Confirm model name is spelled correctly
- Confirm the model is available in Cubence console
What to do if no available channel error appears?
- Check if API Key is correct
- Confirm account balance is sufficient
- Check if
GOOGLE_GEMINI_BASE_URLis set correctly
What to do if API Key configuration doesn't take effect?
- Confirm
.envfile is in the correct location (~/.gemini/.env) - Confirm
selectedTypeinsettings.jsonis set togemini-api-key - Restart the terminal and try again
Other Issues
What to do if Gemini model doesn't have internet access?
Gemini models typically don't have built-in internet capabilities. If you need internet access:
- Use MCP tools to extend internet capabilities
- Manually copy web content into the conversation
What to do about connection timeout?
- Check if network connection is normal
- Confirm
GOOGLE_GEMINI_BASE_URLmatches the root URL of your selected route, such ashttps://api-lb.cubence.aifor Mainland China - If using a proxy, ensure proxy configuration is correct