How do I use Gemini in Factory CLI?
I have successfully authenticated my gmail account with the vibeproxy app but FACTORY.md doesnt have a config to use gemini 2.5 pro inside of it. So I was wondering how can I use gemini 2.5 pro inside factory cli.
@Whiteknight07 Try this config
{
"custom_models": [
{
"model_display_name": "Gemini 2.5 Pro",
"model": "gemini-2.5-pro",
"base_url": "http://localhost:8317/v1",
"api_key": "dummy-not-used",
"provider": "generic-chat-completion-api"
},
{
"model_display_name": "Gemini 2.5 Flash",
"model": "gemini-2.5-flash",
"base_url": "http://localhost:8317/v1",
"api_key": "dummy-not-used",
"provider": "generic-chat-completion-api"
}
]
}
Got this as an error @dalisoft
Looks like your problem related to those issues
- https://github.com/router-for-me/CLIProxyAPI/issues/97
- https://github.com/router-for-me/CLIProxyAPI/issues/102
- https://github.com/router-for-me/CLIProxyAPI/issues/123
- https://github.com/router-for-me/CLIProxyAPI/issues/136
On core CLI (cli-proxy-api) project support may fixed it recently. Maybe this project uses old binary of cli-proxy-api, building from source may help or not.
Anyone managed to get Gemini to work successfully in Vibe Proxy by recompiling cli-proxy-api?
✅ Gemini support has been added to VibeProxy!
Working Models (Available Now):
gemini-2.5-pro- Most capable production modelgemini-2.5-flash- Fast and efficientgemini-2.5-flash-lite- Lightweight and fastest
Setup Instructions:
1. Connect Gemini in VibeProxy:
- Click the VibeProxy menu bar icon → Open Settings
- Click "Connect" next to Gemini
- Sign in with your Google account
- Select a Google Cloud project (or accept default)
2. Add to Factory config (~/.factory/config.json):
{
"custom_models": [
{
"model_display_name": "Gemini 2.5 Pro",
"model": "gemini-2.5-pro",
"base_url": "http://localhost:8317/v1",
"api_key": "dummy-not-used",
"provider": "openai"
},
{
"model_display_name": "Gemini 2.5 Flash",
"model": "gemini-2.5-flash",
"base_url": "http://localhost:8317/v1",
"api_key": "dummy-not-used",
"provider": "openai"
}
]
}
Full details: FACTORY_SETUP.md
About Gemini 3 Pro Preview:
Google's newest model (gemini-3-pro-preview, released Nov 18, 2025) is not yet supported in CLIProxyAPI 6.5.1. It requires the Vertex AI API instead of the standard Generative Language API.
Support is expected in an upcoming CLIProxyAPI release - likely within days. To prepare, enable the Vertex AI API in your Google Cloud project now.
Let us know if you have any issues!
Closing as Gemini 2.5 support is now fully documented. See comment above for setup instructions!